vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Placing Kontera Ads

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

Go Back   vBulletin SEO Forums > Monetizing > Google Adsense, YPN, & Other Ad Networks

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-25-2008, 08:48 PM
Member
 
Real Name: ultrono
Join Date: Sep 2007
Posts: 34
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 -->
For Members - in Post bit: [I placed this right underneath the above code]

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>
For Members:

Code:
<if condition="$bbuserinfo[usergroupid] != 1 and THIS_SCRIPT == 'showthread' and "$forum[forumid] == 9">
--==Kontera Code==--</if>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 06-25-2008, 10:15 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,536
do you have this wrapped in the KonaBody div ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 06-26-2008, 02:16 AM
Member
 
Real Name: ultrono
Join Date: Sep 2007
Posts: 34
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 -->
Following is the error that I'm getting upon implementing the code above:

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 06-26-2008, 02:35 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,536
firstly, be sure to quote all attributes for xhtml reasons.
ie:

Code:
<div class="KonaBody">
For your fix, try wrapping your multi-conditionals and putting it all in one div instead of nested for everything:

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>
untested. i think that's right though...

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]
that quote is misplaced.

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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 06-26-2008, 03:13 AM
Member
 
Real Name: ultrono
Join Date: Sep 2007
Posts: 34
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 06-26-2008, 04:45 AM
Member
 
Real Name: ultrono
Join Date: Sep 2007
Posts: 34
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 06-26-2008, 04:00 PM
Member
 
Real Name: ultrono
Join Date: Sep 2007
Posts: 34
Anyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:10 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.