Ads on specific forums

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • THETMZ
    New Member
    • Nov 2006
    • 25
    • 5.0.X

    Ads on specific forums

    Hello,

    Q1: How is it possible to show ads module on all channels except specific ones?
    Q2: How is it possible to show ads module on all posts except posts from specific channels?

    Thanks
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    Hello

    You can show modules on specific channels by electing to "overwrite template" when saving the page, after adding the module. You then choose a new template name, and the module will show just on that channel.

    There's no way to have it the other way round and show it everywhere except specific channels.

    You cannot do this for specific posts though.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • THETMZ
      New Member
      • Nov 2006
      • 25
      • 5.0.X

      #3
      Is it possible to edit Style/template and insert custom php variables like in vb3-vb4? Where it's possible to control everything via conditional statements + custom variables?

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #4
        Originally posted by THETMZ
        Is it possible to edit Style/template and insert custom php variables like in vb3-vb4? Where it's possible to control everything via conditional statements + custom variables?
        Similar principles apply yes, but you have no plugin system of the sort there was in vB3 and 4 so it's a much trickier thing to do.

        You could probably manually insert some ad code into a template, surrounded by a conditional that looked for the nodeid (or everything that was NOT the nodeid).
        That would work in a similar fashion to vB4, but the variables are different and the templates are different.

        For help with this, vbulletin.org is the best place to ask.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • THETMZ
          New Member
          • Nov 2006
          • 25
          • 5.0.X

          #5
          Ok. Is there a list of built-in variables / triggers that could be used in conditional statements? Or vb.org only? Thx

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24286
            • 6.0.X

            #6
            I don't think there's a list anywhere to be honest.

            Often you can work them out by looking elsewhere in the template.
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

            • glennrocksvb
              Former vBulletin Developer
              • Mar 2011
              • 4011
              • 5.7.X

              #7
              I think you can do what you want using template hooks. I can personally help you on this if you want.

              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

              • THETMZ
                New Member
                • Nov 2006
                • 25
                • 5.0.X

                #8
                I would gladly accept your help.

                Comment

                • glennrocksvb
                  Former vBulletin Developer
                  • Mar 2011
                  • 4011
                  • 5.7.X

                  #9
                  Originally posted by THETMZ
                  I would gladly accept your help.
                  Sent you a PM.

                  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

                  Related Topics

                  Collapse

                  Working...