PvP Stats code to display on separate page

Miscellaneous code snippets and examples that members have posted

PvP Stats code to display on separate page

Postby Corbism » Thu May 31, 2007 2:52 am

On the Roster main view there is a table at the top that contains PvP Stats.

I was curious if there is a way to get the code that generates that data, so I can basically copy it onto a separate webpage to be viewable instead of going to the roster? This way, guildees can see the PvP Stats when they logon to the main website without going into the roster each time to see that data.

As I can go directly to pvplist.php in a browser and see the PvP data, I believe I have found the correct source file that gets called.

But I am not sure about how to include that file on a separate page. We use phpbb forums and a im portal mod as a front-end portal which allows you to place "blocks" of html code wherever.

If I try to include the "pvplist.php" file, it doesn't generate the data, so not sure what I may be doing wrong. This may be a question better suited elsewhere, but I thought I would start here.

Thanks for any assistance.
Last edited by Corbism on Thu May 31, 2007 4:38 am, edited 8 times in total.
User avatar
Corbism
WR.net Apprentice
WR.net Apprentice
 
Posts: 51
Joined: Fri Sep 29, 2006 10:48 pm
Location: Seattle, WA

PvP Stats code to display on separate page

Postby PleegWat » Thu May 31, 2007 5:01 am

pvplist.php is indeed the file you need. However if you're gonna call it outside the main roster, you'll need to include roster's settings.php first.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to Code Cache

Who is online

Users browsing this forum: No registered users and 0 guests

cron