Raised This Month: $51 Target: $400
 12% 

Admin Display from SB


Post New Thread Reply   
 
Thread Tools Display Modes
8088
Veteran Member
Join Date: Jan 2008
Old 11-04-2010 , 22:26   Re: Admin Display from SB
Reply With Quote #41

If you mean that they don't support it because the results aren't what they're supposed to be: sure. But the script doesn't rely on any exotic extensions, so 'no support from webhost' is a bit of a strange explanation.
Quote:
Originally Posted by Rizla View Post
8088 can you explain?
To be honest, I'm kind of puzzled, too. My mathematical background is really poor (if any at all), and I'm fairly new to this. I'll try to find (and post) the answer later.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 11-04-2010 at 22:29.
8088 is offline
gjaken05
SourceMod Donor
Join Date: Sep 2009
Old 11-05-2010 , 08:37   Re: Admin Display from SB
Reply With Quote #42

8088's method worked for me.

I also added the Steam Community link to the image so it takes up less space.

Using 8088's method for the math fix:
Code:
    //fetch every possible row from the resource and do nice stuff with it
   while($info = mysql_fetch_assoc($query))
    {
        //create a link to the Steam community profile
		$site = 'http://steamcommunity.com/profiles/'.$info['friendid']; 
        
        //print the table row with all the info
         print '<tr><td><a href='.$site.'><img src="http://www.steamprofile.com/profile/simple/steam/'.$info['authid'].'.png" ></a></td><td align="center"><a href="steam://friends/add/'.$info['friendid'].'">Add as Friend</a></td><td>'.$info['srv_group'].'</td></tr><tr><td colspan="4"><hr></td></tr>'; 
    }
What I'm using this display for:
http://ahp.site.nfoservers.com/recruits.php
gjaken05 is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 11-05-2010 , 09:41   Re: Admin Display from SB
Reply With Quote #43

thing is, if someone is in game and, for example, types !admins and clicks add friend then you cant add them in game (steam browser protocol isnt in webkit) hence why i made it easy to view their page from where you can add them and view profile etc. up to you though, just telling my reasons :>
Rizla is offline
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 11-29-2010 , 14:51   Re: Admin Display from SB
Reply With Quote #44

http://www.tmfgaming.com/main/admins/admins.php
Thats what mine looks like, how do we fix that?
__________________
Beware, Im a dummy
PabloP is offline
8088
Veteran Member
Join Date: Jan 2008
Old 11-29-2010 , 16:43   Re: Admin Display from SB
Reply With Quote #45

If you mean the images at steamprofile.com, replacing
Code:
http://www.steamprofile.com/profile/simple/steam/'.$info['authid'].'.png
with
Code:
http://www.steamprofile.com/profile/simple/steam/'.$community_id.'.png
probably does what you're expecting.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 11-29-2010 , 17:43   Re: Admin Display from SB
Reply With Quote #46

Yeah the images where it says, embedding is now working.
I replaced that line, and dropped the cached version, didn't seem to effect anything though.

thanks

btw- this is what it says at seamprofile.com:
External image embedding has been restored! You will need to regenerate your badge and re-copy the embed code!
I am not sure how to do that with this though, i tried.. this stuff is beyond me
__________________
Beware, Im a dummy

Last edited by PabloP; 11-29-2010 at 17:56. Reason: more info
PabloP is offline
gjaken05
SourceMod Donor
Join Date: Sep 2009
Old 11-30-2010 , 19:34   Re: Admin Display from SB
Reply With Quote #47

steamprofile.com changed to badges. The correct img is:

Code:
http://badges.steamprofile.com/profile/simple/steam/'.$community_id.'.png
or

Code:
http://badges.steamprofile.com/profile/simple/steam/'.$info['friendid'].'.png
It depends on which sql math code you are using.
gjaken05 is offline
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 11-30-2010 , 22:50   Re: Admin Display from SB
Reply With Quote #48

Quote:
Originally Posted by gjaken05 View Post
steamprofile.com changed to badges. The correct img is:

Code:
http://badges.steamprofile.com/profile/simple/steam/'.$community_id.'.png
or

Code:
http://badges.steamprofile.com/profile/simple/steam/'.$info['friendid'].'.png
It depends on which sql math code you are using.
Great thanks
__________________
Beware, Im a dummy
PabloP is offline
Warnink
SourceMod Donor
Join Date: Aug 2006
Location: United Kingdom
Old 12-03-2010 , 13:40   Re: Admin Display from SB
Reply With Quote #49

I just set this up using the BCMATH example from this post.
Its working for one admin and printing an error..

Code:
Fatal error:  Cannot redeclare steam2friend() (previously declared in /home/xxx/public_html/admindisplay/admins.php:43)
I'm no coder, so does anyone know how to fix this? I'm sure its something simple.

Thanks for the awesome script though.
Warnink is offline
8088
Veteran Member
Join Date: Jan 2008
Old 12-03-2010 , 21:19   Re: Admin Display from SB
Reply With Quote #50

You're declaring the function steam2friend() more than once. If you post all of your code, we can take a look.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode