The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I....
I own a bunch of cs 1.6 servers, and tehre is a custom field in the profile for the STEAM ID, and I was planning on taking people stats from a database, and post their stats next to the name when they post. It takes the info from the database (steam ID, ranks ect.
Code:
INSERT INTO `maps` (`id`, `name`, `steamid`, `mapname`, `timebeat`, `datebeat`, `runtime`) VALUES (1, 'CocaCola', 'STEAM_0:1:11980718', 'surf_ninja', '18-22-03', '2008-04-19', 73.2794), thanks |
#2
|
||||
|
||||
To retrieve stats from another site you would have to have a way to fetch the stats from their site. Do they have an API that can be used or personalized RSS feeds with these?
|
#3
|
|||
|
|||
oh no, its all the same site! Its even on the same database
i tried this but it didnt work Code:
<if condition="$userfield['field5']"><div>Surf Points: $players[totalpoints]</div></if></td> Ok i think i got most of what I need, but theres one thing im confused with. Im trying to get information from a seperate table, but i dont know how to get to that table, because whever I do a $post['blah'] now, it only searchs the table vb_userfields --------------- Added [DATE]1209335799[/DATE] at [TIME]1209335799[/TIME] --------------- field 11 i from a different table, and field 12 is from the same as 11 Code:
<if condition="$post['field12'] == $post['field5']"> <if condition="$post['field11']"> <tr> <td bgcolor="#181818" width="20%" nowrap> <if condition="$post['field11'] == 0"> <else /> <if condition="$post['field11'] < 100"><div class="smallfont">Surf Rank:</div> <else /> <if condition="$post['field11'] < 250"><div class="smallfont">Surf Rank:</div> <else /> <if condition="$post['field11'] < 500"><div class="smallfont">Surf Rank:</div> <else /> <if condition="$post['field11'] < 1000"><div class="smallfont">Surf Rank:</div> <else /> <if condition="$post['field11'] > 1000"><div class="smallfont">Surf Rank:</div> <else /> </if> </if> </if> </if> </if> </if></td> <td bgcolor="#181818"> <if condition="$post['field11'] == 0"> <else /> <if condition="$post['field11'] < 100"><div class="smallfont"><b>Newb</b></div> <else /> <if condition="$post['field11'] < 250"><div class="smallfont"><b>Intermediate</b></div> <else /> <if condition="$post['field11'] < 500"><div class="smallfont"><b>Pro</b></div> <else /> <if condition="$post['field11'] < 1000"><div class="smallfont"><b>Guru</b></div> <else /> <if condition="$post['field11'] > 1000"><div class="smallfont"><b>God</b></div> <else /> </if> </if> </if> </if> </if> </if></td> </tr> </if> </if> </table> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|