|
||
|
|
|||||||
| 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).
|
![]() |
|
|
Thread Tools |
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']);
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. |
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. |