thx-Plugin: Im Profil anzeigen? - Druckversion +- MyBB.de Forum (https://www.mybb.de/forum) +-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html) +--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html) +--- Thema: thx-Plugin: Im Profil anzeigen? (/thread-8224.html) |
RE: thx-Plugin: Im Profil anzeigen? - mP765 - 08.01.2008 Ein Error kommt jetzt nicht mehr. Allerdings wird nun hinter "Bedankungen:" nichts angezeigt. Mal eine Frage dazu: Ich habe mal Testweise mit der User-ID 1 dem Benutzer mit der ID 3 für einen Beitrag gedankt. Bei uid steht nun also meine ID und bei adduid die des Verfassers. Zitat: vollständige Textfelder txid uid adduid pid tid timeIch habe zwar nicht viel Ahnung davon, aber müsste dann nicht in deinem Code auch mal adduid vorkommen? mfg mP765 RE: thx-Plugin: Im Profil anzeigen? - StefanT - 08.01.2008 Kannst du jetzt mal testen? Ich war von Daves Code ausgegangen. RE: thx-Plugin: Im Profil anzeigen? - mP765 - 08.01.2008 Vielen vielen Dank! Das funktioniert jetzt. Aber wie bekomme ich das ins Profil? So, wie ichs probiert habe (wie gesagt, ich hab keine Ahnung und hab nur mal so rumprobiert) gehts nicht: PHP-Code: $thxsquerypro = $db->query("SELECT COUNT(*) AS count FROM ".TABLE_PREFIX."thx WHERE adduid=".$memberprofile['uid']); mfg mP765 RE: thx-Plugin: Im Profil anzeigen? - StefanT - 08.01.2008 Für die Ausgabe im Profil: Öffne die inc/functions_post.php und suche nach: eval("\$profile = \"".$templates->get("member_profile")."\";");[/php] und füge davor PHP-Code: $thxsquery = $db->query("SELECT COUNT(*) AS count FROM ".TABLE_PREFIX."thx WHERE adduid=".$memprofile['uid']); Nun öffne im ACP dein member_profile Template und {$thxs} an der richtigen Stelle. RE: thx-Plugin: Im Profil anzeigen? - mP765 - 08.01.2008 Hallo, sicher, dass das in inc/functions_post.php steht? Ich finds nämlich nicht... mfg mP765 RE: thx-Plugin: Im Profil anzeigen? - Dave - 08.01.2008 Die Zeile befindet sich in der member.php, in Zeiel 1358. RE: thx-Plugin: Im Profil anzeigen? - mP765 - 08.01.2008 Vielen Dank euch beiden für eure Engelsgeduld Funktioniert nun beides einwandfrei. Es ist doch kein Problem, dass die Variable 2x vorkommt, oder? mfg mP765 RE: thx-Plugin: Im Profil anzeigen? - Dave - 09.01.2008 Nein, da sie an vollkommen unterschiedlichen Stellen benutzt wird. RE: thx-Plugin: Im Profil anzeigen? - mP765 - 09.01.2008 OK. Dann nochmals Danke für eure Hilfe. mfg mP765 RE: thx-Plugin: Im Profil anzeigen? - Stocki - 09.07.2008 Hi, mal eine Frage..kann man die Anzahl der Danksagungen auch bei den Beiträgen mit anzeigen lassen...also Unter Status z.B.? |