Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 15

180.76.x.x forum
180.76.x.x forum
207.46.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x user
46.229.x.x forum
46.229.x.x news
46.229.x.x forum
46.229.x.x forum
54.198.x.x forum
68.180.x.x forum

Last Seen

Dodgeitorelse Wed 21:08
Wussie Wed 15:58
iiiamirrr Mon 05:48
beshureinme Fri 14:51
goldfishes Fri 23:52

Newest Members

Forums
Richard Perry - GreyCube.com :: Forums :: Live Game Server List
Go to page   <<        >>     
Cool: Dynamic Server Image for LGSL
Shanekiller
Fri Sep 25 2009, 01:15PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
yes i know where it is but i don't under stand the color code? it says 0? i belive that black so i changed it too ffffff and it didn't change anything
Website
Rich
Fri Sep 25 2009, 01:32PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

$text_color0 = ImageColorAllocate($im,RED,GREEN,BLUE);

Where RED GREEN BLUE are numbers from 0 to 255

White ( hex of FF FF FF ) would be 255,255,255

All the functions, and how to use them are on PHP.NET
Website
svenx
Fri Sep 25 2009, 01:47PM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
Took me about 3 hours(sorry im noob):

http://foorum.jope.ee/servers/?s=1

This applies for all of our servers.

http://foorum.jope.ee//servers/

Going to design the backgrounds soon...

Website
Shanekiller
Fri Sep 25 2009, 03:51PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
thanks it worked i didn't notice kinda a noob still learning though
Website
Shanekiller
Fri Sep 25 2009, 05:18PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
ok how about this would it be possible to take something have a bbcode link auto added to each server
Exampler: they go to a server with the id as 2..
On the server page under the details it would have a cutom code able to copy but it auto added the server id and maybe added a preveiw?
Website
Shanekiller
Fri Sep 25 2009, 06:17PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
i know i'm proble getting on your nerves i'm sorry but also http://www.gaming2gamers.com errors how do i fix that it always does that
Website
svenx
Sat Sep 26 2009, 01:03AM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
Here's how I did it:

[ admin: advise against editing the class ]
Website
Shanekiller
Sat Sep 26 2009, 02:21AM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
cool.. where do i exctly put these D: i'm sorry i'm a real noob
Website
svenx
Sat Sep 26 2009, 02:49AM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
Im running older version LGSL, but for version 5.3 its

lgsl_details.php about line 86:


          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['map']} </b></td><td style='white-space:nowrap'> {$server['s']['map']}                                    </td></tr>
          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['plr']} </b></td><td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td></tr>
        </table>
      </td>

<!-- Here's  mine -->

<td>
        <table cellpadding='4' cellspacing='2' style='margin:auto'>
          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b>Server Image Banner </b></td><td style='white-space:nowrap'><img src='{$lgsl_url_path}banner/?s={$server['o']['id']}' alt='Server Image Banner' ></img></td></tr>
          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b> Forum Code </b></td><td style='white-space:nowrap'><input id='txtfld' type='text' onClick='SelectAll('txtfld');' value='[url={$lgsl_url_path}lgsl_image.php?s={$server['o']['id']}][img]{$lgsl_url_path}lgsl_image.php?s={$server['o']['id']}[/img][/url]' style='width:400px;' ></input></td></tr>
        </table>
</td>


I hope this helps

Note: In mine I put lgsl_image.php to separete folder "banner" and renamed it to index.php

[ changed by admin to avoid people editing the class ]
Website
Shanekiller
Sat Sep 26 2009, 03:08AM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
i figured out almost everything other than http://gaming2gamers.com/index.php?option=com_lgsl&s=3 how do i alighn them?
Website
svenx
Sat Sep 26 2009, 03:31AM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
If you know what you are doing then no.

I did set up test site, where it is enabled:

http://jope.ee/testndev/foorum/servers/?s=1

