Signatures once per page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SID297
    Member
    • Nov 2004
    • 49
    • 3.0.3

    Signatures once per page

    How can I make signatures only show once per page for each user?
  • the Sandman
    Senior Member
    • Jul 2003
    • 1539
    • 3.7.x

    #2
    Originally posted by Kier
    Actually, this can be done with conditionals.

    In the postbit template, find this conditional:
    HTML Code:
    <if condition="$post['signature']">
    And replace it with this one:
    HTML Code:
    <if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
    This will cause each user's signature to be shown only on their first post on each page.
    From This Thread.
    The Admin Zone - Resources for Forum Administrators
    Articles - Forum Review
    Interviews:
    KierScottJerryAndreasSteveWayneJakeFlorisLogicianErwin
    Paul M

    Comment

    • ewbarnard
      Member
      • Nov 2004
      • 79
      • 3.0.3

      #3
      Thank you! Looks like a good candidate for making a user control panel option.

      Comment

      • SID297
        Member
        • Nov 2004
        • 49
        • 3.0.3

        #4
        Thanks

        Comment

        • eJM
          Senior Member
          • Sep 2004
          • 916
          • 3.8.x

          #5
          I want to be clear on this. Using that code, if the user has opted to show a sig, it will only show one time on a page. If they post 4 times in a thread on one page, uncheck the sig option on the first post, leave it checked on the second, third and fourth, the sig will only show in the second post.


          What if the member has selected different than the default number of messages on a page? If I choose to see 20 when the default is 10, a member has posted 4 within the first 10 and a total of 6 times in all 20, will I see only 1 sig and others using the default see 2 sigs in the thread (one on each page)?

          Thanks for helping me understand this. I really like this idea.

          Jim
          If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
          www.TheFloorPro.com

          Comment

          • da_prez
            Senior Member
            • Jun 2003
            • 155

            #6
            once per page, doesn't matter how long the page is, change it and give it a look.

            you can always change it back.

            Comment

            • the Sandman
              Senior Member
              • Jul 2003
              • 1539
              • 3.7.x

              #7
              You can't beat a modification by Kier!
              The Admin Zone - Resources for Forum Administrators
              Articles - Forum Review
              Interviews:
              KierScottJerryAndreasSteveWayneJakeFlorisLogicianErwin
              Paul M

              Comment

              • jeepinator
                Member
                • Dec 2004
                • 76
                • 3.0.3

                #8
                It's not working for me.
                Here is what I did:
                Admin CP > Styles & Templates > search in templates
                I then searched for "postbit" and found "postbit" under postbit templates and double clicked on it
                I then searched in template for "signature" and found an instance identical to above instructions and edited it to be exactly like above instructions.
                I tested this by posting twice in the same thread, on the same page.
                Sig showed up both posts.

                Perhaps I am way too dumb for this stuff.

                Comment

                • eJM
                  Senior Member
                  • Sep 2004
                  • 916
                  • 3.8.x

                  #9
                  If you are using the new posting format, with the member name and info across the top of the message, that is the POSTBIT template. If you are using the old format, with the member name and info to the left of the message, that is the LEGACY_POSTBIT template. Change the appropriate one.

                  Jim
                  If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
                  www.TheFloorPro.com

                  Comment

                  • jeepinator
                    Member
                    • Dec 2004
                    • 76
                    • 3.0.3

                    #10
                    Ah ha!
                    Thank you.

                    Comment

                    • Webber
                      Senior Member
                      • Aug 2004
                      • 143
                      • 4.1.x

                      #11
                      Originally posted by the Sandman
                      I am not very good at php. I tried to make this work for vB3.5.2 but I error out.

                      Anyone know if this has been written for the latest vb version?

                      Thanks in advance.

                      Comment

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