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)
-   -   Post Redirection Message (PRM) Hack - Custom "postthanks" messages per forum! (https://vborg.vbsupport.ru/showthread.php?t=44557)

N!ck 10-14-2002 03:32 AM

that code should be right above:

PHP Code:

      // redirect
      
if ($postpoll) {
        
$goto="poll.php?s=$session[sessionhash]&threadid=$threadid&polloptions=".intval($polloptions);
      } elseif (
$visible) {
        
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
      } else {
        
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
      } 

if you still can't find it, let me know.

____________________________

on the other note, i guess people might remove the redirects to cut down on bandwidth or something...i'm as mystified as you are though ;)

Bison 10-14-2002 03:41 AM

Couldn't find it ... could I just place this

PHP Code:

$newforuminfo=$DB_site->query_first("SELECT * FROM postthanks WHERE postthanksid = '".$foruminfo[postthanksid]."'"); 

above the code you mention above the //Redirect comment?

N!ck 10-14-2002 04:04 AM

mmm...you could try it; it won't hurt anything. i suspect maybe you've modified that part of the code before... :)

if it doesn't work, let me know what version you have.

thedvs 10-14-2002 11:54 AM

everything worked fine until I came to...

Find:
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
moderateattach)
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
Replace it with:
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
moderateattach,postthanksid)
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++

etc, in forum.php

Using 2.2.8

N!ck 10-14-2002 01:00 PM

in wordpad, search for ",moderateattach" (w/o quotes) and try to find it. you might have made a modification to that part of the code.

thedvs 10-14-2002 02:44 PM

ok it all worked! thank you for a brilliant hack! just what i was looking for!

N!ck 10-14-2002 10:08 PM

i'm happy for you, and you are very welcome. :)

ZiRu$ 10-27-2002 05:17 PM

Quote:

Originally posted by ZiRu$
I'd rather if it would say RETURN TO FORUM, RETURN TO MESSAGE, RETURN TO INDEX
my bad i didnt realize i can do this for EVERY forum. I will install :) good work

BigJohnson 10-27-2002 10:27 PM

Can someone help me. I only want the same redirection message for a reply and a new thread for the certain forum. How we would go by changing this? All i need is it to change the new thread redirection.

N!ck 10-28-2002 01:37 AM

Quote:

Originally posted by BigJohnson
Can someone help me. I only want the same redirection message for a reply and a new thread for the certain forum. How we would go by changing this? All i need is it to change the new thread redirection.
it's already worked into the next version, which will be released within 48 hours.


All times are GMT. The time now is 07:49 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.01046 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
  • (2)bbcode_php_printable
  • (2)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