[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

      [Frage]Kiss/Herzen System

      Hallo habe da noch eine frage zu dem Kiss und herz und Rosen verschenken wie soll das eigentlich gehen weil nirgenswo finde ich eine wirkliche erklärung dazu. Wie die punkte gesammelt werden etc. Ohne die Punkte kann man ja nichts verschenken
      Hi, da es diese Addons nicht speziell für den 0.96 gibt, musst du einige kleine veränderungen an dem Addon vornehmen... Du musst die unktezahl komplett auf 0 setzen (was das addon abziehen soll) oder halt komplett rausnehmen... Dies ist nötig, da es kein Pointsystem für das 0.96 gibt.

      PHP-Quellcode

      1. ### START PointSystem.pm-Zugehörigkeit ###
      2. if($main->{current_user}{points} < 100)
      3. {
      4. $main->{template_vars}{rose_send} = 2;
      5. return [$main->{template_vars}{rose_points} = sprintf "%.1f",(100 - $main->{current_user}{points})];
      6. }
      7. $main->{current_user}{points} -= 100;
      8. ### 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

      1. <?xml version="1.0" encoding="{GET|$current_language.charset}"?>
      2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3. <html xmlns="http://www.w3.org/1999/xhtml">
      4. <head>
      5. {NEED_PERMISSION|user}
      6. {NEED|$user_information}
      7. <base href="{GET|$settings.urls.htmlurl}"/>
      8. <link rel="stylesheet" href="{GET|$runtime.style}.css"/>
      9. <title>{GET|$settings.chatname} - Profil von {GET|$user_information.nick}</title>
      10. <script src="general.js" type="text/javascript"></script>
      11. <script type="text/javascript">
      12. //<![CDATA[
      13. function send(text)
      14. {
      15. if (window.opener && !opener.closed)
      16. opener.sendText(text, 1);
      17. }
      18. function sendMessage()
      19. {
      20. var text = document.inputForm.text.value;
      21. document.inputForm.text.value = '';
      22. send('/msg {GET_JS|$user_information.nick} ' + text)
      23. }
      24. //]]>
      25. </script>
      26. </head>
      27. <body onload="autosize()">
      28. <p>
      29. <strong>Allgemeines</strong>
      30. {IF|permission(profile_seecommandpermissions)}
      31. | <a href="{GET|$runtime.completeurl};template=profile_commandpermissions;username={GET_ESCAPED|$user_information.name}">Befehlsrechte</a>
      32. {ENDIF}
      33. {IF|permission(profile_seepermissions)}
      34. | <a href="{GET|$runtime.completeurl};template=profile_permissions;username={GET_ESCAPED|$user_information.name}">Zugriffsrechte</a>
      35. {ENDIF}
      36. </p>
      37. <table class="bordered1" width="100%" cellspacing="0">
      38. <tr>
      39. <th colspan="2">
      40. Profil von {GET|$user_information.nick}
      41. {IF|$user_information.online}
      42. (Online{IF|$user_information.away}, gerade abwesend{ENDIF})
      43. {ELSE}
      44. (Offline)
      45. {ENDIF}
      46. </th>
      47. </tr>
      48. <tr>
      49. <td><strong>Herz :</strong></td>
      50. <td>{IF|$user_information.hearts}
      51. {FOREACH|$user|$hearts}
      52. {IF|$user}
      53. <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>
      54. {ELSE}
      55. <font title="Ein gel&ouml;schter User hat {GET|$user_information.nick} ein Herz geschenkt.">{IMAGE|hearts}</font>
      56. {ENDIF}
      57. {ENDFOR}
      58. {ENDIF}
      59. </font></td>
      60. <table class="bordered1" width="100%" cellspacing="0">
      61. <tr>
      62. <td><strong>Rosen :</strong></td>
      63. <td>{IF|$user_information.rose}
      64. {FOREACH|$user|$rose}
      65. {IF|$user}
      66. <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>
      67. {ELSE}
      68. <font title="Ein gel&ouml;schter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
      69. {ENDIF}
      70. {ENDFOR}
      71. {ENDIF}
      72. </font></td>
      73. </tr>
      74. <tr>
      75. <td><strong>Punkte :</strong></td>
      76. <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}
      77. </font></td>
      78. {IF|$user_information.away and $user_information.away ne 1}
      79. <tr>
      80. <td><strong>Abwesenheitsgrund:</strong></td>
      81. <td>{GET|$user_information.away}</td>
      82. </tr>
      83. {ENDIF}
      84. <tr>
      85. <td><strong>Nickname:</strong></td>
      86. <td>{GET|$user_information.nick}</td>
      87. </tr>
      88. <tr>
      89. <td><strong>Status:</strong></td>
      90. <td>{GROUPNAME|$user_information.group}</td>
      91. </tr>
      92. {IF|$user_information.online and $user_information.tempgroup!=$user_information.group}
      93. <tr>
      94. <td><strong>Vor&uuml;bergehend:</strong></td>
      95. <td>{GROUPNAME|$user_information.tempgroup}</td>
      96. </tr>
      97. {ENDIF}
      98. <tr>
      99. <td><strong>Farbe:</strong></td>
      100. <td><font color="{GET|$user_information.color}">{GET|$user_information.color}</font></td>
      101. </tr>
      102. {IF|$user_information.email}
      103. {IF|!$user_information.privateemail or permission(profile_seeemail)}
      104. <tr>
      105. <td><strong>E-Mail:</strong></td>
      106. <td><a href="mailto:{GET|$user_information.email}">{GET|$user_information.email}</a></td>
      107. </tr>
      108. {ENDIF}
      109. {ENDIF}
      110. {IF|$user_information.gender}
      111. <tr>
      112. <td><strong>Geschlecht:</strong></td>
      113. <td>{IIF|$user_information.gender==1|m&auml;nnlich|weiblich}</td>
      114. </tr>
      115. {ENDIF}
      116. {IF|$user_information.birth_date}
      117. <tr>
      118. <td><strong>Geburtsdatum:</strong></td>
      119. <td>{GETSTDDATE|$user_information.birth_date}</td>
      120. </tr>
      121. {ENDIF}
      122. {IF|$user_information.homepage}
      123. <tr>
      124. <td><strong>Website:</strong></td>
      125. <td><a href="{GET|$settings.urls.chaturl}?template=dereferer;language={GET|$runtime.language};url={GET_ESCAPED|$user_information.homepage}" target="_blank" title="Homepage &ouml;ffnen">{IF|$user_information.homepagetitle}{GET|$user_information.homepagetitle}{ELSE}{GET|$user_information.homepage}{ENDIF}</a></td>
      126. </tr>
      127. {ENDIF}
      128. {IF|permission(profile_seeregistration)}
      129. <tr>
      130. <td><strong>Registrierung:</strong></td>
      131. <td>{GETDATETIME|$user_information.registration}</td>
      132. </tr>
      133. {ENDIF}
      134. {IF|permission(profile_seelastlogin)}
      135. <tr>
      136. <td><strong>Letzter Login:</strong></td>
      137. <td>{GETDATETIME|$user_information.lastlogin}</td>
      138. </tr>
      139. {ENDIF}
      140. {IF|$user_information.online}
      141. <tr>
      142. <td><strong>Raum:</strong></td>
      143. <td><a href="#room" onclick="send('/room {GET_JS|$user_information.room}');return false;" title="Springe zum Raum">{GET|$user_information.room}</a></td>
      144. </tr>
      145. {IF|permission(profile_seepullmode)}
      146. <tr>
      147. <td><strong>Sicherer Modus:</strong></td>
      148. <td>{IIF|$user_information.pull|ja|nein}</td>
      149. </tr>
      150. {ENDIF}
      151. {ENDIF}
      152. {IF|permission(profile_seeip)}
      153. <tr>
      154. <td><strong>Browser:</strong></td>
      155. <td>{GET|$user_information.browser}</td>
      156. </tr>
      157. <tr>
      158. <td><strong>IP:</strong></td>
      159. <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>
      160. </tr>
      161. {IF|$user_information.forwardedfor}
      162. <tr>
      163. <td><strong>Client-IP:</strong></td>
      164. <td>{GET|$user_information.forwardedfor}</td>
      165. </tr>
      166. {ENDIF}
      167. {ENDIF}
      168. {IF|$user_information.name ne $current_user.name}
      169. <tr>
      170. <td><strong>Privatnachricht senden:</strong></td>
      171. <td>
      172. <form name="inputForm" action="javascript:void(0)" onsubmit="sendMessage();return false;">
      173. <input type="text" name="text" size="13" maxlength="255"/>
      174. <input type="submit" value="Abschicken"/>
      175. </form>
      176. </td>
      177. </tr>
      178. {ENDIF}
      179. {IF|permission(profile_modify) and $current_user.tempgroup>$user_information.group or $user_information.name eq $current_user.name}
      180. <tr><td colspan="2">&nbsp;</td></tr>
      181. <tr>
      182. <td colspan="2" align="center">
      183. <form>
      184. <input type="button" value="Bearbeiten" onclick="document.location.href='{GET_JS|$runtime.completeurl};template=editprofile;username={GET_ESCAPED|$user_information.name}';return false"/>
      185. {IF|$user_information.group < 10}
      186. &nbsp;
      187. <input type="button" value="Benutzer l&ouml;schen" onclick="if (confirm('Sind Sie sicher, da&szlig; Sie diesen Account l&ouml;schen wollen? Beachten Sie, da&szlig; diese Operation nicht r&uuml;ckg&auml;ngig gemacht werden kann!')) document.location.href='{GET_JS|$runtime.completeurl};action=deleteuser;username={GET_ESCAPED|$user_information.name}';return false"/>
      188. {ENDIF}
      189. </form>
      190. </td>
      191. </tr>
      192. {ENDIF}
      193. </table>
      194. {IF|$user_information.online and $user_information.tempgroup<=0}
      195. {IF|permission(command.gag) or permission(command.kick)}
      196. <table class="bordered1" width="100%" cellspacing="0" style="margin-top: 15px;">
      197. <tr>
      198. <th colspan="2">Admin-Funktionen</th>
      199. </tr>
      200. {IF|permission(command.gag)}
      201. <tr>
      202. <td align="center"><a href="#gag" onclick="send('/gag {GET_JS|$user_information.nick}');return false;" title="/gag">Knebeln</a></td>
      203. </tr>
      204. {ENDIF}
      205. {IF|permission(command.kick)}
      206. <tr>
      207. <td align="center"><a href="#kick" onclick="send('/kick {GET_JS|$user_information.nick}');return false;" title="/kick">Kicken</a></td>
      208. </tr>
      209. {ENDIF}
      210. </table>
      211. {ENDIF}
      212. {ENDIF}
      213. <p align="center" style="margin-bottom: 0px;">
      214. <a href="javascript:window.close()">Fenster schlie&szlig;en</a>
      215. </p>
      216. </body>
      217. </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

      1. <tr>
      2. <td><strong> Rosen:</strong></td>
      3. <td>
      4. <a href="{GET|$runtime.completeurl};template=rose;username={GET_JS|$user_information.name}">Du wolle Rose verschenken?</a><br>
      5. </td>
      6. </tr>{ENDIF}{IF|$user_information.rose}
      7. <tr><td><strong> Rosen:</strong></td>
      8. <td colspan=2>
      9. {FOREACH|$user|$rose}
      10. {IF|$user}
      11. <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>
      12. {ELSE}
      13. <font title="Ein gel&ouml;schter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
      14. {ENDIF}
      15. {ENDFOR}
      16. </td>
      17. </tr>

      wenn ich mich nicht verlesen habe sieht deiner etwas anderst aus...

      Quellcode

      1. <tr>
      2. <td><strong>Rosen :</strong></td>
      3. <td>{IF|$user_information.rose}
      4. {FOREACH|$user|$rose}
      5. {IF|$user}
      6. <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>
      7. {ELSE}
      8. <font title="Ein gel&ouml;schter User hat {GET|$user_information.nick} eine Rose geschenkt.">{IMAGE|rose}</font>
      9. {ENDIF}
      10. {ENDFOR}
      11. {ENDIF}
      12. </font></td>
      13. </tr>


      Also meine version funktioniert ohne Probleme.

      LG: Speedy.

      Keine mehr da....