PDA

View Full Version : Custom Portal


Bill-Kill
09-24-2007, 11:15 PM
I posted this on vBulletin.com and they directed me over here, so hopefully you guys could help me.

I am going to make a custom portal for my forum, and want to know what files I would need to use to integrate it. I was looking at global.php, I think that is the correct file for all the variables that I would need. But the problem is, I'm not sure if this is the correct file I would need to use or not, plus the file is HUGE, so it is hard to look through it all. I also need to know where the style's CSS listings are, so I can make my portal look like our forum also. I would REALLY appreciate it if someone could write a small tutorial (or long if you have time :) ) to explain what file to use, what variables would be useful, and where the CSS is located.

Thanks in advance to anyone who is willing to do such a huge favor for me!

Dismounted
09-25-2007, 05:23 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>

Bill-Kill
09-25-2007, 05:35 PM
Thanks, but he does not show how to get current posts put inside the table. Does anybody know what you would add into that code to do that?

Dismounted
09-26-2007, 06:44 AM
You'll need to use a few MySQL queries. You should really mess with this stuff unless you've got all the basic stuff down.

Bill-Kill
09-27-2007, 10:47 AM
What do you mean by the basic stuff? vBulletin's code, or other coding languages?

EnIgMa1234
09-27-2007, 11:10 AM
vBulletins Code.

For example you would use this to read the database.

$query = $vbulletin->db->query_read("QUERY HERE")

Then to fetch the array you'd use
while ($var = $vbulletin->db->fetch_array($query))
{
}

Dismounted
09-27-2007, 11:38 AM
What do you mean by the basic stuff? vBulletin's code, or other coding languages?
vBulletin's systems/code and PHP (which is what vBulletin is coded in).

Bill-Kill
09-28-2007, 01:13 AM
I know my PHP pretty well, so I guess I have to get acquainted with vBulletin's code more before going on this venture.

Kirk Y
09-28-2007, 02:00 AM
It's basically the same - just a matter of using classes to do all the work for you. You may do good to have a look at some of the Portals released here, there are several "lite" ones that are nice and simple, without all the bloat of others.