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

Guests: 12

107.22.x.x forum
112.111.x.x forum
175.42.x.x forum
175.44.x.x forum
178.255.x.x software_l..
198.2.x.x forum
213.238.x.x news
220.181.x.x news
27.40.x.x forum
36.248.x.x forum
66.249.x.x dilbertplus
66.249.x.x forum

Last Seen

Dodgeitorelse Wed 21:52
xMin Wed 17:26
Oscar Wed 13:20
dupa123 Wed 12:54
Zipps Wed 10:16

Newest Members

Forums
Richard Perry - GreyCube.com :: Forums :: Live Game Server List
Go to page   <<        >>     
Cool: Dynamic Server Image for LGSL
MadMakz
Thu Dec 02 2010, 05:48PM

Posts: 154
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
Thanks for pointing that out dutchbastard!
i tottaly forgot about that :S
i have a backup of the surcepowered data, but that one is really on my "out-of-order" PC.
But the good news is that i scratched together some money and ordered a new PSU just a coupple of hours ago, should arrive on monday.BTW, the replacement of sourcepowered is CGX24, i've already created a section for the imagescript there some time ago and can be accessed at http://forums.cgx24.com/viewforum.php?f=24&nlang=en

Once i can get my hands on the backups i'll sum up all the example snippets in a new thread over there and update all URLs here.

SpiffyTek
Website
Bigfoot
Thu Dec 02 2010, 06:19PM
Posts: 15
Joined: Wed Aug 19 2009, 03:40PM
Registered Member #5359
Ummm i think this must be on integrated on the next version of Lgsl
Website
dutchbastard
Thu Dec 02 2010, 07:09PM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
that's great news!
thanks
Website
MadMakz
Sun Dec 05 2010, 04:54PM

Posts: 154
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
A bit later but here's a beta attempt for the DSi details page mod (Standalone + Drupal6 tested only!) based on LGSL 5.8!.
Please test tell me if it isn't working for you (post your install type and CMS version if any)
Prefably to my tracker but posting here is also fine.

Beta download: http://madmakz.com/get/pub/tmp/lgsl/lgsl-dsi-addon-details_page_58-beta.zip
Demo: http://cgx24.com/LGSL/10 (Drupal)

IMPORTANT: i just figured that lgsl_image.php (DSi) MUST HAVE valid SQL credentials (settings) in lgsl_config.php, no matter what type of LGSL installation!
I'll fix this later once i get my hands on the DSi script itself again.

But hey, at least DSi still works fine with LGSL 5.8^^

Laterz

Makz

SpiffyTek
Website
Vinceultras
Tue Dec 21 2010, 11:14AM
Posts: 15
Joined: Mon Dec 20 2010, 08:11PM
Registered Member #6471
I indeed have to install(settle) the lgsl 5.8 and the DSi 1.3, I just have a small concern(marigold) banners does not display

Has you he a modification there to be made

Thank you

website : http://custom-map-mod-cod.fr/lgsl/index.php
Website
KIKOFF
Mon Jan 03 2011, 01:04PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Hi MadMakz, i set database override in lgsl_config. Still not showing map image and game icon.
I hope the problem of the cms resolved soon.

Installation type: e107 0.7.24 in localhost
LGSL version 5.8
DSi version 1.3

Would also be interesting to truncate the server name and set "..." for final.

Saludos, KIKOFF.

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
sanken
Tue Jan 04 2011, 07:33AM
Posts: 10
Joined: Thu Dec 09 2010, 04:39PM
Registered Member #6450
Please help me!
http://www.greycube.com/site/e107_plugins/forum/forum_viewtopic.php?12951.0
KIKOFF
Tue Jan 04 2011, 06:01PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
If you like to have shadows on the text, is obtained so:
Duplicate the string of server name, for example.

imagettftext($im,$size3,0,23,13,$text_color1,$text_font0,$string0);
imagettftext($im,$size3,0,22,12,$text_color0,$text_font0,$string0);

Use black color (0,0,0) "$text_color1" in first string and set 1px for X and Y more than the base string.
And white color (255,255,255) "$text_color0" in the second string.

This is all

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
KIKOFF
Tue Jan 04 2011, 08:09PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Hello. I have decided to install the SA version of LGSL. To see if that way I could get the image of the map and the game icon in the banner.
My surprise that does not show the 2 pictures ... Maybe there's some problem with the path of the images and PHP version.
Any ideas?

Thanks in advance, KIKOFF

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
KIKOFF
Thu Jan 06 2011, 01:52PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Ok i solved my problem with map and icon images... As suspected, was the PHP 5.3.1. I update to PHP 5.3.4 and is done.

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
KIKOFF
Thu Jan 06 2011, 04:14PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
To truncate server name, need this function:

