The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Great Affiliate Page for your Forum Details »» | |||||||||||||||||||||||||
Okay, so here is a little template edit/hack that will add an official looking affiliates page to your forum.
Firstly, you'll need to go to the AdminCP -> Styles & Templates -> YourSkin* -> Add New Template, we'll name it "custom_Affiliates" (note the custom_ and the capital "A", these are very important.) In your new template, copypaste the contents of the "GENERIC_SHELL" template. Which is as follows: HTML Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" id="vbulletin_html"> <head> $headinclude <title>$vboptions[bbtitle] - Affiliates</title> </head> <body> $header $navbar $HTML $footer </body> </html> so, here goes, find: HTML Code:
$HTML HTML Code:
<div class="spacer"></div> <div class="spacer"></div> <div align="center"> <table class="tborder" border="0" cellpadding="6" cellspacing="1" width="95%"> <tbody> <tr> <td class="tcat" colspan="4">Affiliates</td> </tr> </tbody> <tbody> <tr> <center> <td class="alt2" width="5%"><img title="Affiliates" src="images/Aff1.png" alt="Affiliates" border="0"></td> <td class="alt1"><div class="smallfont"> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> </div></td> <td class="alt2" width="5%"><img title="Affiliates" src="images/Aff2.png" alt="Affiliates" border="0"></td> <td class="alt1"><div class="smallfont"> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> <a href="#" target="_blank" title="Your Link Here">Your Link Here</a><br> </div></td> </tr> </tbody> </table> <a href="http://parlancia.com"><div class="smallfont">Affiliates Page created by Mad Mikey</a></div> </div> This should result in a page like this: Image: http://i43.tinypic.com/2lxz76x.png LIVE DEMO Now, we add a link to it, where people can click it, so lets add a link to the navbar, shall we? so, go to AdminCP -> Styles & Templates -> YourSkin* -> Navigation & Breadcrumb Templates -> navbar find: HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> HTML Code:
<td class="vbmenu_control"><a href="misc.php?do=page&template=Affiliates"><abbr title="visit our affiliates today, click here!">Affiliates</abbr></a></td> Just customise the template to your liking now, so, lets be sure, here is how the tag works: Code:
<a href="HTTP://YOUR LINK GOES HERE.COM" target="_blank" title="THIS IS WHAT VISITORS WITHOUT IMAGES ENABLED WILL SEE">This is the link that people click to access your affiliates site.</a><br> HTML Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" id="vbulletin_html"> <head> $headinclude <title>Affiliates - $vboptions[bbtitle]</title> </head> <body> $header $navbar <div class="spacer"></div> <div class="spacer"></div> <div align="center"> <table class="tborder" border="0" cellpadding="6" cellspacing="1" width="95%"> <tbody> <tr> <td class="tcat" colspan="4">Affiliates</td> </tr> </tbody> <tbody> <tr> <center> <td class="alt2" width="5%"><img title="Affiliates" src="images/Aff1.jpg" alt="Affiliates" border="0" WIDTH="80" HEIGHT="80"></td> <td class="alt1"><div class="smallfont"> <a href="index.php" target="_blank" title="Parlancia Forums">Parlancia Forums</a><br /> <a href="http://therogueforums.com" target="_blank" title="The Rogue Forums">The Rogue Forums</a><br /> <a href="http://gamelair.com" target="_blank" title="GameLair">Gamelair</a><br /> <a href="http://zeroboards.net" target="_blank" title="ZeroBoards">ZeroBoards</a><br /> </div></td> <td class="alt2" width="5%"><img title="Affiliates" src="images/Aff2.jpg" alt="Affiliates" border="0" WIDTH="80" HEIGHT="80"></td> <td class="alt1"><div class="smallfont"> <a href="http://s1.zetaboards.com/DeviousTyrantRP" target="_blank" title="Devious Tyrant RP">Devious Tyrant RP</a><br> <a href="http://www.foxhound-clan.com/" target="_blank" title="Foxhound">Foxhound</a><br> <a href="http://www.davidalphin.com" target="_blank" title="David Alphin Forums">David Alphin Graphics</a><br> <a href="http://www.mindtwistforums.com/" target="_blank" title="Mind Twist Forums">Mind Twist Forums</a><br> </div></td> </tr> </tbody> </table> </div> <a href="http://parlancia.com"><div class="smallfont">Affiliates Page created by Mad Mikey</a></div> <br /> $footer </body> </html> And you're all done =D Wow, long read. IF YOU USE THIS HACK AND LIKE IT, PLEASE CLICK INSTALLED. To Do: Make an Image\Flash Alternative ================================================== ============================================= *= Changes depending on board (IF ANYONE CAN HELP ME MAKE THIS INTO A PRODUCT THAT CAN BE IMPORTED, IT WOULD BE GREATLTY APPRECIATED) PRODUCT FOR THIS TEMPLATE EDIT Show Your Support
|
Comments |
#2
|
||||
|
||||
Upload Aff1.png and Aff2.png to "yoursite.com/yourforum/images"
sample.png is a screenshot of what it should look like. ~RESERVED~ Remember to click install if you use this. All the people who have replied haven't clicked install, even if they say they're going to be using it. |
#3
|
||||
|
||||
This is great!! thank you!
|
#4
|
|||
|
|||
Ooh fancy.
|
#5
|
|||
|
|||
Rather nice, will try an install later on
Thank you for this. EDIT: Just noticed on your example it says "Parlancia better viewed in Firefox", does the same go for this template or is it cross browser compatible? Thanks ________ Hawaii dispensary |
#6
|
||||
|
||||
That statement is there because we don't support internet explorer related errors, and we have optimised certain templates for FireFox, that's all. This template is cross browser enabled, feel free to try it in safari, opera, IE 6,7,8 and chrome.
|
#7
|
|||
|
|||
|
#8
|
|||
|
|||
|
#9
|
||||
|
||||
You may, though I would appreciate it if some sort of link was left, either to this page, or my forum
|
#10
|
|||
|
|||
I really like this
Any chance you could show me how to insert code to add 2 more boxes directly below the 2 affiliate boxes? Great job! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|