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

Guests: 32

213.147.x.x download
34.219.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 dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
5.196.x.x forum
5.255.x.x forum
54.196.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x lgsl
54.36.x.x lgsl
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
91.242.x.x forum

Last Seen

Wussie Mon 01:59
Dodgeitorelse Mon 16:49
85filip58 Wed 12:06
Bommel Mon 18:20
Apophis01 Wed 12:35

Newest Members

Forums
Real map name
Xsfd (M.D.A)
Tue Nov 02 2010, 08:49PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
How make replace of map name?

For example cod 4:

map name in Lgsl: mp_block
user see: Блок

Sory for my English

Website
Xsfd (M.D.A)
Tue Nov 02 2010, 09:06PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
in protocol
elseif (strpos($map_check, "mp_block") !== FALSE) { $server['s']['map'] = "Блок"; }

NOT WORK!!!!(((

Website
Xsfd (M.D.A)
Thu Nov 04 2010, 09:01AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
Rich help please

Website
Xsfd (M.D.A)
Fri Nov 05 2010, 11:37AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
I make it!!!

look at thise:






Website
dutchbastard
Sat Nov 27 2010, 09:00AM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
How did you do it?
Website
Xsfd (M.D.A)
Sat Nov 27 2010, 09:26AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
dutchbastard wrote ...

How did you do it?


The operator if else

Website
dutchbastard
Sat Nov 27 2010, 09:36AM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
could you post your block of code from protocol in full?
becausae like you said :
in protocol
elseif (strpos($map_check, "mp_block") !== FALSE) { $server['s']['map'] = "Блок"; }

does not work
Website
Xsfd (M.D.A)
Sat Nov 27 2010, 11:32AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
It's not in protocol, it's in lgsl_details!
And this code 100% won't work! It not the true

Website
dutchbastard
Sat Nov 27 2010, 03:29PM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
ok but you said you did it
if so, could you please show me how?

edit: nvm I figured it out for both list and details.
Once I have it set better for cod4/mw2 ill update this post with my bit of code.
Website
Xsfd (M.D.A)
Sat Nov 27 2010, 05:53PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
Today I will start a site, there there will be this monitoring. I will give the reference in PM and there all I will explain))

Website
dutchbastard
Sat Nov 27 2010, 07:46PM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
sounds good
Website
Xsfd (M.D.A)
Sat Nov 27 2010, 10:47PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
There was a problem with site creation! I can not deduce a site with TopServer in the Internet

Website
dutchbastard
Sun Nov 28 2010, 11:16AM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
Not sure I know what that means...
If you are having trouble publishing your site I may be able to help.
But then..I don't know what you mean by deduce a site with topserver
Website
Xsfd (M.D.A)
Sun Nov 28 2010, 12:47PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
dutchbastard wrote ...

Not sure I know what that means...
If you are having trouble publishing your site I may be able to help.
But then..I don't know what you mean by deduce a site with topserver


Read PM

Website
dutchbastard
Tue Nov 30 2010, 11:29AM
Posts: 19
Joined: Mon Jan 25 2010, 11:53AM
Registered Member #5749
I was supposed to update this with my code as I had said so.
So here it is.

This "tweak" requires the code to be in both lgsl_details.php and lgsl_list.php. This to make sure it shows up on both pages.
Near the top of either page, find:
$server = lgsl_server_html($server);


Add after:

// CONVERT MAP NAME TO DESCRIPTIVE NAME SOURCE

$server['e']['level'] = $server['s']['map'];
$map_check = strtolower($server['s']['map']);

// COD4
if (strpos($map_check, "mp_backlot") !== FALSE) { $server['s']['map'] = "Backlot"; }
elseif (strpos($map_check, "mp_bloc") !== FALSE) { $server['s']['map'] = "Bloc"; }
elseif (strpos($map_check, "mp_bog") !== FALSE) { $server['s']['map'] = "Bog"; }
elseif (strpos($map_check, "mp_cargoship") !== FALSE) { $server['s']['map'] = "Wet Work"; }
elseif (strpos($map_check, "mp_citystreets") !== FALSE) { $server['s']['map'] = "District"; }
elseif (strpos($map_check, "mp_convoy") !== FALSE) { $server['s']['map'] = "Ambush"; }
elseif (strpos($map_check, "mp_countdown") !== FALSE) { $server['s']['map'] = "Countdown"; }
elseif (strpos($map_check, "mp_crash") !== FALSE) { $server['s']['map'] = "Crash"; }
elseif (strpos($map_check, "mp_crash_snow") !== FALSE) { $server['s']['map'] = "Winter Crash"; }
elseif (strpos($map_check, "mp_crossfire") !== FALSE) { $server['s']['map'] = "Crossfire"; }
elseif (strpos($map_check, "mp_farm") !== FALSE) { $server['s']['map'] = "Downpour"; }
elseif (strpos($map_check, "mp_overgrown") !== FALSE) { $server['s']['map'] = "Overgrown"; }
elseif (strpos($map_check, "mp_pipeline") !== FALSE) { $server['s']['map'] = "Pipeline"; }
elseif (strpos($map_check, "mp_shipment") !== FALSE) { $server['s']['map'] = "Shipment"; }
elseif (strpos($map_check, "mp_showdown") !== FALSE) { $server['s']['map'] = "Showdown"; }
elseif (strpos($map_check, "mp_strike") !== FALSE) { $server['s']['map'] = "Strike"; }
elseif (strpos($map_check, "mp_vacant") !== FALSE) { $server['s']['map'] = "Vacant"; }
elseif (strpos($map_check, "mp_broadcast") !== FALSE) { $server['s']['map'] = "Broadcast"; }
elseif (strpos($map_check, "mp_creek") !== FALSE) { $server['s']['map'] = "Creek"; }
elseif (strpos($map_check, "mp_carentan") !== FALSE) { $server['s']['map'] = "Chinatown"; }
elseif (strpos($map_check, "mp_killhouse") !== FALSE) { $server['s']['map'] = "Killhouse"; }


The code was on this forum somewhere but I don't know where anymore so can't give credit.

It also works with gametypes, although the way I did it may not be how it "should" be done properly.
All I know is, it works!

On a new line add:

// CONVERT GAMETYPE NAME TO DESCRIPTIVE NAME SOURCE

$server['e']['g_gametype'] = $server['e']['g_gametype'];
$gametype_check = strtolower($server['e']['g_gametype']);

if (strpos($gametype_check, "war") !== FALSE) { $server['e']['g_gametype'] = "Team Deathmatch"; }
elseif (strpos($gametype_check, "dm") !== FALSE) { $server['e']['g_gametype'] = "Free For All"; }
elseif (strpos($gametype_check, "dom") !== FALSE) { $server['e']['g_gametype'] = "Domination"; }
elseif (strpos($gametype_check, "koth") !== FALSE) { $server['e']['g_gametype'] = "Headquarters"; }
elseif (strpos($gametype_check, "sab") !== FALSE) { $server['e']['g_gametype'] = "Sabotage"; }
elseif (strpos($gametype_check, "sd") !== FALSE) { $server['e']['g_gametype'] = "Search & Destroy"; }
elseif (strpos($gametype_check, "arena") !== FALSE) { $server['e']['g_gametype'] = "Arena"; }
elseif (strpos($gametype_check, "dd") !== FALSE) { $server['e']['g_gametype'] = "Demolition"; }
elseif (strpos($gametype_check, "ctf") !== FALSE) { $server['e']['g_gametype'] = "Capture the Flag"; }
elseif (strpos($gametype_check, "oneflag") !== FALSE) { $server['e']['g_gametype'] = "One-Flag CTF"; }
elseif (strpos($gametype_check, "gtnw") !== FALSE) { $server['e']['g_gametype'] = "Global Thermo-Nuclear War"; }


You can make the gametype show up where eer you want with:
{$server['e']['g_gametype']}
Website
Xsfd (M.D.A)
Tue Nov 30 2010, 12:16PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
Я собственно так и делал, только воводил на внешние файлы.

Website
Xsfd (M.D.A)
Tue Nov 30 2010, 12:56PM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
And with operators it was possible to make easier! For example instead

elseif (strpos($map_check, "mp_farm") !== FALSE)

of to enter

elseif ($server['s']['map'] == mp_farm)

Website
[FF] Feelgood
Fri Dec 03 2010, 01:02AM
Posts: 45
Joined: Thu Oct 23 2008, 03:03AM
Registered Member #4472
@Dutchbastard

Weird. The tweak in details works great, however when I add it to the list, it doesnt work. Any ideas?
Website
Xsfd (M.D.A)
Fri Dec 03 2010, 06:11AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
Here my variant:
We deduce the card name in List, Details and Zone:


1)Create in a folder lgsl_files files:

