Notice not working as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CorbinH
    Senior Member
    • May 2009
    • 232
    • 4.0.0

    Notice not working as expected

    I'm trying to place a welcoming notice to appear only on the Home Page.
    I have tried clicking on the 3rd check box down, User is browsing channel - Forum, but then the notice does not appear at all.
    What am I doing wrong?


    Click image for larger version

Name:	Notice-1.jpg
Views:	93
Size:	181.7 KB
ID:	4398862


    Click image for larger version

Name:	Notice-2.jpg
Views:	72
Size:	142.4 KB
ID:	4398863
  • LockedOnLaw
    Senior Member
    • Apr 2010
    • 2311
    • 6.X

    #2
    Based upon the screenshot you should uncheck the "User belongs to" option and check the "User is browsing channel" option.

    Comment


    • CorbinH
      CorbinH commented
      Editing a comment
      Thanks, I'll try that.

    • CorbinH
      CorbinH commented
      Editing a comment
      That didn't work.
      I unchecked "User belongs to....." and checked "User is browsing...." and the notice did not appear on ANY page.

    • LockedOnLaw
      LockedOnLaw commented
      Editing a comment
      Did you select the main forum from the drop-down menu?
  • CorbinH
    Senior Member
    • May 2009
    • 232
    • 4.0.0

    #3
    There is only forum entry to select from.

    Click image for larger version

Name:	Notices-3.jpg
Views:	53
Size:	149.6 KB
ID:	4398894

    Comment

    • LockedOnLaw
      Senior Member
      • Apr 2010
      • 2311
      • 6.X

      #4
      Do you see the notice if you go to YourURL/forum ?

      Comment


      • LockedOnLaw
        LockedOnLaw commented
        Editing a comment
        I mean does it show up if you navigate to http://www.ausph.com/forum

      • CorbinH
        CorbinH commented
        Editing a comment
        Yes, the notice shows up.

      • CorbinH
        CorbinH commented
        Editing a comment
        It's just gone midnight here in Melbourne, so I'm off to bed. I'll check again in the morning.
    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74167

      #5
      The default Home page is not a channel. It is a page all of its own. "User Browsing Channel: Forum" would be /forum/ in a default installation. This looks similar to the default home page but is subtly different.

      My recommendation would be to use either the Static HTML (bordered, optional header) or Ad Module (no border, no header) with your custom HTML on the Home page if you want something to only show up there.
      Translations provided by Google.

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

      Comment


      • CorbinH
        CorbinH commented
        Editing a comment
        Thank you Wayne for the very detailed explanation.

      • CorbinH
        CorbinH commented
        Editing a comment
        I was using this notice to test out the features.
        What I was hoping to do was construct a welcoming message to members who are looking, but not browsing. I was hoping to make use of the {username}, User has not posted for......., and User's post-count is between,,,,,,,, features to target lapsed members and invite them to start posting again.
        Is this still possible with your method?
        I only want the message on the Home page as I don't want it to appear as a "nag" message.

      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        To use the shortcodes, you would have to do something different. See my post below.
    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74167

      #6
      To show a Notice on only one page, you would have to use CSS.

      On a default installation, the home page is page1. If you have changed the home page, you will need to look at the page source code to see this. You're going to look for the body tag. It will be similar to this:
      Code:
      <body id="vb-page-body" class="l-desktop page1 vb-page view-mode" itemscope itemtype="http://schema.org/WebPage" data-usergroupid="6" data-styleid="1">
      The page will be listed in the class attribute such as page1 above. This is necessary information.

      Next you'll need the ID of the notice. You can get this by hovering over the Notice link in the Notice Manager in the AdminCP. It will be at the end of the URL in the status bar of your browser. My example notice is 2.

      Now that we have these two pieces of information we can add some CSS to your css_additional.css template to accomplish this.

      First we want to hide this notice on all pages.
      Code:
      [data-notice-id="2"] {display:none;}
      Next we want to make it visible on the home page. For that we need to add this code:
      Code:
      .page1 [data-notice-id="2"] {display:block;}
      You would need to add this to every style that your end users have access to. The easiest way to access this template is using Site Builder on the front end. Click on "Style" in the Site Builder Menu and then select the "CSS Editor" tab. The first window is your css_additional.css template. You would need to update the page and notice-id values to match your site.
      Translations provided by Google.

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

      Comment


      • CorbinH
        CorbinH commented
        Editing a comment
        Thanks Wayne for the very informative post.

    Related Topics

    Collapse

    Working...