Seite 2 von 2

Verfasst: 31.12.2003 16:33
von Acid
Ich hatte mir von http://www.bananeweizen.de/ die aktuellste Version heruntergeladen ...da steht´s drin.

Verfasst: 31.12.2003 16:37
von Guido
Oh sorry hatte vergessen zu sagen das ich noch die 1.9 benutze, war mir aber nicht bewusst dass das hier von Bedeutung sein könnte..Ich hab meine ja mal verlinkt...als .txt

Verfasst: 31.12.2003 23:48
von Guido
Ich hab`s hinbekommen !

Lösung:

Öffne: map_funktions.php

Suche:

Code: Alles auswählen

$sql = "SELECT u.user_id, u.username, u.user_from,  m.longitude, m.latitude
                FROM " . USERS_TABLE . " u, " . MAP_MOD_USER_TABLE . " m
                WHERE u.user_id = m.user_id
                AND (m.longitude != 0 OR m.latitude != 0)";
Ersetze mit:

Code: Alles auswählen

$sql = "SELECT u.user_id, u.username, u.user_from, u.user_motorrad, m.longitude, m.latitude
                FROM " . USERS_TABLE . " u, " . MAP_MOD_USER_TABLE . " m
                WHERE u.user_id = m.user_id
                AND (m.longitude != 0 OR m.latitude != 0)";
Öffne map.php

Suche:

Code: Alles auswählen

                        
'ID'                         => $user['user_id'],
'USERNAME'                => $user['username'],
'LOCATION'                => $user['user_from'],
'DISTANCE'                => $user['distance'],
'LONGITUDE'                => $user['longitude'],
'LATITUDE'                => $user['latitude'],
'U_PROFILE'                => $user['u_profile'],
'U_MAP'                        => $user['u_map']
Ersetze mit:

Code: Alles auswählen

'ID'                         => $user['user_id'],
'USERNAME'                => $user['username'],
'LOCATION'                => $user['user_from'],
'MOTORRAD'                => $user['user_motorrad'],
'DISTANCE'                => $user['distance'],
'LONGITUDE'                => $user['longitude'],
'LATITUDE'                => $user['latitude'],
'U_PROFILE'                => $user['u_profile'],
'U_MAP'                        => $user['u_map']
Suche:

Code: Alles auswählen

'NAME'                        => $user_row['username'],
'LOCATION'                => $user_row['user_from'],
'DISTANCE'                => distance_string($d),
'LONGITUDE'                => coord_to_string($row['longitude']),
'LATITUDE'                => coord_to_string($row['latitude']),
Ersetze mit:

Code: Alles auswählen

'NAME'                        => $user_row['username'],
'LOCATION'                => $user_row['user_from'],
'MOTORRAD'                => $user_row['user_motorrad'],
'DISTANCE'                => distance_string($d),
'LONGITUDE'                => coord_to_string($row['longitude']),
'LATITUDE'                => coord_to_string($row['latitude']),
Suche:

Code: Alles auswählen

'L_LATITUDE_HELP'                => $lang['map_latitudehelp'],
'L_USER'                                => $lang['Username'],
'L_LOCATION'                        => $lang['Location'],
'L_TITLE'                                => $lang['map_page_title'],
'L_USER_DETAILS'                => $lang['map_user_details'],
Ersetze mit:

Code: Alles auswählen

'L_LATITUDE_HELP'                => $lang['map_latitudehelp'],
'L_USER'                                => $lang['Username'],
'L_LOCATION'                        => $lang['Location'],
'L_MOTORRAD'                        => $lang['Motorrad'],
'L_TITLE'                                => $lang['map_page_title'],
'L_USER_DETAILS'                => $lang['map_user_details'],
Öffne map.tpl

Suche:

Code: Alles auswählen

<tr>
          <th class="thCornerL" height="25" nowrap align="left">&nbsp;{L_NAME}&nbsp;</th>
          <th class="thTop" nowrap align="left">&nbsp;{L_LOCATION}&nbsp;</th>
           <th class="thCornerR" nowrap align="right">&nbsp;{L_DISTANCE}&nbsp;</th>
        </tr>
        <!-- BEGIN users_near -->
        <tr>
          <td class="row1" align="left"><span class="gen"><a href="{switch_users_near.users_near.U_PROFILE}">{switch_users_near.users_near.NAME}</a></span></td>
          <td class="row2" align="left"><span class="gen"><a href="{switch_users_near.users_near.U_LOCATION}">{switch_users_near.users_near.LOCATION}</a></span></td>
           <td class="row1" align="right"><span class="gen">{switch_users_near.users_near.DISTANCE}</span></td>
        </tr>
        <!-- END users_near -->
Ersetze mit:

Code: Alles auswählen

<tr>
          <th class="thCornerL" height="25" nowrap align="left">&nbsp;{L_NAME}&nbsp;</th>
          <th class="thTop" nowrap align="left">&nbsp;{L_LOCATION}&nbsp;</th>
          <th class="thTop" nowrap align="left">&nbsp;{L_MOTORRAD}&nbsp;</th>
          <th class="thCornerR" nowrap align="right">&nbsp;{L_DISTANCE}&nbsp;</th>
        </tr>
        <!-- BEGIN users_near -->
        <tr>
          <td class="row1" align="left"><span class="gen"><a href="{switch_users_near.users_near.U_PROFILE}">{switch_users_near.users_near.NAME}</a></span></td>
          <td class="row2" align="left"><span class="gen"><a href="{switch_users_near.users_near.U_LOCATION}">{switch_users_near.users_near.LOCATION}</a></span></td>
          <td class="row2" align="left"><span class="gen">{switch_users_near.users_near.MOTORRAD}</span></td>
          <td class="row1" align="right"><span class="gen">{switch_users_near.users_near.DISTANCE}</span></td>
        </tr>
        <!-- END users_near -->