News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Arcade Games

Started by Catdog, October 24, 2005, 05:00:11 PM

Previous topic - Next topic

Catdog

Hat jemand einen Link, wo ich Arcade Games downloaden kann, habe schon gegoogelt, aber nix gefunden.

Gruß

noex

Hier: http://arcade.web.com/index.php?ind=downloads

lg
noex

PS: Diesen Link findest du übrigens mehrmals im Thread des Arcade Mod
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

#2
Die Suche klappt aber meistens nicht, sorry.

noex

War ja auch nicht also vorwurf gemeint. ;)

Es ist nur so, dass wir uns auch keinen anderen Hilfsmitteln, als den bestehenden (zB der Suche), bedienen können und es somit auch mehrmals probieren müssen, wenn die Suche gerade nicht zur Verfügung steht.

Hoffe dennoch das dir der Link geholfen hat.

lg
noex
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

Der Link hat geholfen. Ich habe die Suche mehrmals versucht, ich habe auch selber gesucht, aber bei so vielen Themen *puh*

dieter4


Catdog

@Noex

habe auf deinem Forum gesehen, dass im Profil steht, wo man Champion von ist.

Könntest Du mir vielleicht sagen, wie man so etwas einstellen kann?

noex

Das musst du manuell machen, dazu gab es mal eine Anleitung, finde diese aber selbst nicht mehr. Wenn du willst kann ich dir sagen was du ändern musst.

lg
noex
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

Ja, das wäre nett, wenn du mir das beschreiben könntest.
Noch eins, im Admin Menü auf Deutsche wird "Arcade" nicht angezeigt, was habe ich den da vergessen?

Gruß

noex

Punkt 1. werde ich dir heute abend sagen (hab jetzt leider keine Zeit)
Punkt 2. Ja, du musst die Einträge aus modifications.english.php nach modifikations.german.php übernehmen

lg
noex
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

zu2.
habe ich gemacht, aber nix da. Aber komisch , dass im Englischen auf einmal auch nichts mehr da ist im Admin Panel.

Quote<?php
// Version: 1.1 RC1; Modifications

// MM - Text
$txt['mm_mm'] = 'Member Map';
$txt['mm_place_pin'] = 'Place Your Pin';
$txt['mm_view'] = 'View';
$txt['mm_click_highlight'] = 'Click to highlight pin';
$txt['mm_city'] = 'City';
$txt['mm_user_listing'] = 'User Listing';
$txt['mm_savepin'] = 'Save My Pin';
$txt['mm_removepin'] = 'Remove My Pin';
// MM - Admin Text
$txt['mm_id'] = 'ID';
$txt['mm_image'] = 'Image';
$txt['mm_name'] = 'Name';
$txt['mm_xstart'] = 'xStart';
$txt['mm_xend'] = 'xEnd';
$txt['mm_ystart'] = 'yStart';
$txt['mm_yend'] = 'yEnd';
$txt['mm_scale'] = 'Scale';
$txt['mm_visible'] = 'Visible?';
$txt['mm_which_default'] = 'Which map do you want to be the default?';
$txt['mm_current_maps'] = 'Current Maps';
// MM - Errors
$txt['mm_error_placepin'] = 'You have to click somewhere on the map to place your pin.';
$txt['mm_error_coordinates'] = 'Illegal coordinates entered. Try again and be sure to place your pin somewhere on the image.';
$txt['mm_error_nomaps'] = 'There are no maps currently available to view';
// MM - Permission Errors
$txt['cannot_membermap_view'] = 'You cannot view the member map.';
$txt['cannot_membermap_edit'] = 'You cannot edit your pin on the member map.';
// MM - Permissions
$txt['permissiongroup_membermap'] = 'View and edit pins on the member map';
$txt['permissionname_membermap_view'] = 'View the member map';
$txt['permissionname_membermap_edit'] = 'Edit their pin on the member map';
// MM - Who's Online
$txt['whoall_mm'] = 'Viewing the Member Map.';



