Announcement

Collapse
No announcement yet.

Header entry only for Guests

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

  • Header entry only for Guests

    Hi Community,

    how can i add a entry to the header (google ad Script) that is only included for guests..?

    I added it in head_template, but it is shown to all users. I will show it only for guests.

    Best regards...

  • #2
    Add a static HTML module to the page.

    Place the HTML code in the module.

    Set the permissions for the module to only be visible to Usergroup 1

    Comment


    • #3
      Thanks,

      but the code should be added in the header.

      Is it possible to use a code like

      Code:
      <vb:if condition="!$user OR $user['userid'] < 1">
      and then "echo" and the script..?
      Last edited by Olker; Mon 20 Jan '20, 7:51am.

      Comment


      • #4
        For vb5?
        styles> style manager> style name> edit tempates> head_include


        <vb:if condition="$bbuserinfo['userid'] == 0">

        <!-- add your google script here -->

        </vb:if>
        Get Our New Flat Theme Pro Pack or Grab all 34 vb5.5.4 skins @sultantheme.com -vb3 responsive style or vb4 responsive style and vbcloud custom style

        Comment

        Related Topics

        Collapse

        Working...
        X