How to revert the post reply function back to vb3 way

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ibaker
    Senior Member
    • Oct 2004
    • 259

    [Forum] How to revert the post reply function back to vb3 way

    This is a fix that I have applied on my site to get the post quick and full reply back to working like it was in vb v3 before the vb developers stuffed it up in v4.

    Note...my site is using v4.0.5 so I can't guarantee that this will work for previous or future versions of v4

    There are 4 components of replying to a post:
    1. The large reply button at the top of the posts
    2. The large reply button at the bottom of the posts
    3. The reply button in each post footer
    4. The quote button in each post footer

    What this does is change all 4 to use the full post editor page and adds a 5th button in the footer of each post to use the quick reply. Note the Quick Reply box can also be used for typing in a direct reply.

    Step 1
    Ensure you have the Quick Reply box selected in your vb Admin Control Panel -> Settings -> Options -> Message Posting and Editing Options -> Quick Reply -> Yes, Click Not Required (select this option and save)

    Step 2
    This step will make the two large reply buttons go to the full post editor page instead of the Quick Reply.

    Edit your SHOWTHREAD template Styles & Templates -> Style Manager

    Look for (line 54 & 55):
    Code:
    <a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" 
    class="newcontent_textcontrol" id="newreplylink_top">
    and remove the following
    Code:
     id="newreplylink_top"
    Next look for (line 318, 319 & 320):
    Code:
            <a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" 
                class="newcontent_textcontrol" id="newreplylink_bottom"
                >
    and remove the following
    Code:
     id="newreplylink_bottom"
    Step 3
    This step will add a link in the footer of each post to go directly to the full advanced post editor page.

    Edit your postbit_legacy (or postbit) template Styles & Templates -> Style Manager

    Look for (lines 190-193)
    Code:
                        <vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
                            <a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a> 
                        <span class="seperator">&nbsp;</span>
                        </vb:if>
    After that add this code:
    Code:
    <!-- added advance reply -->
                        <vb:if condition="!$show['threadedmode']">
                            <a class='quickreply' href="newreply.php?{vb:raw session.sessionurl}p={vb:raw post.postid}&amp;noquote=1" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="Advanced reply" /> Adv {vb:rawphrase reply}</a>
                            <span class="seperator">&nbsp;</span>
                        </vb:if>
    <!-- end added advance reply -->
    Note...to help your users to clearly distinguish between the two reply modes you may like to add the word Quick like shown here to:
    Code:
    quick_reply_to_this_message}" /> Quick {vb:rawphrase reply}</a>
    to the code a couple of lines above

    Step 4
    This will change the Quote button to use the full advanced editor page

    In the same postbit template look for:
    Code:
                        <vb:if condition="$post['replylink']">
                            <a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow">
    and simply remove the qrwq_ part of the id

    Hope this helps someone out there to fix this double click stupidity
    Best regards
    Ian
    "Everyone wants to fly, but some people just haven't realised it yet"
    www.recreationalflying.com
    NOTE: This post remains solely the property of the poster and any reference to it is done so by the acceptance of this condition. Also elements of whatever I posted were previously used by a competing site so the post is also made on the condition that it can not be used by Glenn Inwood of Cowra NSW Australia or anyone associated with him.
  • Mr Peabody
    Senior Member
    • Jul 2004
    • 162
    • 5.5.x

    #2
    Beautiful, adapted to 4.0.7
    thank you!

    Comment

    • Mike4Kayla
      Senior Member
      • Feb 2010
      • 154
      • 4.1.x

      #3
      thanks Bro, Nice tut and easy to do erm hard to look for stuff on VB4.0.7 but got there.

      Comment

      • sross
        Senior Member
        • Mar 2004
        • 660

        #4
        Hi, works great but this part:


        <!-- added advance reply --> <vb:if condition="!$show['threadedmode']"> <a class='quickreply' href="newreply.php?{vb:raw session.sessionurl}p={vb:raw post.postid}&amp;noquote=1" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="Advanced reply" /> Adv {vb:rawphrase reply}</a> <span class="seperator">&nbsp;</span> </vb:if> <!-- end added advance reply -->
        seems to leave me with a broken link in private messages. Any work around for that? Thanks!

        Comment

        • John Lester
          Senior Member
          • Jul 2000
          • 412
          • 4.1.x

          #5
          So once again vB has changed how the button works. There is new code to find (in 4.1.12) instead of the code that is posted in the first post. In the showthread template you need to find:

          Code:
          <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
          and remove
          Code:
           id="newreplylink_top"
          then find

          Code:
          <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"class="newcontent_textcontrol" id="newreplylink_bottom"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
          and remove
          Code:
           id="newreplylink_bottom"
          BrainTalk is a support group for friends, family, caregivers, and patients with neurological disorders and other health related diagnosis.

          BrainTalk Communities Inc
          sigpic

          Comment

          • Forensic
            Member
            • Sep 2007
            • 62
            • 4.2.X

            #6
            Has anyone tested this in 4.2?

            Comment

            • Bat21
              Senior Member
              • Jan 2003
              • 291
              • 4.2.X

              #7
              Originally posted by John Lester
              So once again vB has changed how the button works. There is new code to find (in 4.1.12) instead of the code that is posted in the first post. In the showthread template you need to find....
              Originally posted by Forensic
              Has anyone tested this in 4.2?
              Just done this with 4.2.2 and all works fine, many thanks.

              Comment

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