Gamingforce Interactive Forums
85240 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
Diversion
Jellicle Cat


Member 68

Level 19.09

Mar 2006


Reply With Quote
Old Aug 4, 2008, 03:42 PM #1 of 4
vBulletin Question (Something I Saw Here)

I'm asking this here because googled failed and I know I saw this done here at one point

A forum I'm running is being moved to a different domain, and instead of starting fresh, I'm keeping members and posts. Now I know I can update the database through phpMyAdmin to switch all instances of the url to the new one, but is it possible within the admin panel for any future instances of the URL posted to automatically be changed to the new one?

Thanks in advance!

Most amazing jew boots
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 #2 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.

There's nowhere I can't reach.

Last edited by Bigblah; Aug 4, 2008 at 03:53 PM.
Diversion
Jellicle Cat


Member 68

Level 19.09

Mar 2006


Reply With Quote
Old Aug 4, 2008, 03:59 PM #3 of 4
Thank you very much (that was quick): I assume this'll work if people post in any of the editors? (Quick Reply, Full Reply)

This thing is sticky, and I don't like it. I don't appreciate it.
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 #4 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).

I am a dolphin, do you want me on your body?
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 01:44 PM.


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