![]() |
||
|
|
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 |
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 ![]() |
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. There's nowhere I can't reach. |
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. ![]() |
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? |