![]() |
add plug-in, can't submit
Hello,
I have a plug-in: Code:
if ($vbulletin->options['enable'] AND (THIS_SCRIPT=='newthread')) Thank :) This is video: http://www.youtube.com/watch?v=sNtKvZ90Ews |
You have a few typos in there. Try this:
Code:
if ($vbulletin->options['enable'] AND (THIS_SCRIPT=='newthread')) |
Now that I look at it again, I might have messed up your str_replace() line, you probably had it right.
|
|
And that problem goes away if you disable your plugin? It must be another problem with the plugin (I guess that's obvious :) ). I notice on the first line you have this:
Code:
if ($vbulletin->options['enable'] AND (THIS_SCRIPT=='newthread')) shouldn't it be 'enable_forumid'? Edit: also, is your table named "testting"? |
Don't you want it to be like this?
PHP Code:
|
Quote:
Code:
if ($vbulletin->options['enable'] AND (THIS_SCRIPT=='newthread')) if ($vbulletin->options['enable'] = if enable THIS_SCRIPT=='newthread' = show only new thread |
Quote:
|
this is my templater :(
Code:
<vb:if condition="$show['member'] AND $vboptions['enable']"> |
Any way we can actually see the results of your plugin on a page?
|
All times are GMT. The time now is 04:15 PM. |
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:
|