vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   QuickReply addon: choose destination after posting (https://vborg.vbsupport.ru/showthread.php?t=44368)

N!ck 10-06-2002 10:00 PM

QuickReply addon: choose destination after posting
 
Here is a very simple hack that allows your users to choose where they want to be redirected to after posting a reply via QuickReply. I made this because I don't think it's truly quick unless you have the option to go back to the forum or main index. Screenshot is here.

---------------------------------------------------------------------------------
Step 1 - newreply.php

Find:
PHP Code:

      if ($visible) {
        
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
      } else {
        
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
      } 

Replace with:
PHP Code:

      if ($visible && !$returntowhere) {
        
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
      } else {
        if (
$returntowhere=="forumhome") {
          
$goto="index.php?s=$session[sessionhash]";
        } elseif (
$returntowhere=="thread") {
          
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
        } else {
          
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
        }
      } 

---------------------------------------------------------------------------------
Step 2 - Template: showthread_replybox

Find:
Code:

                </tr>
                </table>
        </td>
</tr>
</table>
</td></tr></table>

Replace with:
Code:

                </tr>
                </table>
        </td>
</tr>
<tr><td bgcolor="#F1F1F1" valign="top"><normalfont><b>Return to:</b></normalfont></td>
<td bgcolor="#F1F1F1"><select name="returntowhere" class="bginput"><option value="thread" selected>this thread</option><option value="forumdisplay">this forum</option><option value="forumhome">$bbtitle home</option></select><br><smallfont>After submitting reply, where do you want to go?</smallfont></td>
</tr>
</table>
</td></tr></table>

---------------------------------------------------------------------------------
Step 3 - Template: redirect_postthanks

Find:
Code:

You will now be taken to your post.
Replace with:
Code:

You will now be taken to your post or selected destination.
---------------------------------------------------------------------------------

Done! Please click install if you use this.

If you would like to use this on your regular post reply page as well, click here for instructions.

2 X Viverridae 10-07-2002 03:58 AM

Heh, heh! Thanks Nick! :D

Areku 10-07-2002 11:04 AM

/me installs this hack!

Tu!

scottct1 10-07-2002 01:53 PM

Good hack thanks!

Scott Clicks Install

Scott
DBSTalk.COM

Pancreas Paul 10-07-2002 02:39 PM

Thanx. Instaled perfectly.

techno 10-07-2002 11:53 PM

/me likes it!

ZiRu$ 10-08-2002 02:44 AM

I like it.....will install

DWZ 10-08-2002 06:07 AM

Can someone post a screenshot please?

Devil-GOD 10-08-2002 11:38 AM

nice hacks
i will install it

N!ck 10-08-2002 12:52 PM

here's a screenshot...options are "this thread", "this forum", and "<BOARD NAME> main index"


All times are GMT. The time now is 08:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01457 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete