![]() |
I have accomplished this via editing index.php, and it uses tables, i released it as a forum home modification, as an addon to Welcome Panel, but it can be removed from Welcome Panel, and used by itself in ForumHome.
It can be editied easily to fit any of your needs, especially Saint Dogs, or Organic-Hosting. |
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.
|
Well,
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 Vlad@halloweennation.com Thanks in advance, -Chris http://forums.halloweennation.com/ |
Quote:
Just remember to escape any " characters - i.e. turn them into \". Quote:
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:
|
Tried the popup "_blank" thing, but there's a restriction on using "'s in the code, so it didn't take too well.
Still can't get the "register to make this banner disappear....." text into the middle of the box beside the banner, as opposed to above it, And am a novice about code, so need it spelled out really plain to get a rotating banner. Here's what I've got online. // This code is PHP4 only: // ob_start(); // require("yourheader.html"); // $header = ob_get_contents(); // ob_end_clean(); //ad banner $adcode=""; if ($bbuserinfo['userid']<"1") { $adcode="<TABLE width='100%' bgcolor='#000000><TR><TD align='center'><normalfont><B><a href=\"register.php?s=$session[sessionhash]&action=signup\">Register free</a> to remove this ad banner</b></normalfont></td><TD align='right'> <a href=\"http://www.sideshowtoy.com\"><img src=\"http://www.halloweennation.com/Images/sst.jpg\"> </td></tr></table>"; } //end |
Quote:
should become <a href=\"http://www.sideshowtoy.com\" target=\"_blank\"> Quote:
This hack's really for people that have a vague inkling about PHP (you don't need much, just a vague inkling). If you copied the code above for four rotating ad banners, but put your own ad code into the holes, it should work just fine for you. |
clicks installed*
|
All times are GMT. The time now is 07:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|