Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0
Verfasst: 27.10.2009 18:18
Naböönd ,
okay dank dir
-ans einbauen mach-
Grueße!
okay dank dir

Grueße!
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
<!-- IF THANKS_ENABLE and not S_IS_LOCKED -->
<!-- IF postrow.S_FIRST_POST and not postrow.S_GIVE_THANKS and not postrow.S_IS_OWN_POST --><li class="thanks-icon"><a href="{postrow.U_THANKS}" title="{L_THANKS1}"><span>{L_THANKS1}</span></a></li><!-- ENDIF --><!-- ENDIF -->
Code: Alles auswählen
Allgemeiner Fehler
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
SQL
SELECT topic_status FROM phpbb_topics WHERE topic_id =
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: thanks.php
LINE: 46
CALL: dbal_mysqli->sql_query()
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /thanks.php on line 45: Undefined variable: topic_id
Code: Alles auswählen
ALTER TABLE `phpbb_thanks` ADD `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0';
Code: Alles auswählen
Ihr SQL-Befehl wurde erfolgreich ausgeführt. ( die Abfrage dauerte 0.2148 sek. )
ALTER TABLE `phpbb_thanks` ADD `topic_id` mediumint(8) unsigned NOT NULL DEFAULT '0'
und:Allgemeiner Fehler
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
SQL
SELECT topic_status FROM phpbb_topics WHERE topic_id =
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: thanks.php
LINE: 46
CALL: dbal_mysqli->sql_query()
Bleiben leider , auch das Problem mit dem Button ;/[phpBB Debug] PHP Notice: in file /thanks.php on line 45: Undefined variable: topic_id
Muss ich das auch einbauen wenn ich vorerst den Hide BB_Code nicht nutze ?bzw. diese Änderungen http://nationsofmetal.na.funpic.de/foru ... p=503#p503 nicht (oder nicht vollständig) ausgeführt.
Code: Alles auswählen
$post_id = request_var('p', 0);
Code: Alles auswählen
$topic_id = request_var('t', 0);
Code: Alles auswählen
'post_id' => $post_id,
Code: Alles auswählen
'topic_id' => $topic_id,
Code: Alles auswählen
<!-- IF THANKS_ENABLE and not S_IS_LOCKED -->
<!-- IF postrow.S_FIRST_POST and not postrow.S_GIVE_THANKS and not postrow.S_IS_OWN_POST --><li class="thanks-icon"><a href="{postrow.U_THANKS}" title="{L_THANKS1}"><span>{L_THANKS1}</span></a></li><!-- ENDIF --><!-- ENDIF -->
Code: Alles auswählen
<!-- IF S_USER_LOGGED_IN -->
<!-- IF postrow.S_FIRST_POST and not postrow.S_GIVE_THANKS and not postrow.S_IS_OWN_POST --><!-- IF THANKS_ENABLE and not S_IS_LOCKED --><li class="thanks-icon"><a href="{postrow.U_THANKS}" title="{L_THANKS1}"><span>{L_THANKS1}</span></a></li><!-- ENDIF --><!-- ENDIF --><!-- ENDIF -->