The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Different Ads on different forums + showing recent threads on main page of website
Hi, I'm looking for a couple of hacks - I have tried searching these forums but couldn't find them.
1. I wish my forums to display different ads for different forums - like what is done at sitepoint. I don't know if this is done with a hack or just playing with different templates. 2. I also wish to display a dynamic box on the main page of my website (not the main page of the forums) with the 5 most recent threads in the forums. The main page is a PHP page. Any help would be appreciated!! |
#2
|
||||
|
||||
1. Modify the forumhome_forumbit_level1_nopost, and add a
PHP Code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thank you so much! I will try out both and let you know how it worked. Much appreciated!
|
#4
|
|||
|
|||
Well I'm having some problems implementing the marquee hack - posted about it in the thread. Looks like it's an old thread - I hope someone will be around to help. I guess I'm going to try the advertisements now
|
#5
|
|||
|
|||
Gary - question about the PHP code for the different ads.
I need the images to be linked to the advertisers's website. I'm not sure how to change the PHP code - would that be the right syntax - if ($forum['forumid']==1) { $advertisement="<a href="http://adsite.com" target="_blank'><img src=\"images/advertisement01.jpg\" /></a>"; } Not sure where I put the </a> at the end.... |
#6
|
||||
|
||||
Quote:
PHP Code:
|
#7
|
|||
|
|||
Phew - glad I asked. No way would I have guessed that!
Thanks again Gary!!! |
#8
|
||||
|
||||
Glad I could help!
|
#9
|
|||
|
|||
Hmmmm.... Gary for some reason this isn't working for me. I did everything you said - and no ad show up...
This is what the code at index.php looks like - if ($forum['forumid']==1) { $advertisement="<img src=\"/forums/images_new/ad01.gif\" />"; } if ($forum['forumid']==2) { $advertisement="<img src=\"/forums/images_new/ad01.gif\" />"; } if ($forum['forumid']==3) { $advertisement="<img src=\"/forums/images_new/ad11.gif\" />"; } if ($forum['forumid']==4) { $advertisement="<img src=\"/forums/images_new/ad11.gif\" />"; } eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";"); --------------------------------------------------------------- I also changed the forumhome_forumbit_level1_nopost template exactly like you told me. Nothing shows up - not even a red X (of course I have the images uploaded at that URL). ------------------------------------------------------------ In case you wish to see this for yourself you need to login as - username - addelle password - review As all of the above is only in my new design (I have changed the template in the new design only) and that user is set to see the new design (no posting or any other privelages ) |
#10
|
|||
|
|||
BTW - not sure how this fits in but I would really like the ads to show right beneath the header of my site (i.e. right before the forums display). I tried putting the $advertisement as part of the header but it doesn't work...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|