The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I add an image here?/ which template?
Hi, I want to know how can I add an image/banner/google ad search bar, in this part of the forum, without perturbing anything else:
(Where the arrow pointing the red box) |
#2
|
||||
|
||||
Most likely, that is the navbar.
To 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. |
#3
|
|||
|
|||
ok, its the navbar. So where should I add the code for the banner or pic?. I want to do so without modifying the size of the white area, forum names, etc.
|
#4
|
|||
|
|||
Find <!-- breadcrumb, login, pm info -->
Follow the code until you reach <if condition="$show['member']"> <td class="alt2" nowrap="nowrap"> Then add a td before that including your code Make sure to adjust the width so that it appears inline I've done that sometime ago but I removed it after few days because it looked ugly! |
#5
|
|||
|
|||
how i have it is
find this Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> </if> </td> Code:
<!-- Banner Rotator --> <td class="alt1"> <SCRIPT LANGUAGE="Javascript"><!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--></SCRIPT> </td> <!-- End Banner Rotator --> you can add as many links and banners u like just add more Code:
banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|