mikey1991
21 Apr 2009, 02:47
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now, heres the cool part, see that $HTML, up there in the template? Thats what you want to change in your new template.
so, here goes, find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace it with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Then, upload the two attached images (or two of your own choosing, name them Aff1 and Aff2, and make sure that they are *.png's) to http://yoursite.com/yourforumdir*/images (if you don't have a forum directory, upload to /images).
This should result in a page like this:
Image: http://i43.tinypic.com/2lxz76x.png
LIVE DEMO (http://parlancia.com/forums/misc.php?do=page&template=Affiliates)
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add below:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now there should be a link on your navbar called "Affiliates" and when you hover your mouse over it, it will say in a little popup hoverbox thingy (yes, I know, that name is too awesome) "visit our affiliates today, click here!"... Feel free to customise that.
Just customise the template to your liking now, so, lets be sure, here is how the tag works:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So, your finished template will look like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Woot, All finished! you can access your finished poage from this link: http://yoursite.com/yourforumdir/misc.php?do=page&template=Affiliates
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 (http://www.vbulletin.org/forum/showthread.php?t=212593)
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now, heres the cool part, see that $HTML, up there in the template? Thats what you want to change in your new template.
so, here goes, find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace it with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Then, upload the two attached images (or two of your own choosing, name them Aff1 and Aff2, and make sure that they are *.png's) to http://yoursite.com/yourforumdir*/images (if you don't have a forum directory, upload to /images).
This should result in a page like this:
Image: http://i43.tinypic.com/2lxz76x.png
LIVE DEMO (http://parlancia.com/forums/misc.php?do=page&template=Affiliates)
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add below:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now there should be a link on your navbar called "Affiliates" and when you hover your mouse over it, it will say in a little popup hoverbox thingy (yes, I know, that name is too awesome) "visit our affiliates today, click here!"... Feel free to customise that.
Just customise the template to your liking now, so, lets be sure, here is how the tag works:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So, your finished template will look like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Woot, All finished! you can access your finished poage from this link: http://yoursite.com/yourforumdir/misc.php?do=page&template=Affiliates
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 (http://www.vbulletin.org/forum/showthread.php?t=212593)