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)
-   -   Give an option to send use to forum after posting and not to thread (https://vborg.vbsupport.ru/showthread.php?t=26734)

Gutspiller 03-22-2003 10:58 PM

Quote:

09-09-01 at 08:46 AM FireFly said this in Post #12
Bug.

Fix:
In newreply.php replace this
PHP Code:

      // redirect
      
if ($visible) { 

with
PHP Code:

      // redirect
      
if ($visible && !$sendtoforum) { 

Thanks for finding that Christine. :)

Updated main post

What does that fix? I checked my code and I don't have that so I need to fix it, but after I add that fix, what will it fix?

Right now I am having the problem, (Yes I installed this a long time ago and am trying to fix a problem with it) If the user has it selected to return inside the thread, they are returned to the top of the thread. I want it so that it will return them directly to their post. I have that hack that numbers each thread and creates a hyperlink to each thread, but I don't know exactly how to get it to go back to their post after they submit their post.

I tested it and it does look like the problem is with this hack. (I think)

Can somebody please help me? :(

Keyser S?ze 05-12-2003 11:28 PM

standard reply: anyone tested this in 2.3.0?

007 05-17-2003 10:38 PM

I would assume it works fine in 2.3.0 because I just installed it on 2.2.9 with no problems at all.

I also added this option to the registeradult and registercoppa templates.

Also added it to modify user and add user in the admin CP.

Great HACK! :)

AndreaBash 06-12-2003 02:33 AM

Anyone know if it actually works in 2.3? There must have been changes to the PHP files we're supposed to edit. I can't find all the things I'm supposed to replace.

Anyone have an update?

cindyd 06-22-2003 08:10 PM

Thanks for this hack! I just installed it in 2.3 and didn't have any troubles.

Well, I never did find this in the poll.php:

PHP:

// redirect
if ($threadinfo[visible]) {


with

PHP:

// redirect
if ($threadinfo[visible] && !$sendtoforum) {

Cindy

Christine 06-22-2003 08:39 PM

Oops -- double post.

Christine 06-22-2003 08:42 PM

Cindyd,

Try
PHP Code:

// redirect
    
if ($visible && !$sendtoforum) { 


zsmom 10-25-2003 01:24 PM

My members have been begging for this but I just can't get it to work. :disappointed:

I have version 2.3.

When I hit the post reply button I get a parse error in the newreply.php file, line 645 which is right around the last edit for that file. Would anyone be willing to help me???

larryd 11-10-2003 10:54 PM

Ive read the thread and I see a few mentions of how to get this to work with the quick reply box but I dont see anything definite. Can anyone tell me how to implement this with the quick reply box?

larryd 11-13-2003 07:13 AM

Anyone??


All times are GMT. The time now is 04:25 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.01217 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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