$txt['permissiongroup_arcade'] = "Arcade";
$txt['cannot_view_arcade'] = "You arent allowed to view arcade, sorry!";
$txt['permissionhelp_view_arcade'] = "Allow this if you want this group to access arcade";
$txt['permissionname_view_arcade'] = "Can view arcade (main)";
$txt['cannot_play_arcade'] = "You arent allowed to play on arcade, sorry!";
$txt['permissionhelp_play_arcade'] = "Allow this if you want this group to play in arcade";
$txt['permissionname_play_arcade'] = "Can play in arcade";
$txt['cannot_submit_score'] = "You arent allowed to submit scores on arcade, sorry!";
$txt['permissionhelp_submit_score'] = "Allow this if you want ALLOW this group to submit scores in arcade";
$txt['permissionname_submit_score'] = "Can Submit scores in arcade";
$txt['arcade_highscores_per_page'] = "Highscores per page in arcade";
$txt['admin_arcade'] = "Arcade";
$txt['admin_arcade2'] = "Arcade Admin";
$txt['cannot_admin_arcade'] = "You arent allowed to Admin Arcade!";
$txt['permissionname_admin_arcade'] = "Can Admin Arcade";
$txt['cannot_challenge_send'] = "You arent allowed to send challenges arcade, sorry!";
$txt['permissionhelp_challenge_send'] = "Allow this if you want this group to send challenges arcade";
$txt['permissionname_challenge_send'] = "Can send challenges";
$txt['cannot_challenge_view'] = "You arent allowed to view challenges arcade, sorry!";
$txt['permissionhelp_challenge_view'] = "Allow this if you want this group to view challenges arcade";
$txt['permissionname_challenge_view'] = "Can view challenges";
?>

Catdog

Ich habe auch einen Testzugang angelegt:

http://www.unsere-pfoten.web-4-free.com/forum/index.php

test
test

Wird das überhaupt alles richtig angezeigt?

noex

Zu obigen Punkt 1:

Suche in der Profile.template.php nach:
function template_profile_above()
{
global $context, $settings, $options, $db_prefix, $scripturl, $modSettings, $txt, $user_info;

und füge danach folgendes ein:

$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ,{$db_prefix}games WHERE {$db_prefix}games_champ.game={$db_prefix}games.game",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
if(!empty($rivi['game']) && !empty($rivi['member']))
$arcade_champ[$rivi['member']][$rivi['game']] = $rivi;
}
$context['arcade']['champions'] = $arcade_champ;


Nun suchst du nach:
</td><td width="55%">
<div title="', $context['member']['hostname'], '" style="width: 100%; overflow: hidden; font-style: italic;">', $context['member']['hostname'], '</div>
</td>
</tr>';
}

und fügst danach ein:
// Games

echo '
<tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>Champion in:</b></td>
<td>';

loadLanguage('Arcade'); // We need strings from Arcade language file
if(@is_array($context['arcade']['champions'][ $context['member']['id'] ])){
foreach($context['arcade']['champions'][ $context['member']['id'] ] as $tmp){
//print_r($tmp);
echo '
', $tmp['name'] ,'<br />
';
}
} else
echo '<i>keinen Spiel</i>';
echo '
</td>
</tr>';


Das sollte es eigentlich gewesen sein.

Zu Punkt 2:

Bitte überprüfe ob du die Dateien auch in den richtigen Ordner wieder hochgeladen hast und ob die Dateien tatsächlich überschrieben wurden.

lg
noex

"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

funktioniert nicht, habe es ein paar mal getestet, es ändert sich nichts , ich kann aber mein Profil nicht mehr aufrufen, internal Prass Error oder so.

Catdog

Den Arcade Button habe ich jetzt im Admin Panel, waren Daten imn Subs nicht richtig, aber das ander geht immer noch nicht, ich kann mein Profil nicht aufrufen, es tut sich da gar nichts.

noex

Okay, ich versuche es nochmals...

