![]() |
[WIDGET] Steam Group Stats
1 Attachment(s)
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/ |
Very nice widget.
Currently it only displays today's date for me however. I added it via php direct execution and set it on the layout manager. Side note: Is there a release for that server status widget as well? |
i suppose i can.. but i need to clean the code up alot, its a bit messy and confusing lol.
|
I had done an edit to my first post with the error I receive at the top of the page, however you had already replied.
I am interested in your status widget mainly only for CS:S, but I am sure it would be ideal for others to include what else you display there, as its very stylish at the moment. |
if you are getting today's date that means the script portion is blank. you may have made the mistake and copy/pasted the coding into the widget description rather than the widget code area.
avigate to AdminCP -> CMS -> Widgets and click on Configure next to the steam group widget, make sure the coding is over there. well the backend coding is based off gameQ for my server status script, jquery for the popups. i just need some time to clean it up.. because right now there isnt really an easy way to add in servers, without editing the php file in 3 different location for each server you want to add. not a big deal for people with a bit of experience in php i suppose. but for those who are new it can be a bit troublesome if you have alot of servers to add. ontop of that the style i put in is custom, I was stupid at the time and should have built the style off the forum style lol. |
Done as you said, whoops at a silly mistake there.
Now I have this at the top of my install. Again, sorry but php is not my high point. Python/Java are much easier for me, heh. Quote:
Seems to work now without the style info at the top, and the html. There is a decent amount of specific style tags missing as well. Such as span assignments for clanname, etc. I am getting it to work but I am having a hard time getting it to go into the widget block, instead it shows on the very top right corner of the page. |
joshtrav, how did you get it to work? I'm getting the same error.
|
Quote:
1. make a php file and name it w_steamgroup.php put it into your includes folder PHP Code:
PHP Code:
|
Yes, this worked for me.
The one thing to note is the need to replace the joinwcs groupname and the a href link to your appropriate group. Other than that, it works well. I am using vB for the first time, so you can see the example of it at vb.joinwcs.com, bottom left corner. Bear with me as its a fresh install so its very bland, but for the purposes here in it works fine. |
Hey great mod....but I already have a pretty good steam looking stats module on my site at www.brotherhoodofgamers.com its on the top right.
I was just wondering, could you write some instructions on how to ONLY add " x members joined past 24hrs" like you have in the image? Thanks. |
Quote:
|
Is there a way to get this to work with the forum side bar?
|
Quote:
|
We have developers in our community, they created it for us.
|
Hey can anyone get the type of block this clan has?
http://www.ilevelup.net/Forums/content.php |
Quote:
|
Quote:
|
Quote:
Code:
<h3 class='article_preview'><a href='steam://url/GroupSteamIDPage/103582791429921702'>$aMatches[1]</a></h3> |
is it possible to make this compatible with 3.8?
thanks |
Quote:
You actually have to change the value on the php file you uploaded and then re-edit the widget code without modifying it and hit save just to make a refresh. At least that worked for me. Marked as installed! Thanks. |
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. |
how did you do this?
"653 new members in last 24 hours" or is this included in the code? |
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? |
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 |
I have tried both versions but they are not showing up in my CMS page.
|
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. |
Quote:
|
GaryT worked for 4.1.2
The original didnt, so thanks GaryT :D |
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:
|
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? |
im using advanced cmps
how can i accomplish to install properly this module mates? |
Quote:
Thanks for the efforts and want to run this one on our site for sure. |
When I go to create a widget there's only a php direct extension choice.
Mine only shows the date and a small php icon at the top left. |
1 Attachment(s)
Quote:
I am having a little bit of a different issue with a forum block. Here is the image of that situation: https://vborg.vbsupport.ru/attachmen...1&d=1315446658 |
Will this work with vBadvanced?
|
Cannot get this to work on my site no matter what I do. The default way displays:
Code:
Parse error: syntax error, unexpected '<' in /homepages/46/d281957229/htdocs/aces/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 1 Am I shit out of luck? How do other people have this working and I can't... really bugging my head. |
Quote:
add PHP Code:
PHP Code:
|
Wooo i finally got it working...
I used the 2nd code and it does not work if your steam group name has - in it. I changed my group name from Kool-Killers to TheKoolKillers and then put it in a php file in root then made a new block on vBadvanced and set it in the block as an iframe... Anyone ever work out the last 24 hours thing ? |
I am starting to hate the vbulletin cms, i am thinking of switching back to vbadvanced. Clicking configure next to widget ain;t doing anything at all.
|
Ah maaaaaaaaaaan ...
Steam just updated some stuff and its busted ... Any way to get this working again ? |
All times are GMT. The time now is 02:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|