View Full Version : Installing a random banner script?
July 23rd, 2004, 12:38 AM
First, damn fine job on this script man. Its easily worth the money, thats for sure.
However, I have a bit of a problem. I've tried a number of ways to do it, but I don't seem to be able to include a random banner script that i have installed.
The media page is ::
The script is at www.dropmachine.com/media/ads/include.php
Ideally, I would like to include it on the front page, above the welcome but below the menu. I would also like it to appear at the top of each gallery, in abaout the same spot.
I will also be including the scrpt in Review post, so this would help me quite a bit.
Thanks very much!
July 23rd, 2004, 07:06 AM
Well you need to add that at the bottom of your header file.
The easiest way to do it would be to make your header a php file from a html file making sure you surround all the html with this at the front This would be your sample new header named header.php
YOUE HEADER STUFF HERE
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td width="250" height="75" valign="middle">
July 23rd, 2004, 11:29 AM
The rpoblem is though, is that the header that it points to is a universal header, and is all over the site. I can see what you mean though, as i could have a specific PHP header that would call the universal header and have that code underneath. Problem with that though is that it doesn't put the banner quite where i want it, as it then above everything rather then in between the 2 menus.
I was playing with the templates, specifically menubar.tmpl and though perhaps i could get the code to work there. I was wrong, as i have no idea what the hell i am doing. Is there a way to modify that template so that the banner will appear below that menu?
Thanks again for your help.
July 23rd, 2004, 01:05 PM
Of course it would be between your header which includes your site menu and the photopost menubar.
The first thing called by photopost is a header and then the menubar.
You want the header which incorporates a site menubar then the banner then the photopost menubar.
What I posted above does it exactly
Take your universal header and replicate it to another file using a php structure and do what I posted. It will work.
The way you have it now the welcome user is above the banner
The way you describe above is how I saw it between your two menu's is what you said
If you want it between the menubar template of photopost and the cathead or indexhead templates then at the bottom of the menubar.tmpl do this
find this at the bottom of menubar.tmpl
replace it with this
<td width="100%" colspan="2">
include( "path/to/media/ads/include.php" );
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.