Announcement

Collapse
No announcement yet.

How to use a code with specific sections

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

  • 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

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


    GIPHY for vB5 | AutoLinker | Video Attachments Player | Last Registered Users Module | Clear System Cache Cron | Drag-n-Drop Upload | Topic AJAX AutoUpdate | Force Read Topic

    Comment


    • #3
      Originally posted by Glenn Vergara View Post
      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:	2
Size:	71.9 KB
ID:	4387427
      Attached Files

      Comment


      • #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 customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Originally posted by Wayne Luke View Post
          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


          • #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 customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment


            • #7
              Thanks Wayne Luke
              Added here
              http://tracker.vbulletin.com/browse/VBV-18260

              Comment

              Loading...
              Working...
              X