View Full Version : Post Redirection Message (PRM) Hack - Custom "postthanks" messages per forum!
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 (https://vborg.vbsupport.ru/attachment.php?s=&postid=316745)
Upgrading to 1.2: click here for instructions (https://vborg.vbsupport.ru/showthread.php?action=showpost&postid=316745)
Enjoy!
-Nick
screenshot 2: admin cp (edit forum)
screenshot 3: after posting
Matt87
10-13-2002, 01:02 AM
VERY Nice... Good Job, A definate install :p
Velocd
10-13-2002, 01:30 AM
Hey nifty idea, *kicks install* ;)
let me know if anything isn't working quite right...i had to revise the instructions a couple times, even after Xenon worked on them.
ZiRu$
10-13-2002, 02:11 AM
I'd rather if it would say RETURN TO FORUM, RETURN TO MESSAGE, RETURN TO INDEX
Smoothie
10-13-2002, 02:19 AM
Removed my re-directs long ago...
Matt87
10-13-2002, 03:12 AM
My forums are screwed right now, but once I fix them... Yes, I'll install :p
Dean C
10-13-2002, 10:57 AM
lol cool hack ! :D
- miSt
FleaBag
10-13-2002, 02:12 PM
How can I edit the actual HTML of that redirection page?
if you want to edit the whole page, you'd have to edit the standardredirect template. otherwise, if you want to edit only the html in the box where the message is, you can insert it in your post redirection message.
Erwin
10-13-2002, 09:24 PM
Originally posted by Smoothie
Removed my re-directs long ago...
Ditto. :)
Bison
10-14-2002, 01:25 AM
Why?
Bison
10-14-2002, 03:28 AM
Would anyone remove the redirector code?
And Nick, for the life of me, I couldn't find this code in newthread.php:
$bbuserinfo['username'] = htmlspecialchars($bbuserinfo['username']);
}
}
that code should be right above:
// 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
$newforuminfo=$DB_site->query_first("SELECT * FROM postthanks WHERE postthanksid = '".$foruminfo[postthanksid]."'");
above the code you mention above the //Redirect comment?
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
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!
i'm happy for you, and you are very welcome. :)
ZiRu$
10-27-2002, 05:17 PM
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.
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.
Visionray
10-29-2002, 12:26 AM
um, you can do this exact same thing by going into your control panel and editing the redirect templates.
Visionray
10-30-2002, 10:50 AM
Oh, well I was mistaken, I see this hack is for different messages in multiple forums. I was talking about changing the message for all news posts in all the forums, which you can do in your admin pc with a template edit.
I've cautiously removed this from BETA and also added the ability to change messages depending on whether a new thread or a new reply is being posted.
To upgrade, I'd recommend uninstalling and starting over, BUT you can just update by redoing steps 5-7 in readme-prm.txt, uploading prm.php to your admin folder (overwrite old one), issuing the following SQL query, and running the install script again.
DROP TABLE postthanks;
ALTER TABLE forum DROP postthanksid;
The new version is attached; enjoy!
Chris M
10-30-2002, 08:43 PM
Nice:)
Satan
Boofo
01-08-2003, 09:33 AM
Originally posted by Erwin
Ditto. :)
How do you do that. Is there a way to globally turn them off?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.