The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need help whith a plugin [vB3.8 > vB4]
Hello, long time to create a plugin for my users to add a code in the title (+ pv) deprived his subjects could do if they wanted visitors.
Hook Location: showthread_postbit_create Code:
if(stristr($thread[title], '+pv') == TRUE) { $onlyreg = TRUE; } Code:
<if condition="($onlyreg == TRUE) and ($bbuserinfo[posts]<=1)"> <center><h2>Thread Visible for Registered Users Only</h2></center> <else /> Code:
</if> |
#2
|
||||
|
||||
You need to preregister $onlyreg for use in that template after you define it.
PHP Code:
|
#3
|
||||
|
||||
Thanks Lynne, Can you outline the steps to follow? :erm:
|
#4
|
||||
|
||||
I did. Add that line after you defined the variable.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|