![]() |
Main url and forum url
I am writing a mod.
What are the php variables that will give me the url for the current forum and current thread? I am operating in the context of plugins are are fired on the following hooks: newreply_post_complete editpost_update_complete newthread_post_complete newreply_post_start I have looked high and low. Even just the url for the current page would be nice. --------------- Added [DATE]1404398927[/DATE] at [TIME]1404398927[/TIME] --------------- Nevermind - I found it: $vbulletin->url I'm so new to this platform that the basics are sometimes completely inobvious:) --------------- Added [DATE]1404402893[/DATE] at [TIME]1404402893[/TIME] --------------- newthread_post_complete is still giving me fits. I need the url for the new post, not for the current page in this case. Help! |
I figured it out (in several hours).
This will give you the url for a new thread during newthread_post_complete: $vbulletin->options['bburl'] . '/showthread.php?' . $newpost['threadid']; (for any future searches that find this thread) |
All times are GMT. The time now is 02:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|