Results 1 to 8 of 8

No adsense in private section ?

This is a discussion on No adsense in private section ? within the Ad Networks forums, part of the Monetizing category; Hi, How can i remove adsense from private section, as "User Cp " "private message" ...etc ?...

  1. #1
    Junior Member
    Real Name
    romeo
    Join Date
    Apr 2007
    Posts
    13
    Liked
    0 times

    Question No adsense in private section ?

    Hi,

    How can i remove adsense from private section, as "User Cp" "private message" ...etc ?

  2. #2
    Senior Member °°Ben³'s Avatar
    Real Name
    Benjamin Klaile
    Join Date
    Jan 2006
    Location
    Remagen, Germany
    Posts
    113
    Liked
    0 times
    I do not know, how you inserted it.

    You can check the file constants within the templates, i.e.
    HTML Code:
    <if condition="THIS_SCRIPT == 'usercp'">
      {do something}
    </if>
    Open the PHP files, to inform about the constants (are located at the top of the files!).

    Hope to help.

  3. #3
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    i use this:

    Code:
    <if condition="!(
    (THIS_SCRIPT == 'login') OR
    (THIS_SCRIPT == 'register') OR
    (THIS_SCRIPT == 'usercp') OR
    (THIS_SCRIPT == 'private') OR
    (THIS_SCRIPT == 'subscription') OR
    (THIS_SCRIPT == 'payments') OR
    (THIS_SCRIPT == 'newthread') OR
    (THIS_SCRIPT == 'newreply') OR
    (THIS_SCRIPT == 'tags') OR
    (THIS_SCRIPT == 'invites') OR
    (THIS_SCRIPT == 'memberlist') OR
    (THIS_SCRIPT == 'online') OR
    (THIS_SCRIPT == 'member') OR
    (THIS_SCRIPT == 'spiders') OR
    (THIS_SCRIPT == 'psistats') OR
    (THIS_SCRIPT == 'profile') OR
    (THIS_SCRIPT == 'faq') OR
    (THIS_SCRIPT == 'sendmessage') OR
    (THIS_SCRIPT == 'CybPayPal') OR
    (THIS_SCRIPT == 'calendar') OR
    (THIS_SCRIPT == 'arcade') OR
    (THIS_SCRIPT == 'itrader') OR
    ((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
    ((THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
    ((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
    ((THIS_SCRIPT == 'gallery_search') AND $_REQUEST['searchid'] == '') OR
    (THIS_SCRIPT == 'gallery_upload') OR
    (THIS_SCRIPT == 'THIS_SCRIPT')
    )">
    
    AD CODE
    
    </if>

  4. #4
    Senior Member °°Ben³'s Avatar
    Real Name
    Benjamin Klaile
    Join Date
    Jan 2006
    Location
    Remagen, Germany
    Posts
    113
    Liked
    0 times
    Exactly, I used "==" ... that should surely be "!=" ..

  5. #5
    Junior Member
    Real Name
    romeo
    Join Date
    Apr 2007
    Posts
    13
    Liked
    0 times
    thanks for sharing, but when can i use it ? in header template ?

  6. #6
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,011
    Liked
    13 times
    You use it wherever the code was inserted.

  7. #7
    Senior Member
    Real Name
    Kristijan
    Join Date
    Oct 2005
    Location
    Zagreb
    Posts
    284
    Liked
    1 times
    if will be a problem if i have adsense showning in private section?

  8. #8
    Junior Member
    Real Name
    nysports365
    Join Date
    May 2007
    Posts
    7
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    i use this:

    Code:
    <if condition="!(
    (THIS_SCRIPT == 'login') OR
    (THIS_SCRIPT == 'register') OR
    (THIS_SCRIPT == 'usercp') OR
    (THIS_SCRIPT == 'private') OR
    (THIS_SCRIPT == 'subscription') OR
    (THIS_SCRIPT == 'payments') OR
    (THIS_SCRIPT == 'newthread') OR
    (THIS_SCRIPT == 'newreply') OR
    (THIS_SCRIPT == 'tags') OR
    (THIS_SCRIPT == 'invites') OR
    (THIS_SCRIPT == 'memberlist') OR
    (THIS_SCRIPT == 'online') OR
    (THIS_SCRIPT == 'member') OR
    (THIS_SCRIPT == 'spiders') OR
    (THIS_SCRIPT == 'psistats') OR
    (THIS_SCRIPT == 'profile') OR
    (THIS_SCRIPT == 'faq') OR
    (THIS_SCRIPT == 'sendmessage') OR
    (THIS_SCRIPT == 'CybPayPal') OR
    (THIS_SCRIPT == 'calendar') OR
    (THIS_SCRIPT == 'arcade') OR
    (THIS_SCRIPT == 'itrader') OR
    ((THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
    ((THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
    ((THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
    ((THIS_SCRIPT == 'gallery_search') AND $_REQUEST['searchid'] == '') OR
    (THIS_SCRIPT == 'gallery_upload') OR
    (THIS_SCRIPT == 'THIS_SCRIPT')
    )">
    
    AD CODE
    
    </if>
    Brian,

    I'm assuming you used this in your navbar template right? So this will not show the ad in those sections?

Similar Threads

  1. List of AdSense Trackers
    By Eros in forum Ad Networks
    Replies: 10
    Last Post: 08-01-2007, 11:09 PM
  2. Enable Adsense Section Targeting?
    By Gregory in forum General Discussion
    Replies: 4
    Last Post: 06-07-2007, 12:23 PM
  3. Adsense Section Targeting
    By Get Shorty in forum General Discussion
    Replies: 1
    Last Post: 08-21-2006, 04:27 PM
  4. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 09:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •