[HELP] Building My own Mods

d22552000

New Member
I would just like two tidbits of help when building my own vbulletin mods please. I know an insane amount of PHP and MySQL, just very little about the vBulletin class structure. Please help me ASAP, I am stumped.

1. What variable (run from init_startup) holds the userinfo of the CURRENTLY LOGGED IN USER (that is viewing that page)?

2. What code(s) will allow me to execute templates, and replace pages. (IE: I want to display a page with the header and footer and stuff, and put my own text in between it (putting a page in the middle of misc.php did not work out to well for what I want to do.)

--

Please excuse me for posting this in the wrong section, I do not see where it belongs in. If a mod would have mercy and simply move it for me should such a section exist, please do.
 
That was a very helpful read, which solved one of my problems. I still have one more.

I am working on pages with this format more or less:

Standard VB Page
Code:
$html
$headerinclude
$header
$navbar
BLA
$footer
$html_end

BUT, if a GET variable "?der" is set, I want to display:

New page
Code:
$html
$headerinclude
$header
NEW BLA
$footer
$html_end

I know there is some syntax like:
PHP:
exec("globaltemplates[] = mynewtemplate");
$vbulletin->render();
die();

But that is not what I want to do (lol). I also do not want to create a new PHP file just to show one page.
 
That is where you need the "how to make a custom page" tutorial. You need to include a call to the vBulletin globals.php file so you get all the stuff you need to be able to use all the variables you are calling on your custom page. It works like a charm when you have it set up correctly.


http://www.vbteam.info/req-other/5065-req-creating-vbulletin-powered-page-tutorial.html

check out post #2, this is the technique you need to / should be thinking about ...
 
Back
Top