Announcement

Collapse
No announcement yet.

username in postbit not showing

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

  • [Forum] username in postbit not showing

    Postbit section:

    (note: this is a default template, nothing sepcial added or changed)
    Code:
       <div class="username_container">
       <vb:if condition="$post['userid']">
        {vb:raw memberaction_dropdown}
        {vb:raw post.onlinestatus}
       <vb:else />
        <span class="username guest">{vb:raw post.musername}</span>
       </vb:if>
       </div>........
    The username shows to logged in users, however guests do not see the name.

    A "view source" shows an empty div.
    Code:
    <div class="postdetails">
    <div class="userinfo">
    <div class="username_container">
     
    
          
    </div>
    <span class="usertitle">
    New User</span>
    <span class="postbit_reputation" id="repdisplay_33823_15312" title="shiny is on a distinguished road">
    <img class="repimg" src="images/reputation/reputation_pos.png" alt=""/>
    </span>

  • #2
    Make sure that you are looking at the postbit_legacy template, not the postbit template.

    Comment


    • #3
      My apologies for calling it postbit and not postbit_legacy. To be clear, I am using postbit legacy and the code above does reflect the postbit legacy template (which is default, non edited).

      Comment


      • #4
        Okay, I was just making sure that you were looking at the right template.

        Things to check:

        Make a new style with no parent style and see if the error persists using that style.

        Put this in your config.php to disable any plugins and see if the error persists with plugins disabled:
        PHP Code:
        define('DISABLE_HOOKS'true); 

        Comment


        • #5
          The template set was stock, no edits. I did find the problem though, I had done some hand editing of the class_postbit yesterday.

          Thanks

          Comment


          • #6
            Ah. Glad you figured it out.

            Comment

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