maps_details.php With contents:

<?php


//-------------------------------------------------CALL OF DUTY 4 MAPS-----------------------------------------------------------+
//-------------------------------------------------------------------------------------------------------------------------------+
     
if ($server['s']['map'] == mp_farm)         {  $output .= "<b><font color='orange'>Ливень</font><b>";            } 
else if (
$server['s']['map'] == mp_bloc)        {  $output .= "<b><font color='orange'>Блок</font><b>";              } 
else if (
$server['s']['map'] == mp_showdown)     {  $output .= "<b><font color='orange'>Занавес</font><b>";           } 
else if (
$server['s']['map'] == mp_crash)        {  $output .= "<b><font color='orange'>Крушение</font><b>";          } 
else if (
$server['s']['map'] == mp_crash_snow)   {  $output .= "<b><font color='orange'>Снежное крушение</font><b>";  } 
else if (
$server['s']['map'] == mp_backlot)      {  $output .= "<b><font color='orange'>Площадка</font><b>";          } 
else if (
$server['s']['map'] == mp_backlot_night){  $output .= "<b><font color='orange'>Площадка (Ночь)</font><b>";   }
else if (
$server['s']['map'] == mp_vacant)       {  $output .= "<b><font color='orange'>Оффис</font><b>";             } 
else if (
$server['s']['map'] == mp_convoy)       {  $output .= "<b><font color='orange'>Засада</font><b>";            } 
else if (
$server['s']['map'] == mp_ambush)       {  $output .= "<b><font color='orange'>Засада</font><b>";            } 
else if (
$server['s']['map'] == mp_bog)          {  $output .= "<b><font color='orange'>Болото</font><b>";            } 
else if (
$server['s']['map'] == mp_broadcast)    {  $output .= "<b><font color='orange'>Станция</font><b>";           } 
else if (
$server['s']['map'] == mp_cargoship)    {  $output .= "<b><font color='orange'>Мокрое дело</font><b>";       } 
else if (
$server['s']['map'] == mp_carentan)     {  $output .= "<b><font color='orange'>Район</font><b>";             } 
else if (
$server['s']['map'] == mp_citystreets)  {  $output .= "<b><font color='orange'>Район</font><b>";             } 
else if (
$server['s']['map'] == mp_countdown)    {  $output .= "<b><font color='orange'>Отсчёт</font><b>";            } 
else if (
$server['s']['map'] == mp_crossfire)    {  $output .= "<b><font color='orange'>Перестрелка</font><b>";       } 
else if (
$server['s']['map'] == mp_overgrown)    {  $output .= "<b><font color='orange'>Дебри</font><b>";             } 
else if (
$server['s']['map'] == mp_creek)        {  $output .= "<b><font color='orange'>Бухта</font><b>";             } 
else if (
$server['s']['map'] == mp_pipeline)     {  $output .= "<b><font color='orange'>Трубопровод</font><b>";       } 
else if (
$server['s']['map'] == mp_shipment)     {  $output .= "<b><font color='orange'>Отправление</font><b>";       } 
else if (
$server['s']['map'] == mp_shipment2)    {  $output .= "<b><font color='orange'>Отправление 2</font><b>";     } 
else if (
$server['s']['map'] == mp_strike )      {  $output .= "<b><font color='orange'>Удар</font><b>";              } 
else if (
$server['s']['map'] == mp_killhouse)    {  $output .= "<b><font color='orange'>Мясорубка</font><b>";         } 


