Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Post Redirection Message (PRM) Hack - Custom "postthanks" messages per forum! Details »»
Post Redirection Message (PRM) Hack - Custom "postthanks" messages per forum!
Version: 1.00, by N!ck N!ck is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-12-2002 Last Update: Never Installs: 6
 
No support by the author.

This hack replaces the message you see after posting a new thread or reply ( the "Thanks for posting! You will now be taken to..." message). You can even set multiple messages if you want to use different messages for each forum!

Screenshots will follow!

++++++++++++++++++++++
Version 1.2 - 10/30/02
++++++++++++++++++++++

I'd really like to thank Xenon - he helped me immensely in the debugging process!

Download: click here

Upgrading to 1.2: click here for instructions

Enjoy!

-Nick

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-14-2002, 03:32 AM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 10-14-2002, 03:41 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #24  
Old 10-14-2002, 04:04 AM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 10-14-2002, 11:54 AM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everything worked fine until I came to...

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

etc, in forum.php

Using 2.2.8
Reply With Quote
  #26  
Old 10-14-2002, 01:00 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 10-14-2002, 02:44 PM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok it all worked! thank you for a brilliant hack! just what i was looking for!
Reply With Quote
  #28  
Old 10-14-2002, 10:08 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm happy for you, and you are very welcome.
Reply With Quote
  #29  
Old 10-27-2002, 05:17 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 10-27-2002, 10:27 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 10-28-2002, 01:37 AM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04564 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete