The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
sorry, I was in a hurry this morning when writing that.
I'm using the vBEvents mod, and I have an events forum. This button we just got working will show on forumdisplay. It will replace "new thread" with "new event" but ONLY in event forums. Since I don't want to do this with a template conditional, or hardcoded forumid's vBEvents already has a plugin to determine if the forum is an event forum or not. By default the mod hardcodes an event type option in the ACP so that when a user presses new thread in an event forum, they are redirected to a new event posting with one of the 3 types (single, recurring, ranged). The type is set in the mod options (1,2,3) and can only have one choice. This button will replace that so in event forums it will be this nice little event type selector drop down box. What I need to do is use preg_replace to find 2 chunks of code in FORUMDISPLAY and replace them with my own 2 chunks of code respectively. I have no idea how to use preg_replace or regex, but I already have a plugin to put the code in. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|