[Frage]Kiss/Herzen System
Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen
-
-
-
-
-
PHP-Quellcode
- ### START PointSystem.pm-Zugehörigkeit ###
- if($main->{current_user}{points} < 100)
- {
- $main->{template_vars}{rose_send} = 2;
- return [$main->{template_vars}{rose_points} = sprintf "%.1f",(100 - $main->{current_user}{points})];
- }
- $main->{current_user}{points} -= 100;
- ### ENDE PointSystem.pm-Zugehörigkeit ###
Meinst du das ?
Edit: Also das herzen verschneken geht nun nur das problem da das die rosen nicht angezeigt werden.
Inhalt der profil.html :
PHP-Quellcode
- <?xml version="1.0" encoding="{GET|$current_language.charset}"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- {NEED_PERMISSION|user}
- {NEED|$user_information}
- <base href="{GET|$settings.urls.htmlurl}"/>
- <link rel="stylesheet" href="{GET|$runtime.style}.css"/>
- <title>{GET|$settings.chatname} - Profil von {GET|$user_information.nick}</title>
- <script src="general.js" type="text/javascript"></script>
- <script type="text/javascript">
- //<![CDATA[
- function send(text)
- {
- if (window.opener && !opener.closed)
- opener.sendText(text, 1);
- }
- function sendMessage()
- {
- var text = document.inputForm.text.value;
- document.inputForm.text.value = '';
- send('/msg {GET_JS|$user_information.nick} ' + text)
- }
- //]]>
- </script>
- </head>
- <body onload="autosize()">
- <p>
- <strong>Allgemeines</strong>
- {IF|permission(profile_seecommandpermissions)}
- | <a href="{GET|$runtime.completeurl};template=profile_commandpermissions;username={GET_ESCAPED|$user_information.name}">Befehlsrechte</a>
- {ENDIF}
- {IF|permission(profile_seepermissions)}
- | <a href="{GET|$runtime.completeurl};template=profile_permissions;username={GET_ESCAPED|$user_information.name}">Zugriffsrechte</a>
- {ENDIF}
- </p>
- <table class="bordered1" width="100%" cellspacing="0">
- <tr>
- <th colspan="2">
- Profil von {GET|$user_information.nick}
- {IF|$user_information.online}
- (Online{IF|$user_information.away}, gerade abwesend{ENDIF})
- {ELSE}
- (Offline)
- {ENDIF}
- </th>
- </tr>
- <tr>
- <td><strong>Herz :</strong></td>
- <td>{IF|$user_information.hearts}
- {FOREACH|$user|$hearts}
- {IF|$user}
- <a href="{GET|$runtime.completeurl};template=profile;nickname={GET_ESCAPED|$user}"><font title="{GET|$user} hat {GET|$user_information.nick} ein Herz geschenkt.">{IMAGE|hearts}</font></a>
- {ELSE}
- <font title="Ein gelöschter User hat {GET|$user_information.nick} ein Herz geschenkt.">{IMAGE|hearts}</font>
- {ENDIF}
- {ENDFOR}
- {ENDIF}
- </font></td>
- <table class="bordered1" width="100%" cellspacing="0">
- <tr>
- <td><strong>Rosen :</strong></td>
- <td>{IF|$user_information.rose}
- {FOREACH|$user|$rose}
- {IF|$user}
- <a href="{GET|$runtime.completeurl}&template=profile&nickname={GET_ESCAPED|$user}"><font title="{GET|$user} hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font></a>
- {ELSE}
- <font title="Ein gelöschter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
- {ENDIF}
- {ENDFOR}
- {ENDIF}
- </font></td>
- </tr>
- <tr>
- <td><strong>Punkte :</strong></td>
- <td>{IF|$user_information.points < 50}Frischling {ELSE} {IF|$user_information.points < 0}Newbie {ELSE} {IF|$user_information.points < 100}Amateur {ELSE} {IF|$user_information.points < 150}Chatter {ELSE} {IF|$user_information.points < 15000}Nervenkiller {ELSE} {IF|$user_information.points < 25000}spammer {ELSE} {IF|$user_information.points < 50000}Profi-chatter {ELSE} {IF|$user_information.points < 100000}Sehrbeliebt {ELSE} {IF|$user_information.points < 250000}Chat-Gott {ELSE} {IF|$user_information.points < 10000000000000}Chat-Allstar {ELSE} Ehrenmitglied {ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}
- </font></td>
- {IF|$user_information.away and $user_information.away ne 1}
- <tr>
- <td><strong>Abwesenheitsgrund:</strong></td>
- <td>{GET|$user_information.away}</td>
- </tr>
- {ENDIF}
- <tr>
- <td><strong>Nickname:</strong></td>
- <td>{GET|$user_information.nick}</td>
- </tr>
- <tr>
- <td><strong>Status:</strong></td>
- <td>{GROUPNAME|$user_information.group}</td>
- </tr>
- {IF|$user_information.online and $user_information.tempgroup!=$user_information.group}
- <tr>
- <td><strong>Vorübergehend:</strong></td>
- <td>{GROUPNAME|$user_information.tempgroup}</td>
- </tr>
- {ENDIF}
- <tr>
- <td><strong>Farbe:</strong></td>
- <td><font color="{GET|$user_information.color}">{GET|$user_information.color}</font></td>
- </tr>
- {IF|$user_information.email}
- {IF|!$user_information.privateemail or permission(profile_seeemail)}
- <tr>
- <td><strong>E-Mail:</strong></td>
- <td><a href="mailto:{GET|$user_information.email}">{GET|$user_information.email}</a></td>
- </tr>
- {ENDIF}
- {ENDIF}
- {IF|$user_information.gender}
- <tr>
- <td><strong>Geschlecht:</strong></td>
- <td>{IIF|$user_information.gender==1|männlich|weiblich}</td>
- </tr>
- {ENDIF}
- {IF|$user_information.birth_date}
- <tr>
- <td><strong>Geburtsdatum:</strong></td>
- <td>{GETSTDDATE|$user_information.birth_date}</td>
- </tr>
- {ENDIF}
- {IF|$user_information.homepage}
- <tr>
- <td><strong>Website:</strong></td>
- <td><a href="{GET|$settings.urls.chaturl}?template=dereferer;language={GET|$runtime.language};url={GET_ESCAPED|$user_information.homepage}" target="_blank" title="Homepage öffnen">{IF|$user_information.homepagetitle}{GET|$user_information.homepagetitle}{ELSE}{GET|$user_information.homepage}{ENDIF}</a></td>
- </tr>
- {ENDIF}
- {IF|permission(profile_seeregistration)}
- <tr>
- <td><strong>Registrierung:</strong></td>
- <td>{GETDATETIME|$user_information.registration}</td>
- </tr>
- {ENDIF}
- {IF|permission(profile_seelastlogin)}
- <tr>
- <td><strong>Letzter Login:</strong></td>
- <td>{GETDATETIME|$user_information.lastlogin}</td>
- </tr>
- {ENDIF}
- {IF|$user_information.online}
- <tr>
- <td><strong>Raum:</strong></td>
- <td><a href="#room" onclick="send('/room {GET_JS|$user_information.room}');return false;" title="Springe zum Raum">{GET|$user_information.room}</a></td>
- </tr>
- {IF|permission(profile_seepullmode)}
- <tr>
- <td><strong>Sicherer Modus:</strong></td>
- <td>{IIF|$user_information.pull|ja|nein}</td>
- </tr>
- {ENDIF}
- {ENDIF}
- {IF|permission(profile_seeip)}
- <tr>
- <td><strong>Browser:</strong></td>
- <td>{GET|$user_information.browser}</td>
- </tr>
- <tr>
- <td><strong>IP:</strong></td>
- <td>{IF|permission(profile_traceroute)}<a href="{GET|$runtime.completeurl};action=traceroute;name={GET_ESCAPED|$user_information.name}">{ENDIF}{GET|$user_information.ip}{IF|permission(profile_traceroute)}</a>{ENDIF} {IF|$user_information.host}({GET|$user_information.host}){ENDIF}</td>
- </tr>
- {IF|$user_information.forwardedfor}
- <tr>
- <td><strong>Client-IP:</strong></td>
- <td>{GET|$user_information.forwardedfor}</td>
- </tr>
- {ENDIF}
- {ENDIF}
- {IF|$user_information.name ne $current_user.name}
- <tr>
- <td><strong>Privatnachricht senden:</strong></td>
- <td>
- <form name="inputForm" action="javascript:void(0)" onsubmit="sendMessage();return false;">
- <input type="text" name="text" size="13" maxlength="255"/>
- <input type="submit" value="Abschicken"/>
- </form>
- </td>
- </tr>
- {ENDIF}
- {IF|permission(profile_modify) and $current_user.tempgroup>$user_information.group or $user_information.name eq $current_user.name}
- <tr><td colspan="2"> </td></tr>
- <tr>
- <td colspan="2" align="center">
- <form>
- <input type="button" value="Bearbeiten" onclick="document.location.href='{GET_JS|$runtime.completeurl};template=editprofile;username={GET_ESCAPED|$user_information.name}';return false"/>
- {IF|$user_information.group < 10}
-
- <input type="button" value="Benutzer löschen" onclick="if (confirm('Sind Sie sicher, daß Sie diesen Account löschen wollen? Beachten Sie, daß diese Operation nicht rückgängig gemacht werden kann!')) document.location.href='{GET_JS|$runtime.completeurl};action=deleteuser;username={GET_ESCAPED|$user_information.name}';return false"/>
- {ENDIF}
- </form>
- </td>
- </tr>
- {ENDIF}
- </table>
- {IF|$user_information.online and $user_information.tempgroup<=0}
- {IF|permission(command.gag) or permission(command.kick)}
- <table class="bordered1" width="100%" cellspacing="0" style="margin-top: 15px;">
- <tr>
- <th colspan="2">Admin-Funktionen</th>
- </tr>
- {IF|permission(command.gag)}
- <tr>
- <td align="center"><a href="#gag" onclick="send('/gag {GET_JS|$user_information.nick}');return false;" title="/gag">Knebeln</a></td>
- </tr>
- {ENDIF}
- {IF|permission(command.kick)}
- <tr>
- <td align="center"><a href="#kick" onclick="send('/kick {GET_JS|$user_information.nick}');return false;" title="/kick">Kicken</a></td>
- </tr>
- {ENDIF}
- </table>
- {ENDIF}
- {ENDIF}
- <p align="center" style="margin-bottom: 0px;">
- <a href="javascript:window.close()">Fenster schließen</a>
- </p>
- </body>
- </html>
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von „Unixfan“ ()
-
Also zu dem Pointsystem aus der 0.95 er Version gehört der Folgende Text.
### START PointSystem.pm-Zugehörigkeit ###
if($main->{current_user}{points} < 100)
{
$main->{template_vars}{rose_send} = 2;
return [$main->{template_vars}{rose_points} = sprintf "%.1f",(100 - $main->{current_user}{points})];
}
$main->{current_user}{points} -= 100;
### ENDE PointSystem.pm-Zugehörigkeit ###
Baust du diesen aus der .pm aus sollte das addon auch Funktionieren xD
zu deinem Problem das die Rosen nicht angezeigt werden mwüsste ich direckt auch nichts ausser vieleicht nochmal Kontrolieren ob du das Profielfeld angelegt hast, bzw. die einträge in der sättings.dat (oder wie die datei in der 0.96 heisst).
hoffe konnte dir weiterhelfen -
So sollte der eintrag in der Profile.html aussehen...
Quellcode
- <tr>
- <td><strong> Rosen:</strong></td>
- <td>
- <a href="{GET|$runtime.completeurl};template=rose;username={GET_JS|$user_information.name}">Du wolle Rose verschenken?</a><br>
- </td>
- </tr>{ENDIF}{IF|$user_information.rose}
- <tr><td><strong> Rosen:</strong></td>
- <td colspan=2>
- {FOREACH|$user|$rose}
- {IF|$user}
- <a href="{GET|$runtime.completeurl}&template=profile&nickname={GET_ESCAPED|$user}"><font title="{GET|$user} hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font></a>
- {ELSE}
- <font title="Ein gelöschter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
- {ENDIF}
- {ENDFOR}
- </td>
- </tr>
wenn ich mich nicht verlesen habe sieht deiner etwas anderst aus...
Quellcode
- <tr>
- <td><strong>Rosen :</strong></td>
- <td>{IF|$user_information.rose}
- {FOREACH|$user|$rose}
- {IF|$user}
- <a href="{GET|$runtime.completeurl}&template=profile&nickname={GET_ESCAPED|$user}"><font title="{GET|$user} hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font></a>
- {ELSE}
- <font title="Ein gelöschter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
- {ENDIF}
- {ENDFOR}
- {ENDIF}
- </font></td>
- </tr>
Also meine version funktioniert ohne Probleme.
LG: Speedy.
Keine mehr da....
-
Teilen
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0