Go Back   vb.org Archive > News and Announcements > vBulletin Pre-Sales Questions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2002, 09:43 PM
moth moth is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 11-09-2002, 09:47 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 11-10-2002, 05:33 AM
moth moth is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-10-2002, 05:38 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-10-2002, 05:40 AM
moth moth is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-10-2002, 05:44 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-10-2002, 05:48 AM
moth moth is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I see what you mean. So in the link to the teams page, I pass in the address action=whateverinametheaction kinda thing?
Reply With Quote
  #8  
Old 11-10-2002, 05:53 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-10-2002, 06:04 AM
moth moth is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:44 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.04246 seconds
  • Memory Usage 2,228KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete