The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How the heck would I do this?
I would like to do some integration with the main page on my web site, but I've had a hard time using other people's scripts. It seems to be an error with global.php all the time, anyway allow me to explain.
I would like to turn the right-hand menu of my site into a forums implementation. If the user is a guest, it would simply display the following: +Users Online (Numbers + Who's Online) +Login Form +Please register message If they are logged in, it would display something like this: +Users Online (Numbers + Who's Online) +Welcome, $username +You have XX new private messages +XX new posts since your last visit You probably get the general idea by now. Basically, I would like to take the welcome panel at the top of vbulletin and add it to my site, well here's the problem. I do know how to program PHP/MYSQL, but I'm unfamilar with vBulletin. Secdonly, global.php restricts access from outside the /forums folder, I would need global to be accessed from the root directory and by one level up. I've seen one script to allow this, I've also seen vb home editions doing stuff similar. If someone could simply redirect me in the right path to get on the course of doing this, that would be terrific. I'm looking for the features of Vbhomelite, except without using the entire scripts to alter my database. I just simply want to allow sessions on my main page along with the things I mentioned above. |
#2
|
||||
|
||||
there is the chdir() function of php which allows you to use the global.php in other directories, too
|
#3
|
|||
|
|||
That might work, but that will be a lot of work on my part. Right now I'm trying to manipulate myvbindex 3.0.
http://www.nintendofire.com/myvbindex.php I want to take out core functions such as users online, login panel and stats and simply put them on my main page. My main page is all hand coded PHP, basically I need to implement this into existing code. I can either do my own queries or try to add some of the stuff from vbindex into it. No luck so far. Any suggestions? |
#4
|
||||
|
||||
It should be fairly easy to take out the parts you want and add them to your main page. Most everything in the file has comments, so it shouldn't be too hard to figure out which chunk of code does what. Most also have some coding at the beginning that allows the option to be turned off/on via the Admin CP, so you'll probably need to take that out unless you ran the install file to add the options to your Admin CP.
Oh, and you will have to leave the chdir function in there and require your global.php file for everything to work. |
#5
|
|||
|
|||
Well I'm getting there. I took out a bunch of coding, but it still processes through with the headers. Does global automatically do that, or is it something I missed?
BTW- I also found some other hacks I could simply include on my PHP site to enable some options. I found who's online and login on a non-vb page. Let's hope it works with version 2.3.0. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|