Announcement

Collapse
No announcement yet.

Disable ads in specific thread id ??

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

  • Disable ads in specific thread id ??

    i'm using this code to disable ads in custom or specific thread for guest only (example thread id: 123).

    Code:
    <if condition="$show['guest'] && $thread['threadid'] != 123">
    My question is how to disable in multiple thread id??

    can anyone help me, please!!

  • #2
    HTML Code:
    <if condition="$show['guest'] && in_array($thread['threadid'], array(123, 456, 789))">

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      Dear Lynne, Thank you for help me.

      I have 1 question again: whether it is possible to block ads for guest only using some word/term/keyword ??

      example:
      if the thread title contain word like "sex" or "porn" the ads not appear for guest only???

      Thank You
      - God Bless You -

      Comment


      • #4
        I would guess it would be possible - I suppose you can search for a certain string in the ads (can you search the text in the ads?) and if it is found, then change the permissions for it. I haven't ever tried anything like that though.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

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