vBulletin Search Engine Optimization
This is a discussion on Placing Kontera Ads within the Google Adsense, YPN, & Other Ad Networks forums, part of the Monetizing category; Is there a way, that while I'm showing Kontera ads for guests in postbit (for the entire forum) - I ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Placing Kontera Ads
Is there a way, that while I'm showing Kontera ads for guests in postbit (for the entire forum) - I can chose to show it to members in a certain section as well? I tried doing the following, but it doesn't work. Kindly, can anyone in here help me out with this bit. For Guests - in Post bit: Code: <!-- message -->
<if condition="$show['guest'] and THIS_SCRIPT == 'showthread'"><div class=KonaBody></if>
<div id="post_message_$post[postid]">$post[message]</div>
<if condition="$show['guest'] and THIS_SCRIPT == 'showthread'"></div></if>
<!-- / message -->
Code: <!-- message -->
<if condition="$bbuserinfo[usergroupid] != 1 and THIS_SCRIPT == 'showthread' and "$forum[forumid] == 9"><div class=KonaBody></if>
<div id="post_message_$post[postid]">$post[message]</div>
<if condition="$bbuserinfo[usergroupid] != 1 and THIS_SCRIPT == 'showthread' and "$forum[forumid] == 9"></div></if>
<!-- / message -->
Footer: For Guests: Code: <if condition="$show['guest'] and THIS_SCRIPT == 'showthread'"> --==Kontera Code==-- </if> Code: <if condition="$bbuserinfo[usergroupid] != 1 and THIS_SCRIPT == 'showthread' and "$forum[forumid] == 9"> --==Kontera Code==--</if> |
|
#2
| ||||
| ||||
|
do you have this wrapped in the KonaBody div ?
|
|
#3
| |||
| |||
|
Yes, from the code above, this is what I think you're referring to. Code: <!-- message -->
<div class=KonaBody></if>
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
Code: syntax error, unexpected T_CLASS in /home/******/public_html/testvb/includes/adminfunctions_template.php(3716) : eval()'d code on line 106 Last edited by ultrono; 06-26-2008 at 02:30 AM. |
|
#4
| ||||
| ||||
|
firstly, be sure to quote all attributes for xhtml reasons. ie: Code: <div class="KonaBody"> Code: <div id="post_message_$post[postid]" <if condition="((THIS_SCRIPT == 'showthread') AND (($show['guest']) OR (($show['member']) AND ($forum[forumid] == 9))))"> class="KonaBody"></if>>$post[message]</div> this groups everything in the condition of: -in Show thread -- all guests -- members + forum 9 Looks like you had some extra quotes around the forum ID condition in youf code. Code: and "$forum[forumid] This also saves you from coding the same template block over and over again... only need this one block for both guests and members. For the footer, you can just include it for everything... once its loaded once, its cached anyway and its probably less overheard than the template conditional is worth. Code: <if condition="(THIS_SCRIPT == 'showthread')"> KONA JS </if> |
|
#5
| |||
| |||
|
Brian, thanks a bunch for the help. It works! Can you please tell me that if I want to add multiple forum ids, I can add them like the following: Code: $forum[forumid] == 9,10,11 |
|
#6
| |||
| |||
|
Ok, I'm having one issue with the above code. If added in the form that you've written here - it gets pasted all over my forum (for my members) - which I don't want. And if I add the following code in the footer as well, instead of simple condition of showthread, members can't see it anymore in that particular forum. Code: <if condition="((THIS_SCRIPT == 'showthread') AND (($show['guest']) OR (($show['member']) AND ($forum[forumid] == 9))))"> Kon Js </if> |
|
#7
| |||
| |||
|
Anyone?
|
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Placing Kontera Ads | sunrise | Off-Topic & Chit Chat | 23 | 06-25-2008 08:36 PM |
| Placing post_linkback.gif somewhere else | Lian | LinkBacks | 2 | 04-26-2007 08:07 PM |
| Placing Ads in Threads | ruhrpottforum | Google Adsense, YPN, & Other Ad Networks | 9 | 03-01-2007 02:07 PM |
| Kontera | phuddle | General Discussion | 6 | 06-26-2006 05:22 PM |
| Placing an archive link on index page... | Sonnie | General Discussion | 4 | 05-19-2006 05:42 PM |