Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3
Author Message
pitaduo
New Member
New Member



Joined: Mar 13, 2005
Posts: 2

PostPosted: Sun Mar 13, 2005 4:21 pm Reply with quote

Hi people,

My question is this

I have php-Nuke 7.3 installed with nsn banners 1.1.0.

the problem is this:

If i add a banner in flash with a link already, it works well but the clicks are not counted.

If i add a banner without any link and configure the link in tehbanner ads administration, the banner appears in the ite but it has no link.

I think that the code is this:

Code:
if ($bidinfo['flash']==1 AND $bidinfo['code']==0) {

        $tbanners1  = " <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' height='".$bidinfo['height']."' width='".$bidinfo['width']."'>";
        $tbanners1 .= " <param name=movie value='".$bidinfo['imageurl']."'>";
        $tbanners1 .= " <param name=quality value=high>";
        $tbanners1 .= " <embed src='".$bidinfo['imageurl']."' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' height='".$bidinfo['height']."' width='".$bidinfo['width']."'>";
        $tbanners1 .= " </embed>";
        $tbanners1 .= " </object>\n";
    } elseif ($bidinfo['flash']==0 AND $bidinfo['code']==1) {
        $fp = fopen ($bidinfo['imageurl'], "rb");
        $contents = fread ($fp, filesize ($bidinfo['imageurl']));
        fclose ($fp);
        $tbanners1  = "$contents";
    } else {
        $tbanners1  = "<a href='clicks.php?bid=$bannum' target='_blank'><img src='".$bidinfo['imageurl']."' border='0' alt='".$bidinfo['alttext']."' title='".$bidinfo['alttext']."' height='".$bidinfo['height']."' width='".$bidinfo['width']."'></a>";
    }
} else {
    $tbanners1 = "<a href='modules.php?name=$modname'><img src='modules/$modname/images/ban-banner-1.png' border='0' alt='$sitename' title='$sitename'></a>";
}



I want to add a flash banner without link and when anyone clicks it, will redirect it to the link that i configured in the administration banner comtrol panel.

I'm having this issue a quite long ago and tried to dig the net searching for the answer, however got no results


Can anyone help me????

Pleeeease

Thanx in advance and keep up the excelent work

_________________
Image
PS2, XBox, GC, PSP, DS and the latest news 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Thu Mar 17, 2005 11:56 pm Reply with quote

Get the latest release of NSN Banner Ads from my site Smile [ Only registered users can see links on this board! Get registered or login! ]

It has a flash backer that overrides any links in the flash banner and runs it thru it's own system so it can count the clicks.

_________________
Bob Marion
Codito Ergo Sum
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
pitaduo







PostPosted: Fri Mar 18, 2005 8:15 am Reply with quote

Ok, i already did that, but somehow, i lost my admin access. After uploading the new module, after inserting my login and password, it openned a blank page, even after altering the mainfile.php.

I solved the issue copying both clicks_v.swf and clicks_h.swf to the images/banners directory and altering this line:

Code:
$tbanners1 .= " <param name=movie value='".$bidinfo['imageurl']."'>"; 


to the correct one.

Thanx a lot Marion
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©