PDA

View Full Version : Banner Ad on Image Pop-Up Page?


Steve_C
06-12-2006, 07:56 PM
How would go about adding a banner image (using HTML and javascript code) to insert the banner ad tracking code above the image on the pop-up page the Image Gallery produces?

77sunsetstreet
06-12-2006, 10:09 PM
hi steve_c,
just edit the popup.php
the script-code place should be arround line 146/147 (head)

then you can place the img at line 199 for ex.
echo '<P><b>Here Can Be Your Ad</b></P></body>
******</html>';

72dpi
06-13-2006, 01:45 AM
hey 77, thanks for the answer, but I think Steve wants it to count as a download, therefore needs to reference Abcohens cool Plugin.

I haven't looked at making this work, & don't have a way to test till I get home, but the code U need to make this work is below. Simply add it into your page, i think where 77 Suggests.:


// +---------------------------------------------+
// |**** Copyright © 2005 Adam Cohen********|
// |**** http://www.OneStarMedia.com******** |
// |**** This file may not be redistributed.**** |
// +---------------------------------------------+


// ####### SPONSOR MANAGER ########

function p92_SponsorManager()
{
**global $DB;

**// get plugin settings
**$getsettings = $DB->query("SELECT title, value FROM " . TABLE_PREFIX . "pluginsettings WHERE pluginid = '92'");
**for($i = 0; $setting = $DB->fetch_array($getsettings); $i++)
**{
****$settings[$setting['title']] = $setting['value'];
**}

**for($i = 1; $i <= 5; $i++)
**{
****if($settings['Display Sponsor ' . $i])
******echo '<div align="center"><a href="./plugins/p92_sponsor_manager/redirect_url.php?sponsorid=' . $i . '" target="_blank"><img src="' . $settings['Image ' . $i] . '" alt="' . $settings['Alt Text ' . $i] . '"></a></div><br /><br />';
**}
}

p92_SponsorManager();



I just deleted:
if(!defined('IN_SUBDREAMER'))
**die("Hacking attempt!");

if(!defined('TABLE_PREFIX'))
**define('TABLE_PREFIX', "");
As the declaration should already be made in the popup page.

U will need to edit the URL, <a href="./plugins/p92_sponsor_manager/red etc etc
Just look at the code which the popup uses to reference the site (Sorry, can&#39;t remember it offhand)

lemme know how U go&#33;

77sunsetstreet
06-13-2006, 05:22 PM
i´m not shure if i understand steve_c right but may he or some will take a look at what i´ve done H E R E (http://sd.mk-portal.eu/index.php?categoryid=3) klick on a section and on a thumb
the pic will show in a popup. above the pic is my own banner-ad, press F5 or next img to see the banner change.

may that is what steve_c want?

buga
06-13-2006, 11:20 PM
77 does this use the Banner Management Plugin? I would also like to have a cloned Banner Manager Plugin be able to run on Pop-ups if possible to keep track of clicks

I&#39;ll try out 72&#39;s suggest method if yours doesnt use banner manager...

77sunsetstreet
06-14-2006, 05:35 AM
that is just my own ad management

buga
06-14-2006, 08:01 AM
I see, I&#39;ll try out 72&#39;s method today. I also have an idea on how I can get it to work with the Banner Manager I want to try out as well

buga
06-16-2006, 06:55 AM
Got it to work. Just paste the code 72 posted on line 42 of the popup.php

72dpi
06-16-2006, 08:53 AM
Cheers Buga,

Glad it worked, thatnks for posting back =)

Steve_C
07-10-2006, 08:15 AM
I am not trying to use another plug-in but rather my own javascript banner code.

Steve_C
07-16-2006, 07:25 AM
<div class='quotetop'>QUOTE(Steve_C &#064; Jul 10 2006, 03&#58;15 AM) 7795</div>
I am not trying to use another plug-in but rather my own javascript banner code.
[/b]

Anyone??