The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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!
|
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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.
|
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
Oh I see what you mean. So in the link to the teams page, I pass in the address action=whateverinametheaction kinda thing?
|
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
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!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|