vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Custom Portal (https://vborg.vbsupport.ru/showthread.php?t=158686)

Bill-Kill 09-24-2007 11:15 PM

Custom Portal
 
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

Quote:

Originally Posted by Bill-Kill (Post 1348127)
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.


All times are GMT. The time now is 04:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03119 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete