The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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) |
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|