//-------------------------------------------------//CALL OF DUTY 4 MAPS//-----------------------------------------------------------+

else  {  $output .= "<b><font color='red'>Нет данных</font><b>"; }   
?>

maps_zone.php With contents:

<?php
//-------------------------------------------------CALL OF DUTY 4 MAPS-----------------------------------------------------------+
//-------------------------------------------------------------------------------------------------------------------------------+
     
if ($server['s']['map'] == mp_farm)         {  $output .= "<b><font color='orange'>Ливень</font><b>";            } 
else if (
$server['s']['map'] == mp_bloc)        {  $output .= "<b><font color='orange'>Блок</font><b>";              } 
else if (
$server['s']['map'] == mp_showdown)     {  $output .= "<b><font color='orange'>Занавес</font><b>";           } 
else if (
$server['s']['map'] == mp_crash)        {  $output .= "<b><font color='orange'>Крушение</font><b>";          } 
else if (
$server['s']['map'] == mp_crash_snow)   {  $output .= "<b><font color='orange'>Снежное крушение</font><b>";  } 
else if (
$server['s']['map'] == mp_backlot)      {  $output .= "<b><font color='orange'>Площадка</font><b>";          } 
else if (
$server['s']['map'] == mp_backlot_night){  $output .= "<b><font color='orange'>Площадка (Ночь)</font><b>";   }
else if (
$server['s']['map'] == mp_vacant)       {  $output .= "<b><font color='orange'>Оффис</font><b>";             } 
else if (
$server['s']['map'] == mp_ambush)       {  $output .= "<b><font color='orange'>Засада</font><b>";            } 
else if (
$server['s']['map'] == mp_bog)          {  $output .= "<b><font color='orange'>Болото</font><b>";            } 
else if (
$server['s']['map'] == mp_broadcast)    {  $output .= "<b><font color='orange'>Станция</font><b>";           } 
else if (
$server['s']['map'] == mp_cargoship)    {  $output .= "<b><font color='orange'>Мокрое дело</font><b>";       } 
else if (
$server['s']['map'] == mp_carentan)     {  $output .= "<b><font color='orange'>Район</font><b>";             } 
else if (
$server['s']['map'] == mp_citystreets)  {  $output .= "<b><font color='orange'>Район</font><b>";             } 
else if (
$server['s']['map'] == mp_countdown)    {  $output .= "<b><font color='orange'>Отсчёт</font><b>";            } 
else if (
$server['s']['map'] == mp_crossfire)    {  $output .= "<b><font color='orange'>Перестрелка</font><b>";       } 
else if (
$server['s']['map'] == mp_convoy)       {  $output .= "<b><font color='orange'>Засада</font><b>";            }  
else if (
$server['s']['map'] == mp_overgrown)    {  $output .= "<b><font color='orange'>Дебри</font><b>";             } 
else if (
$server['s']['map'] == mp_creek)        {  $output .= "<b><font color='orange'>Бухта</font><b>";             } 
else if (
$server['s']['map'] == mp_pipeline)     {  $output .= "<b><font color='orange'>Трубопровод</font><b>";       } 
else if (
$server['s']['map'] == mp_shipment)     {  $output .= "<b><font color='orange'>Отправление</font><b>";       } 
else if (
$server['s']['map'] == mp_shipment2)    {  $output .= "<b><font color='orange'>Отправление 2</font><b>";     } 
else if (
$server['s']['map'] == mp_strike )      {  $output .= "<b><font color='orange'>Удар</font><b>";              } 
else if (
$server['s']['map'] == mp_killhouse)    {  $output .= "<b><font color='orange'>Мясорубка</font><b>";         }


