View Full Version : how can i add image w/link to different sections of forum
dober_co
08-18-2009, 08:45 PM
Hello all,
i would like to add 3 different banners to different sections on the forum, i can find the tpl files to modify it, so any of you knows where should I add the image code? can i add it as a simple html code or it should be an specific code?
thanks in advance to all
Lynne
08-18-2009, 08:54 PM
If you are adding the code to a template, then it should be written in valid html.
dober_co
08-18-2009, 09:13 PM
yeah but where can i find the right file to modify them??? i cant find any tpl files just php files, if this last ones are teh ones to be modified wich ones should be?
Lynne
08-18-2009, 09:46 PM
You mean how do you find the template to modify? Do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
dober_co
08-18-2009, 10:45 PM
well that didnt work for me. i am used to be able to modify forums by altering the tpl files but there are NONE of them for vbulletin, also the php files are all coded and they dont work when i add the code for the image. sorry but i am getting frustratd here and its been two days since i started looking around for an answer with no success.
what i want to do its simple... just to add an image with a link to another page at the top of selected tthreads or categories. is it that hard????
Lynne
08-18-2009, 10:52 PM
What is a tpl file? I kept thinking you were using some misspelled shortened version for template, but obviously not. vBulletin uses templates. You put html in templates and several templates make up a page.
If you want to put something at the top of a forumdisplay.php page, you would go to the FORUMDISPLAY template and put something like this where you want it:
<if condition="$forumid == xx">
image code
</if>Change xx to be the forumid of the forum you want the image to show up in.
dober_co
08-18-2009, 11:03 PM
a .tpl file is in fact a template file used by several forums or software scripts, you can find them on a folder and by modify them you alter the entire look and layout of the page and also after twisting the css file you get what you want. the thing here is that i dont see where can i make the changes, i will look for the one you are saying on the above msg. but it seems like everything needs to be found/done over teh admin cp, am i right? but what if i want to make the modification by myself on dw?
--------------- Added 1250640346 at 1250640346 ---------------
.tpl
1. Generic file extension indicating a template of some form. Either used to create new documents or to provide layout information for existing ones.
2. PHP development template file. A text editable PHP file containing PHP statements that is used to provide standard layout for part of a web-page and used for multiple pages on a website, for instance implementing a standard header or standard footer. The extension .tpl is by convention and is not mandated.
Lynne
08-18-2009, 11:19 PM
Templates are in the admin cp, you are right. You may only access them through there.
dober_co
08-18-2009, 11:34 PM
thank you Lynne, i finally was able to modify them. thanks for all your help. my problem was that i was looking for them on the regular files tru FTP.
thanks again
Lynne
08-18-2009, 11:40 PM
Glad you figured it out.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.