How to use a code with specific sections

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Emad ELsayed
    Senior Member
    • Jan 2013
    • 151
    • 4.2.x

    How to use a code with specific sections

    How to use this code to block ads with specific sections in VB5
    Or any other method
    <vb:if condition="!in_array($GLOBALS[forumid], array(a,b,c))">
    Ads Here
    </vb:if>
    <vb:if condition="!in_array($GLOBALS[threadid], array(a,b,c))">
    Ads Here
    </vb:if>
    Best Regards
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4011
    • 5.7.X

    #2
    The Ad Modules in vB5 have the below display options that you can enable to show the ads.
    • User is browsing channel xxxx
    • User is browsing channel xxxx or one of its child channels
    I've never used them though and I'm not sure if those settings work. But there's no harm in trying.


    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • Emad ELsayed
      Senior Member
      • Jan 2013
      • 151
      • 4.2.x

      #3
      Originally posted by Glenn Vergara
      The Ad Modules in vB5 have the below display options that you can enable to show the ads.
      • User is browsing channel xxxx
      • User is browsing channel xxxx or one of its child channels
      I've never used them though and I'm not sure if those settings work. But there's no harm in trying.
      Thank you dear
      But can not select more than one partition
      I want to block advertising more than one section
      Best Regards

      Click image for larger version

Name:	2018-03-04_12-48-20.jpg
Views:	30
Size:	71.9 KB
ID:	4387427
      Attached Files

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73981

        #4
        Each forum/channel can have its own Page and Template assigned to it. That is how you would control multiple sections. Create multiple pages. To do this, when you save the page select No for Overwrite template. Then give it a unique name. I suggest using the channel/forum name. Then only that channel/forum will use that page layout.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • Emad ELsayed
          Senior Member
          • Jan 2013
          • 151
          • 4.2.x

          #5
          Originally posted by Wayne Luke
          Each forum/channel can have its own Page and Template assigned to it. That is how you would control multiple sections. Create multiple pages. To do this, when you save the page select No for Overwrite template. Then give it a unique name. I suggest using the channel/forum name. Then only that channel/forum will use that page layout.
          Hello dear
          But this method takes a lot of time, especially in the case of many sections.
          Is there an alternative code for this?
          -- Can this feature be included in the ad model to determine specific sections of the ad impression.
          Best Regards

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73981

            #6
            This is the way to do it in the system currently. The only alternative at this time would be to code your own system.

            You're welcome to create a Feature Request in our issue tracker.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • Emad ELsayed
              Senior Member
              • Jan 2013
              • 151
              • 4.2.x

              #7
              Thanks Wayne Luke
              Added here

              Comment

              Related Topics

              Collapse

              Working...