Log in

View Full Version : How do I add an image here?/ which template?


avillax
09-01-2009, 02:43 PM
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)

https://vborg.vbsupport.ru/external/2009/09/80.jpg

Lynne
09-01-2009, 02:59 PM
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.

avillax
09-01-2009, 05:36 PM
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.

medicalforums
09-01-2009, 06:11 PM
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!

Markos
09-02-2009, 08:29 AM
how i have it is

find this
<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>

and add this under it for rotating images and links

<!-- 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

banner[number++] = "<a href='http://LINK HERE.co.uk' target='_blank'><img src='http://image link here' border='1'></a>"

http://img.photobucket.com/albums/v306/markos1977/Untitled-2.png