Announcement

Collapse
No announcement yet.

Adsense below navbar to certain usergroups/forums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adsense below navbar to certain usergroups/forums

    Hello Everyone,

    Can anyone suggest how to place my 728 x 90 adsense banner in certain usergroups (for example everyone but paid subscribers and moderators) and forums? Please see the attached image. I think this is the welcome message area? I have a pic but for some reason the forum won't let me upload it.

  • #2
    <if condition="THIS_SCRIPT == 'index'">

    if the filename is index.php use index
    if the filename is showthread.php use showthread

    This means: if the variable for this_script is set to index, ... show this code.

    You can use this to only show banners on a certain page.


    <if condition="$bbuserinfo['usergroupid'] == 5">


    $bbuserinfo is from the user browsing the page
    usergroup id is the usergroup id the browsing user is set to
    and 5 is the number you wish to match against.

    So in this case, if the browsing user is in usergroup id 5 show the code.

    You can use this to limit page content to only a certain usergroup.

    Comment


    • #3
      Trying to do the same sort of thing above the nav bar

      I am wanting to do the same sort of thing, but am having trouble understanding the instructions in your post.

      Would like to display banners above the nav bar in certain forums, but not the same banners for each forum. E.G. I'd like to display banners T, U, and V above the nav bar in forum 1, and banners X, Y, and Z, above the nav bar in forum 2.

      I assume this would go above the breadcrumbs in the navbar template, and would use what you're describing in your post. However, I'm having trouble understanding.

      Can you please show an example?

      Thank you!

      Comment


      • #4
        Originally posted by Floris View Post
        <if condition="THIS_SCRIPT == 'index'">

        if the filename is index.php use index
        if the filename is showthread.php use showthread

        This means: if the variable for this_script is set to index, ... show this code.

        You can use this to only show banners on a certain page.


        <if condition="$bbuserinfo['usergroupid'] == 5">


        $bbuserinfo is from the user browsing the page
        usergroup id is the usergroup id the browsing user is set to
        and 5 is the number you wish to match against.

        So in this case, if the browsing user is in usergroup id 5 show the code.

        You can use this to limit page content to only a certain usergroup.
        sir/maam, where will we upload these codes?

        is there a way we can add a left side vertical navbar? can we show different banners automatically for every page?

        if there has been a the query about my concern, can you please direct me to it.

        thanks so much!
        http://www.filairsoft.com

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X