hzemall 02-07-2008, 08:18 PM I would like to add some banners down the side of our forum, as well as the top and the bottom.
Can some one point me in the right direction ? Not a huge tech guy here either :)
Mike54 02-11-2008, 06:45 AM You will find some side column add-ons, over at vB.org. As for adding ads at the top and bottom of forum pages, you will need to determine what page/s you want the ads to display on and then insert the code in the appropriate locations. For instance, if you want ads to appear under the NavBar on the index page, then insert the ad code directly under $navbar on the FORUMHOME template.
realbigsource 03-03-2008, 03:46 PM You will find some side column add-ons, over at vB.org. As for adding ads at the top and bottom of forum pages, you will need to determine what page/s you want the ads to display on and then insert the code in the appropriate locations. For instance, if you want ads to appear under the NavBar on the index page, then insert the ad code directly under $navbar on the FORUMHOME template.
Hello,
I try the info you gave above but the ad only show on the home page only, do you have a way of having the ad show on all page?
Mike54 03-04-2008, 06:11 AM Add the same code to FORUMDISPLAY and SHOWTHREAD.
All you need to do is add the code to the templates you want the ads to appear on.
realbigsource 03-04-2008, 08:03 AM Add the same code to FORUMDISPLAY and SHOWTHREAD.
All you need to do is add the code to the templates you want the ads to appear on.
so I have to put the ad code on each page I want he ad to show on?
Caddyman 03-04-2008, 08:10 AM to show on all pages add it too the "header" or "navbar" template
realbigsource 03-04-2008, 08:14 AM to show on all pages add it too the "header" or "navbar" template
Where would I find the Navbar template, I could never find it?
Caddyman 03-04-2008, 08:55 AM under the main template "Navigation and breadvcrumbs" i think, something like that
realbigsource 03-04-2008, 09:43 AM under the main template "Navigation and breadvcrumbs" i think, something like that
Thanks a million, you are the man with the plan.:app:
Caddyman 03-04-2008, 10:04 AM athanku
you're welcome.
realbigsource 03-04-2008, 10:19 AM athanku
you're welcome.
Now, I have a new problem, only members can see the ads, guess or anyone who not login cant see the ad.
Caddyman 03-04-2008, 10:40 AM did you put them inside a conditional statement? if so, it is wrong, look at that.
realbigsource 03-04-2008, 12:22 PM did you put them inside a conditional statement? if so, it is wrong, look at that.
The first half of my navba code blelow,
<br />
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<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>
<if condition="$show['member']">
I insert AD Code here and only member see the ads, guess do not see them
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>
Caddyman 03-04-2008, 12:52 PM That's your issue
<if condition="$show['member']">
I insert AD Code here and only member see the ads, guess do not see them
that says "If they are a member, show this"
you need "If they are a guests, show this"
which would be
<if condition="$show['guest']">AD CODE HERE</if> <---- there you go
GOOD REFERENCE (http://forum.vbulletinsetup.com/f66/vbulletin-template-conditionals-list-2185.html)
|
|