Gamingforce Interactive Forums
85242 35212

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


vBulletin Question (Something I Saw Here)
Reply
 
Thread Tools
Bigblah
Tails is incompetent!


Member 5

Level 45.31

Feb 2006


Reply With Quote
Old Aug 4, 2008, 03:49 PM Local time: Aug 5, 2008, 04:49 AM #1 of 4
AdminCP -> Plugins & Products -> Add New Plugin

Hook Location: postbit_display_complete
Title: (whatever you want)
Code:
Code:
$this->post['message'] = str_replace("old url","new url",$this->post['message']);
Remember to activate it when you save.


Alternatively you can find the hook for post presave processing and swap the url there, so that the change gets saved to the database whenever a post is submitted.

Jam it back in, in the dark.

Last edited by Bigblah; Aug 4, 2008 at 03:53 PM.
Bigblah
Tails is incompetent!


Member 5

Level 45.31

Feb 2006


Reply With Quote
Old Aug 4, 2008, 10:03 PM Local time: Aug 5, 2008, 11:03 AM #2 of 4
postbit_display_complete fires whenever a post is displayed. As long as people write the old url, when the post is viewed they'll see the new one. Although whenever they edit their post they'll still see the old url, so if you want that changed you'll need to find the hook just before the post is saved (which will trigger whether it's quick or full reply).

There's nowhere I can't reach.
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > vBulletin Question (Something I Saw Here)

Forum Jump


All times are GMT -5. The time now is 10:05 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc.