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)

Boofo 06-05-2002 10:41 AM

In my poll.php file I don't have the exact code that were in the intructions.

Code:

And in poll.php replace

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


with:

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

Here's what I have:

Code:

// redirect
    if ($visible) {

What do I need to do to change it to what it should be?

Boofo 06-05-2002 10:57 AM

If you figure it out or get an answer to the question about why that code won't work, I'd be interested in hearing about it. :)

Quote:

Originally posted by Tommy Boy
If I'm not mistaken, you forgot to add:
PHP Code:

$sendtoforumchecked = ($sendtoforum) ? "checked" ""

Right after:
PHP Code:

    $parseurlchecked=iif($parseurl,"checked","");
    
$emailchecked=iif($email,"checked","");
    
$disablesmilieschecked=iif(!$allowsmilie,"checked","");
    
$signaturechecked=iif($signature,"checked",""); 

In both newthread.php and newreply.php. Without those lines, the checkbox will be cleared when you preview the post.

BTW: Any idea why the following line does NOT work?
PHP Code:

$sendtoforumchecked=iif($sendtoforum,"checked",""); 



Sadie Frost 06-08-2002 02:18 AM

Quote:

Originally posted by Boofo
In my poll.php file I don't have the exact code that were in the intructions.

Code:

And in poll.php replace

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


with:

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

Here's what I have:

Code:

// redirect
    if ($visible) {

What do I need to do to change it to what it should be?

What I did was look for
Code:

if (!$threadinfo[visible]) {
and replace that :) Hope it works :)

freakyshiat 06-08-2002 08:50 PM

I have both quickreply and quicknewthread installed. The problems I am havng are:

It shows messages as being unread when you go back to forums.

Send to forum by default only works in reply, not quick reply

any suggestions? :)

Boofo 06-08-2002 08:59 PM

I have that in 2 places in poll.php, but no redirect above either one. :)

Quote:

Originally posted by Sadie Frost


What I did was look for
Code:

if (!$threadinfo[visible]) {
and replace that :) Hope it works :)


The Ghost 06-15-2002 09:57 PM

hi,

works this hack with 2.2.6??

Please! :classic:

Admin 06-16-2002 05:36 AM

Yes.

Christine 07-01-2002 04:54 PM

Just a second 'yep' to that -- I loaded this as written into 2.2.6 this weekend and it is working like a champ.

Thanks, Firefly!

:)

ptenthus 07-26-2002 10:49 PM

Firefly,

Do you have a way that quickreply and this hack can co-exist in perfect harmony? (i.e. if a user's default it to return to the thread list, it should work even if they use the quickreply. Currently it doesn't do that).

Boofo 07-26-2002 11:00 PM

in the showthread_replybox template try adding this:

PHP Code:

<input type="hidden" name="sendtoforum" value="$sendtoforumchecked"

after this:

PHP Code:

<input type="hidden" name="rating" value="0"

and let me know if it works. :)


All times are GMT. The time now is 09:39 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.01092 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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