Quote:
Originally posted by Michael2
Can I replace the ad banner code and table that you have now with a code for a pop up? I want unregistered users to get pops but not registered users.
|
You can, no problem at all. Instead of the "$adcode" being an ad, you can chuck your nasty pop-up code in there. Then, call $adcode in your footer template rather than the header template (because then the popup code will activate once the page is fully loaded, and not before).
Just remember to escape any " characters - i.e. turn them into \".
Quote:
Originally posted by halloweennation
I've got this installed, but when I changed the color (white text on light grey didn't go) the color wasn't dark grey, but red AND the "register to remove this banner......" was moved to above the bar, instead of inside the middle of it. Help!
I'd also like the links to pop upon into a new page, and rotating banners instead of just one. Any ideas? Please email directly to (snip)
|
The first one's an HTML thing, and something I can't really help on. Sounds like you've removed a </td> when you shouldn't have.
Links to pop-up a new browser window is fairly easy: <a href="foo.html">This</a> will open in the same browser window. <a href="foo.html"
target=_blank>This</a> will open in a new one. How you author your ad code is really up to you.
Rotating ad banners? Well, I've got these: there must be an easier way, but this is how I've done it.
Replace the
$adcode="<TABLE..... bit of your code with the following:
PHP Code:
$adcoderandom = rand(1,4); \\picks a random number between 1 and 4
if ($adcoderandom==1) {$adcode = "<TABLE><TR><TD>BUY FISH</TD></TR></TABLE>"; } //this ad shows if random number is "1"
if ($adcoderandom==2) {$adcode = "<TABLE><TR><TD>BUY SAUSAGES</TD></TR></TABLE>"; } //this one if it's "2"
if ($adcoderandom==3) {$adcode = "<TABLE><TR><TD>BUY TROUSERS</TD></TR></TABLE>"; } // etc
if ($adcoderandom==4) {$adcode = "<TABLE><TR><TD>BUY CHEESE</TD></TR></TABLE>"; }
Sorry, but I'll never mail support direct to someone; it's not what community forums are all about.