Log in

View Full Version : Making a page part of your forums


anuj
10-14-2002, 07:56 PM
I know the title is stated horribly.

Ok, here is the deal. I've written several different (lol, different) shoutboxes before, and now I'm trying to incorporate one into my vB.

My basic questions are:

1) Is there any specific code that defines a page as part of the vbulletin?

2) What is the code necessary in my shoutbox.php to call a specific template?

3) Can I place this shoutbox OUTSIDE of my forums directory? Or would it be better suited to keep it IN the forums directory?

If you've answered these questions before, I'm sorry. I've looked at vbulletin.com, yaxay, vbulletintemplates.com and some others, but I couldn't find any good answers.

Thanks.

DrkFusion
10-14-2002, 08:06 PM
Well, when hacks are made, we use these bit of codes to get it to use vbulletin mysql info, functions etc

require("./global.php");
As you know global as all the information that vb uses.

to call a specific template eval code is used
for example
eval("dooutput(\"".gettemplate('template_name')."\");");

and yes you can place it out of the forums directory, but besure to use the chdir(); to tell the script where global.php is located at.

-noX

DrkFusion
10-14-2002, 08:11 PM
if you want to call a template through a variable within another template you can use

eval("\$variable .= \"".gettemplate('template_name')."\";");

anuj
10-14-2002, 08:13 PM
Thanks a lot. That answers everything.

DrkFusion
10-15-2002, 12:42 AM
No prob, this was actually my first question, before I started making hacks.

:)
Good Luck
-Arunan