![]() |
php plugin
how to include this php code to vbulletin ? i think wirh plugin and Global start but inst working like that. this script should only be at the showthread.php
function: if the user is logged in. That special link is disepearing from all post. PHP Code:
|
need help here!
|
You couldn't do that in global start I don't believe. You just dont want links to work at all?
|
Quote:
|
`no ideas?
|
need help -.-
--------------- Added [DATE]1257600267[/DATE] at [TIME]1257600267[/TIME] --------------- help me Oo? |
if(THIS_SCRIPT == showthread)
{ your code here } |
with global start or what?
like that? PHP Code:
|
You are using template conditions in a plugin and that is not going to work. Plugins must only use php. Instead of:
PHP Code:
PHP Code:
|
ah ok, then like that? (what about the </else> ) Oo
if(THIS_SCRIPT == showthread) { if ($vbulletin->userinfo['userid']) { function callback($buffer) { return (str_replace("http://example.com", "", $buffer)); } ob_start("callback"); {else /} } } |
All times are GMT. The time now is 08:23 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:
|