Pinned and Locked

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,470
    7,711
    321
    localhost
    Heisenberg submitted a new resource:

    - Pinned and Locked

    vB Version: 5.x.x

    This will add a simple yet lacking little feature to vB5x.
    The pinned and locked icons.
    Before
    You must be registered for see images attach

    and after
    You must be registered for see images attach

    I originally planned to just edit the LTR sprites image but discovered a very annoying issue.
    If for example the topic is both sticky and closed, only 1 sprite is displayed.
    I found this message while looking into the matter.

    "There's a problem here. Topic read state is set by javascript not...

     
    Last edited:

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,470
    7,711
    321
    localhost
    Here is a little update.
    I have resized the icons themselves and removed the sizing code. I also added the TITLE tag.

    Code:
                        <vb:if condition="!empty($topicPrefix)"><span class="prefix js-prefix"><vb:if condition="$topic['showopen'] == 0"><img class="locked" src="/images/locked.png" title="Locked" alt="Locked" /></vb:if><vb:if condition="$topic['sticky']"><img class="pinned" src="/images/pinned.png" title="Pinned" alt="Pinned" /></vb:if>: </span></vb:if>

    You must be registered for see images attach

    You must be registered for see images attach


    You must be registered for see images attach