![]() |
Great Affiliate Page for your Forum
1 Attachment(s)
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] so, here goes, find: HTML Code:
$HTML HTML Code:
<div class="spacer"></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] 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 |
1 Attachment(s)
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. |
This is great!! thank you!
|
Ooh fancy.
|
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 |
Quote:
|
|
|
Quote:
|
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! |
Quote:
Code:
<table class="tborder" border="0" cellpadding="6" cellspacing="1" width="95%"> |
Quote:
Copy Code:
<tbody> |
Awesome - thanks so much!
|
You're welcome :)
|
Made into a product and added as an Add-On, see first post.
|
Going to install this tonight! Thanks for the hack!
|
Thanks, you might want to check out the product, too, it's listed as an add-on. :)
|
demo is dead.
|
this is actually pretty damn good m8, thanks.
|
Hey, i really like this mod, but how can i add it to my main forum page? Right at the bottom under Forum Statistics. I've seen it on a couple of forums.
|
Great mod, Edited it to go in a custom extra navbar and changed the name of the template to my needs
|
Is there a fix for this for vb4?
|
Anything?
|
Anyone at all?
|
I can try to create a fix for Vb4.
|
Quote:
|
Quote:
|
To get this working in VB4 you need to use the correct generic shell template for vb4. The instructions for creating a link in the navbar won't work but you can access the page using the same link: misc.php?do=page&template=Affiliates.
Quote:
|
All times are GMT. The time now is 06:04 PM. |
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:
|