// TEXT TRUNCATE
function truncate_string( $string, $max_chars, $end_chars) {
    $text_len = strlen($string);
    $temp_text = '';
    if ( $text_len > $max_chars) {
        for ($i=0; $i < $max_chars; $i++ ) {
            $temp_text .= $string[$i];
        }
        $temp_text .= $end_chars;
        return $temp_text;
    } else {
        return $string;
    }
}


And exemple:

imagestring($im,$size4,75,25,truncate_string($string0, 50, '...'),$text_color0);


Saludos, KIKOFF

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
KIKOFF
Fri Jan 07 2011, 08:41PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Well, after a few tweaks here is my basic DSi. I must thank MadMakz for him code... Thanks . And of course Richard Perry also... Thanks



Saludos, KIKOFF

PD: If you need any help, I will help as far as possible

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
MadMakz
Mon Jan 10 2011, 05:46PM

Posts: 154
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
Looks very nice KIKOFF

SpiffyTek
Website
diablo21
Mon Jan 24 2011, 05:52PM
Posts: 9
Joined: Mon Jan 24 2011, 12:54PM
Registered Member #6537
new link please can someone give me full modded files only to replace them?
KIKOFF
Tue Jan 25 2011, 08:33AM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Thanks again MadMakz

@diablo21 ,here you have it:

http://gofiotf.260mb.com/download.php?fileID=9

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
diablo21
Wed Jan 26 2011, 06:49AM
Posts: 9
Joined: Mon Jan 24 2011, 12:54PM
Registered Member #6537
can you give me lgsl_details.php file
MadMakz
Sat Jan 29 2011, 07:54PM

Posts: 154
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
little update:

i've pushed the script source "as is" to bitbucket. the 1.4-dev shot might be usefull for some of you.
http://hg.cgx24.com/lgsl-dsi

however, i don't think that i'll ever publish 1.4 as stable but the dev process will be "public" from now on
and tomorrow i'll start writing v2.0 from scratch. with some effort i might come up with a first release within february

once my sites/tracker are back up online you're also welcome to submit patches or come up with requests.

Stay tuned!

Makz



SpiffyTek
Website
steff
Mon Jan 31 2011, 02:30AM
Posts: 3
Joined: Fri Jan 28 2011, 09:28AM
Registered Member #6549
I don't understand how install it. Please help!
Website
diablo21
Mon Jan 31 2011, 03:32PM
Posts: 9
Joined: Mon Jan 24 2011, 12:54PM
Registered Member #6537
help i dont have banner on the server i download the lgsl_image file but i need lgsl_details.php too to make to show banners images into the servers
KIKOFF
Mon Jan 31 2011, 06:51PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
diablo21 wrote ...

help i dont have banner on the server i download the lgsl_image file but i need lgsl_details.php too to make to show banners images into the servers

// SHOW DSi

  $lgsl_base_url_path = $lgsl_url_path;
  $lgsl_base_url_path = preg_replace("/(lgsl_files\/)/", "", $lgsl_base_url_path);
  $server_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
  
  $output .= "
      <tr>
        <td class='menu_text' style='padding:15px; text-align:center;'><img alt='' src='lgsl_files/lgsl_image.php?s=".$_GET['s']."'/>
        <span style='color:#696969; line-height:21px; width:150px; text-align:left; float:left;'>Código Banner 359x76</span>
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\"][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='<a href=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\" target=\"_blank\" ><img src=\"http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."\" /></a>' />
        </td>
      </tr>";
      
    $output .= "
      <tr>
        <td class='menu_text' style='padding:15px; text-align:center;'><img alt='' src='lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=small'/>
        <span style='color:#696969; line-height:21px; width:150px; text-align:left; float:left;'>Código Banner 359x25</span>
        <input style='text-align:left; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=small[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\"][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=small[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='<a href=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\" target=\"_blank\" ><img src=\"http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=small\" /></a>' />
       </td>  
      </tr>";
      
    $output .= "
      <tr>
        <td class='menu_text' style='padding:15px; text-align:center;'><img alt='' src='lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=sky'/>
        <span style='color:#696969; line-height:21px; width:150px; text-align:left; float:left;'>Código Banner 180x260</span>
        <input style='text-align:left; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=sky[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='[url=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\"][img]http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=sky[/img][/url]' /><br />
        <input style='text-align:center; float:left;' class='tbox'  type='text' readonly='readonly' size='105' onclick='select()' value='<a href=\"http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\" target=\"_blank\" ><img src=\"http://".implode('/', (explode('/', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], -1)))."/lgsl_files/lgsl_image.php?s=".$_GET['s']."&type=sky\" /></a>' />
        </td>
      </tr>";


Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
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