Also, Suche in der Profile.template.php nach:

function template_profile_above()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;


und ersetze es mit:

function template_profile_above()
{
global $context, $settings, $options, $db_prefix, $scripturl, $modSettings, $txt;

$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ,{$db_prefix}games WHERE {$db_prefix}games_champ.game={$db_prefix}games.game",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
if(!empty($rivi['game']) && !empty($rivi['member']))
$arcade_champ[$rivi['member']][$rivi['game']] = $rivi;
}
$context['arcade']['champions'] = $arcade_champ;



Nun suchst du nach:
</td><td width="55%">
<div title="', $context['member']['hostname'], '" style="width: 100%; overflow: hidden; font-style: italic;">', $context['member']['hostname'], '</div>
</td>
</tr>';
}

und fügst danach ein:
// Games

echo '
<tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>Champion in:</b></td>
<td>';

loadLanguage('Arcade'); // We need strings from Arcade language file
if(@is_array($context['arcade']['champions'][ $context['member']['id'] ])){
foreach($context['arcade']['champions'][ $context['member']['id'] ] as $tmp){
//print_r($tmp);
echo '
', $tmp['name'] ,'<br />
';
}
} else
echo '<i>keinen Spiel</i>';
echo '
</td>
</tr>';


So geht funktioniert es - zumindest bei mir.

lg
noex

"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

Ja, es funktioniert, supi Danke.

Aber ich dachte das wird auch im Profil bei den Posts angezeigt?!

noex

Super, sonst hätte ich jetzt schon an mir gezweifelt.  :D

Nee, das müsstest du über eine andere Template Datei machen.

Ich hatte es einmal so, aber wenn jemand zB 20 Rekorde hat, wird es eine ziemlich lange Liste. Ob das dann auch noch "gut" aussieht muss jeder für sich selbst entscheiden, mir jedenfalls hat es nicht gefallen. Daher hab ich es auch wieder entfernt.

Kann dir aber auch hierzu sagen, was du machen musst.

lg
noex
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Catdog

Ich habe jetzt ein Code gefunden um Champion in der Signatur anzeigen zu lassen.

replace:

  // Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div>';

with the following:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div><hr />';
if(@is_array($context['arcade']['champions'][ $message['member']['id'] ])){
$i = 0;

echo "SmfArcade Champion&nbsp;";
foreach($context['arcade']['champions'][ $message['member']['id'] ] as $tmp){
//print_r($tmp);
if($tmp['thumbnail'] != ''){

// echo '
// <img src="', $tmp['thumbnail'], '" alt="" width="20">',$tmp['name'],' ', $txt['arcade_136'],'
';

echo '<a href="', $scripturl, '?action=arcade;do=play;game=',$tmp['id'],'" ><img border="0" src="', $tmp['thumbnail'], '" alt="', $tmp['name'] ,'" width="20" height="20"></a>&nbsp;';

}
}
}



Ich bekomme aber immer folgenden Fehler:


Template Parse Error!

Parse error: parse error, unexpected T_STRING in .../Themes/default/Display.template.php on line 540

531:                    echo "SmfArcade Champion ";
532:                    foreach($context['arcade']['champions'][ $message['member']['id'] ] as $tmp){
533:                    //print_r($tmp);
534:                    if($tmp['thumbnail'] != ''){
535:
536:                   // echo '
537:                   // <img src="', $tmp['thumbnail'], '" alt="" width="20">',$tmp['name'],' ', $txt['arcade_136'],'
538:                    ';
539:

540:                   echo '<a href="', $scripturl, '?action=arcade;do=play;game=',$tmp['id'],'" ><img border="0" src="', $tmp['thumbnail'], '" alt="', $tmp['name'] ,'" width="20" height="20"></a> ';

541:
542:                    }
543:                    }
544:                    }

noex

Du musst die Zeile 538 auch noch auskommentieren, also aus:

';

folgendes machen:

// ';

lg
noex
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Advertisement: