vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Pre-Sales Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=26)
-   -   Pre-Buying Question. (https://vborg.vbsupport.ru/showthread.php?t=45559)

moth 11-09-2002 09:43 PM

Pre-Buying Question.
 
Hey everyone, I am interested in buying a copy of VB for my upcomming website. I am designing a Gaming League website, and will most likely use a VB Portal. I was playing around with a friend of mines copy of VB, and was wondering if anyone could give me some pointers. What I would like to do is use VBs pre-written code to generate tables. So when users access a team listing page, the list appears in a table exactly like the ones in the forum. How would I access these functions? Thanks for your help, I am not a VB Hacker so I am very unfimiliar with its structure, and where everything is. Thanks again!

NTLDR 11-09-2002 09:47 PM

There are no fuctions as such for generating tables for the forum side of vB.

If you wanted to use the same layout then you can look at the code in the templates for the part you want the layout of.

moth 11-10-2002 05:33 AM

That is basically what I had been doing. But I couldnt find any HTML in any of the scripts, so I couldnt identify which file contains the table style.

Erwin 11-10-2002 05:38 AM

The HTML is not in the scripts, but is saved in the database as templates in a template table. To edit them, you need to go through the Admin Control Panel.

moth 11-10-2002 05:40 AM

Its not so much that I want to edit them.
What I want to do, Is when someone goes to the team page to view the list of registered teams, When my script grabs the list of teams from my database, and lists them, I want it to generate a table identical to that of my Forum, when you list the members. So there must be a way to do that without having to right the code out again, when it is already in a VB script somewhere. If that makes any sense.

Erwin 11-10-2002 05:44 AM

It's a hack. Edit showgroups.php to add a separate "action", modify the query so that instead of searching for staff usergroupids, you use that to call specific usergroupid's according to teams to display the list of members. You can use a different template if you wish.

moth 11-10-2002 05:48 AM

Oh I see what you mean. So in the link to the teams page, I pass in the address action=whateverinametheaction kinda thing?

Erwin 11-10-2002 05:53 AM

Correct, then in the showgroups.php, add the appropriate query in that new section. It's easy to do. I do the same by modifying memberlist.php as well to show a list of people who donate for example.

moth 11-10-2002 06:04 AM

Awsome! Thanks Erwin and NTLDR, I think this will help me alot! And that VB will be a for sure necessity for my new site. Thanks again guys!


All times are GMT. The time now is 01:46 PM.

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.01848 seconds
  • Memory Usage 1,718KB
  • 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)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