Post the code you've created, and we'll see what's wrong.
Website
svenx
Sat Sep 26 2009, 04:14AM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
Actually I would need some assistance too. How do I use backgrounds based on gametype? Im not exactly following the comment
WHAT BACKGROUND IMAGE WE USE. THE LAYOUT IS "image/<TYPE>/<GAME>.png"
. Do I need to create sub folder, if so what folder names should I use, and what about images?
Website
Rich
Sat Sep 26 2009, 10:40AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

The description does not look like it matches the code, if the type was source and the game tf2, it would look for:
"lgsl_files/image/source/tf_normal.png";

[ Edit: corrected game from tf2 to just tf ]
Website
Rich
Sat Sep 26 2009, 10:43AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

I try to advise against editing the class as it makes upgrading awkward, put the function in the lgsl_details.php instead, or forget the function and use:

"{$lgsl_url_path}lgsl_image.php?s={$server['o']['id']}"
Website
Shanekiller
Sat Sep 26 2009, 12:19PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
<td> 
          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b>Server Image Banner </b></td><td style='white-space:nowrap'><img src='".lgsl_dynimg_link($server['o']['id'])."' alt='Server Image Banner' ></img></td></tr> 
          <tr style='".lgsl_bg().";white-space:nowrap'><td> <b> Forum Code </b></td><td style='white-space:nowrap'><input type='text'  value='[img]".lgsl_dynimg_link($server['o']['id'])."[/img]' style='width:400px;' ></input></td></tr>
</td>

thats the code but i wanted to make it under the map image under stuff not to the right how would i do that?
Website
MadMakz
Sat Sep 26 2009, 01:36PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
svenx wrote ...

Actually I would need some assistance too. How do I use backgrounds based on gametype? Im not exactly following the comment
WHAT BACKGROUND IMAGE WE USE. THE LAYOUT IS "image/<TYPE>/<GAME>.png"
. Do I need to create sub folder, if so what folder names should I use, and what about images?

sorry, i forgot to upgrade/fix that line, it must be described as follows
wrote ...
WHAT BACKGROUND IMAGE WE USE. THE LAYOUT IS "lgsl_files/image/<TYPE>/<GAME>_<IMGTYPE>.png"

Rich already showed an example above.

Also, i´ll consider to add a function array in upcomming versions, so that you can easily include the image anywhere inside LGSL
i.e:
...
//include
include('lgsl_image.php');
....
//print image URL here
$lgsl_image['SID']['IMGTYPE'];
...

but i´ll make no promise here

PS: For hlstatsxce users,i made a (yet) "skyscraper" only version for HLstatsX:CE wich can be found here and here.

SpiffyTek
Website
Shanekiller
Sat Sep 26 2009, 02:13PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
what do you mean mad?
Website
MadMakz
Sat Sep 26 2009, 03:23PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
mean by what? the function array? well it would directly make the URL img url available

so
<img src="http://<URL_TO_LGSL>/lgsl_files/lgsl_image.php?s=<SID>&type=<IMGTYPE>" />
could be replaced by
<img src="{$lgsl_image['$sid']['<IMGTYPE>']}" />

for example

SpiffyTek
Website
svenx
Sun Sep 27 2009, 04:55PM
Posts: 50
Joined: Wed Jul 15 2009, 06:38PM
Registered Member #5247
I'v created the folder under image called source and placed a tf2_normal.png image under that, but it doesn't seem to work.

http://jope.ee/lgsl/lgsl_files/lgsl_image.php?s=2&type=normal

http://jope.ee/lgsl/lgsl_files/image/source/

What am I doing wrong here?
Website
MadMakz
Sun Sep 27 2009, 06:23PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
i don´t think that the gamecode for TF2 is tf2, it´s just tf if i have it right in mind.
so the file must be named tf_normal.png

EDIT: yup it´s just tf, as seen here http://jope.ee/lgsl/?s=2 (Game: tf)

SpiffyTek
Website
Go to page   <<        >>   

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org