else  {  
$output .= "<b><font color='red'>{$server['s']['map']}</font><b>"; }   
//-------------------------------------------------//CALL OF DUTY 4 MAPS//-----------------------------------------------------------+


maps_list.php With contents:

<?php
     
if ($server['s']['map'] == mp_farm)         {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Ливень</font><b></td>";            } 
else if (
$server['s']['map'] == mp_bloc)        {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Блок</font><b></td>";              } 
else if (
$server['s']['map'] == mp_vacant)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Оффис</font><b></td>";              } 
else if (
$server['s']['map'] == mp_showdown)     {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Занавес</font><b></td>";           } 
else if (
$server['s']['map'] == mp_crash)        {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Крушение</font><b></td>";          } 
else if (
$server['s']['map'] == mp_crash_snow)   {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Снежное крушение</font><b></td>";  } 
else if (
$server['s']['map'] == mp_backlot)      {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Площадка</font><b></td>";          } 
else if (
$server['s']['map'] == mp_backlot_night){  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Площадка (Ночь)</font><b></td>";   } 
else if (
$server['s']['map'] == mp_ambush)       {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Засада</font><b></td>";            } 
else if (
$server['s']['map'] == mp_convoy)       {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Засада</font><b></td>";            }  
else if (
$server['s']['map'] == mp_bog)          {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Болото</font><b></td>";            } 
else if (
$server['s']['map'] == mp_broadcast)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Станция</font><b></td>";           } 
else if (
$server['s']['map'] == mp_cargoship)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Мокрое дело</font><b></td>";       } 
else if (
$server['s']['map'] == mp_citystreets)  {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Район</font><b></td>";             } 
else if (
$server['s']['map'] == mp_carentan)  {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Район</font><b></td>";             } 
else if (
$server['s']['map'] == mp_countdown)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Отсчёт</font><b></td>";            } 
else if (
$server['s']['map'] == mp_crossfire)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Перестрелка</font><b></td>";       } 
else if (
$server['s']['map'] == mp_overgrown)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Дебри</font><b></td>";             } 
else if (
$server['s']['map'] == mp_creek)        {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Бухта</font><b></td>";             } 
else if (
$server['s']['map'] == mp_pipeline)     {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Трубопровод</font><b></td>";       } 
else if (
$server['s']['map'] == mp_shipment)     {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Отправление</font><b></td>";       } 
else if (
$server['s']['map'] == mp_shipment2)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Отправление 2</font><b></td>";     } 
else if (
$server['s']['map'] == mp_strike )      {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Удар</font><b></td>";              } 
else if (
$server['s']['map'] == mp_killhouse)    {  $output .= "  <td style='white-space:nowrap; text-align:center'><b>Карта: <font color='orange'>Мясорубка</font><b></td>";         }


else  {  
$output .= "<td style='white-space:nowrap; text-align:center'><b><font color='copper'>{$server['s']['map']}</font><b></td>"; }   


?>


2) In files:

lgsl_details.php:

replace:
<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>
On:
<tr style='".lgsl_bg().";white-space:nowrap'><td> <b> {$lgsl_config['text']['map']} </b></td><td style='white-space:nowrap'> ";
if (strpos($server['b']['type'], "callofduty") !== FALSE)
{ include 'maps_details.php'; }
else { $output .= "<b><font color='red'>No NAME</font><b>"; }
$output .= "


lgsl_list.php:

replace:
<td style='white-space:nowrap; text-align:left'>
{$server['s']['map']}
</td>

On:
";
if (strpos($server['b']['type'], "callofduty") !== FALSE)
{ include 'maps_list.php'; }
else { $output .= "<td style='white-space:nowrap; text-align:center'><b><font color='copper'>{$server['s']['map']}</font><b></td>"; }
$output .= "


lgsl_zone.php:

replace:
{$server['s']['map']}
On:
";
if (strpos($server['b']['type'], "callofduty") !== FALSE)
{ include 'maps_zone.php'; }

else { $output .= "<b><font color='copper'>{$server['s']['map']}</font><b>"; }
$output .= "


-------------------------------
Вот и всё)) на русском думаю писать не стоит!

Website
MadMakz
Fri Dec 03 2010, 10:21AM

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

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