The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[WIDGET] Steam Group Stats Details »» | |||||||||||||||||||||||||||
For those who have a steam group, you can easily display your steamgroup stats on your frontpage. I included 2 versions a cached version (which I recommend to use but takes a tiny bit more effort to run) and a non-cached version which runs out of the box (might slow down your site a bit more).
Instructions Cached Version: 1.Navigate to AdminCP -> CMS -> Widgets. 2. Create a PHP Type Widget and paste the code from below: cached version: PHP Code:
4. In your ftp, in the same base folder vbulletin is hosted, create a folder named 'cache' and CHMOD to 777. 5. Your set Demo: http://www.freefrag.com/ Instructions Non-Cached Version: 1.Navigate to AdminCP -> CMS -> Widgets. 2. Create a PHP Type Widget and paste the code from below: non-cache PHP Code:
4. Your set Demo: http://www.freefrag.com/ Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
Tried it.. but stays empty on my site.. both the cached and non-cached version
Add PHP widget used configure to copy and past the code and changed the $groups to $group = NeXt-Century; according to our page at steam : http://steamcommunity.com/groups/NeXt-Century Looks very straight forward but seems to forget something or doing something wrong. BTW do i have to delete the default code that is present if you create the PHP widget and configure it ? Cause default there is already some code present.. *Update* Used inflikted version with the PHP file and that works.. only still ugly as hell... still thanks to him Thanks. |
#23
|
|||
|
|||
how did you do this?
"653 new members in last 24 hours" or is this included in the code? |
#24
|
|||
|
|||
Funny.... the cached version timed out my site, i checked my cpu usage, and it went from 2/25 to like 14/25, timing out my site. I had to disable it.
whats the issue? |
#25
|
|||
|
|||
Quote:
I had some troubles finding any info about retrieving the steamgroupID for my group. What i did was to read the source behind the page on my group page. Connected to Steam (with steamclient) and right click on my groupspage.. > "view source" If you see the code you can easily identify the ID for your group. For example the lines : <div class="actionItemIcon"><a href="steam://friends/joinchat/103582791430303639"> or <span class="hiliteTextBlue"><a class="steamLink" href="steam://friends/joinchat/103582791430303639" if you a bit into PHP code you can find this in a flash ( or already did) I'm not into this website shizzle and managed Dutch |
#26
|
|||
|
|||
I have tried both versions but they are not showing up in my CMS page.
|
#27
|
|||
|
|||
Ok i know this old post but i got it to work doing it the same way as GaryT (post 18) except it looks strange in IE8 you have to turn compatibility mode on ? but works in firefox,google chrome,Safari anyone know how to fix this ????
Also for some reason it would not work with our steamgroup name csa-squad but once we renamed it to csasquad without the - it works fine so that might be the problem for other people. Also i would like to know how you got the new members in last 24 hours part. |
#28
|
|||
|
|||
Quote:
|
#29
|
||||
|
||||
GaryT worked for 4.1.2
The original didnt, so thanks GaryT |
#30
|
|||
|
|||
Thanks! Marked as installed, though, i haven't actually installed this code since i'm not running the Suite.
I've stripped and modded the code a little and use it in the forums sidebar and felt to just share it here. PHP Code:
|
#31
|
|||
|
|||
I'm getting the following error in 4.1.3:
Parse error: syntax error, unexpected '<' in /homepages/17/d366822374/htdocs/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 1 Is there any chance of an update? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|