PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pitaduo
New Member
New Member


Joined: Mar 13, 2005
Posts: 2

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

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
View user's profile Send private message Visit poster's website
BobMarion
Site Admin


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

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

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 to the forums!


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.
View user's profile Send private message Send e-mail Visit poster's website
pitaduo
New Member
New Member


Joined: Mar 13, 2005
Posts: 2

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

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
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum