The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post, threads + members in URL
Hi,
I have a few vB boards. I would like to make myself some sort of summary page to tabulate my members, posts & threads in one place. My idea would be to create a special URL for each board using URL variables. I could then create my summary page which would list and data from all forums. Ex : Myboard1.com/Mystats.php?Members=123&Posts=456&etc... Myboard2.com/Mystats.php?Members=789&Posts=111&etc... How would I create this in PHP and what would the variable names be ? What would I have to include in by php page to have access to these variables ? Thanks for the help, I hope I was clear enough... Pharkas |
#2
|
||||
|
||||
Sorry...
do you want to specify in the URL all data you want to be show in the statistics page? Then how would the page be useful, if you need to know the values before open it? Does not make sense for me... If a function be wrote to read the data from you database, there's no need to inform anything in the URL. You open the page, and the data is show (the SQL queries run in "background"). If you want a single page to centralize the data from 2+ boards, then I see more sense: You want a custom page that will inform the data based on what you inform in the URL. However, still not the best way, unless it's for personal and not public visible. The better is still read it direct from the database. Let me know your real intentions, please. Regards |
#3
|
|||
|
|||
Thanks RenatoMN,
Let me clarify. I run 4 boards. I would lile each board to have a custom URL containing the data I listed. EX : Myboard1.com/Mystats.php?Members=123&Posts=456&etc... Myboard2.com/Mystats.php?Members=789&Posts=111&etc... Myboard3.com/Mystats.php?Members=444&Posts=555&etc... .... On a separate page, I would then summarize the data for all of my boards EX : Members Posts etc.. My board 1 123 456 My board 2 789 111 My board 3 444 555 ... The data in my summary page would be populated from the data extracted from the URLs. I come from an "ASP" background but don't know how to do this in PHP. I hope this makes more sense now. |
#4
|
||||
|
||||
Pharkas,
the strange part for me is: how to make a system "crawl" the data from "myboard1.com/mystats.php?variable=value"? the system can not guess the variable values, do you understand it? 1- you need a mystats.php in each forum with the data being show without need to specify the values in the URL (calling only myboard.php/mystats.php need to show all data you want). 2- then your "central summary" should read the page content of each mystats.php, using PHP cURL or xmlHttp request (ajax). for 1: you may create a new .php (require admincp/global.php and includes/adminfunctions.php for using vB default mysql classes or just config.php + your own SQL query functions). for 2: you may learn basic cURL use within 2-3 hours documentation reading & coding trials. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|