The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Trouble Altering Code for Vbulletin Plugin
I'm trying to port one of my scripts over to vbulletin so I can use it's templating system. All I need to do is include either of two files based on the GET. Maybe there are special vbulletin function I need to use?
This is my script: Code:
require_once('global.php'); include('accountdb/includes/config.php'); if ($vbulletin->userinfo['userid'] != 0 and in_array($vbulletin->userinfo['usergroupid'],$usergroup_access)) { if(!empty($_GET['do'])){ if($_GET['do'] == 'add'){ include('accountdb/includes/add.php'); exit; } if($_GET['do'] == 'list'){ include('accountdb/includes/list.php'); exit; } } } Code:
ob_start(); include ('accountdb/includes/add.php'); $include_contents = ob_get_contents(); ob_end_flush(); |
#2
|
|||
|
|||
I am not too sure if this help but
PHP Code:
PHP Code:
PHP Code:
PHP Code:
You may find this better in the Programming Discussion Section, mine is just a guess. |
#3
|
|||
|
|||
I just want to include list.php and add.php. I don't want to make templates for them because they're PHP generated HTML.
|
#4
|
|||
|
|||
And what doesn't work? What is actually the question?
|
#5
|
|||
|
|||
To include PHP I think you have to make a new hook or plugin since the templates don't like the include function or any php for that matter.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|