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"

JFry 10-08-2002 09:43 PM

Great hack :) Thanks.

lordofgun 10-09-2002 03:18 AM

nice! installed!

matthepepe 10-09-2002 04:24 AM

very nice hack
/me installs

Lesane 10-09-2002 02:37 PM

Just installed it, nice little addon. Thanks Nick.

N!ck 10-09-2002 09:24 PM

wow...the great Lesane likes my hack

[high]* nicksaunders blushes
[/high]

(lol, j/k about the blushing part ;) ) thanks.

TheCaver 10-09-2002 10:17 PM

Has this been installed by anyone who is using Spellcheck for their quickreply?

Mine won't work, seems the other embedded forms are causing problems with this one.... :(

JC

N!ck 10-09-2002 10:33 PM

Quote:

Originally posted by TheCaver
Has this been installed by anyone who is using Spellcheck for their quickreply?

Mine won't work, seems the other embedded forms are causing problems with this one.... :(

JC

double-check that you've done everything correctly. there is a similar code in newreply.php that is pretty much exactly the same except for one little variable. (hint: search for the FIRST line of the code you have to replace in WordPad.)

if that still doesn't work, let me know.

obiwan8472 10-09-2002 10:47 PM

Brilliant Hack! Thanx! :)

N!ck 10-09-2002 11:06 PM

:)

Sh4z0n 10-29-2002 07:01 PM

i can't find showthread_replybox template... why?

Chris M 10-29-2002 07:09 PM

Probably because :

a.) You havent installed FireFly's Quick Reply Box hack
b.) You arent looking in the "custom templates" part of the templates;)

Satan

mewgood 10-29-2002 09:49 PM

great
installed:D

Sh4z0n 10-30-2002 04:08 AM

Quote:

Originally posted by hellsatan
Probably because :

a.) You havent installed FireFly's Quick Reply Box hack
b.) You arent looking in the "custom templates" part of the templates;)

Satan

much thanks :)
i'm a noob on php :p

JFry 11-01-2002 06:48 PM

Does this conflict with Firefly's hack to return to forum after a regular reply (instead of a quick reply)? I want to give users the option to return to forum after either a quick reply or a regular reply. Thanks.

N!ck 11-01-2002 10:18 PM

actually, this could be used with the regular reply too...just put the code that's supposed to go in showthread_replybox in showthread instead...if you need more specific instructions, let me know.

AsedaH 11-12-2002 08:34 PM

i installed this one....nice addon indeed.

except i swithced mine so the default selection is to go back to the forums.

Quote:

actually, this could be used with the regular reply too...just put the code that's supposed to go in showthread_replybox in showthread instead...if you need more specific instructions, let me know.
wouldnt that be "new reply" and "new thread" instead of in"showthread_replybox"?

in either case, can you give more specific instructions please?

thanks

N!ck 11-12-2002 10:26 PM

err...yeah, i made a typo. anyway:

1) find this in template "newreply":
Code:

</tr>
$attachmentoption
$threadratingoption
</table>
</td></tr></table>

Replace with:
Code:

</tr>
$attachmentoption
$threadratingoption
<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>

Done!

AsedaH 11-13-2002 02:12 AM

thanks, it work perfectly

ChrisLohman 01-02-2003 05:11 PM

2.2.9, works great, many thanks.

Ice Effect69 01-06-2003 06:30 PM

I am running it on 2.2.9, well trying to anyways. I installed fireflys then nicksaunders, but i still cant get it to work. The quickreply box will not show up at the bottom of the pages. Someone Please Help... *Edit*Do I need to do the same thing with newthread as i do with newreply?*/edit*

__________________________
Steve Giuffre
http://prowrestlingdirect.com/forums/

Ice Effect69 01-06-2003 08:00 PM

well i got the reply box to work, i tried to put the addon of where to go to after posting, but it dont work for me, but no sweat anyways...

ed2k_2 01-21-2003 03:28 PM

I installed the hack "Quick Reply Box" and this Add-Ons but still get this message after I click on Submit Reply:

--------------------------
vBulletin Message
No thread specified. If you followed a valid link, please notify the webmaster
--------------------------

Kindly help me to figure it out where I've done mistake.


All times are GMT. The time now is 04:43 PM.

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.01967 seconds
  • Memory Usage 1,788KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete