file attachment mod
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
file attachment mod
Een beetje overmoedig geworden (gezien mijn kennis van zaken) heb ik geprobeerd de file attachment mod te installeren.: http://www.phpbbhacks.com/download/251
Op het eerste gezicht geen fouten, niet op de indexpagina en niet in het ACP. Maar wanneer ik nu een bestaande topic wil openen krijg ik een foutmelding waarvan ik niet weet hoe ik dat aan moet pakken:
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'attach_setup_viewtopic_auth(, SELECT * FROM phpbb_config); ' at line 5
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 35 AND f.forum_id = t.forum_id attach_setup_viewtopic_auth(, SELECT * FROM phpbb_config);
Line : 156
File : viewtopic.php
Een link naar dit bestand heb ik hier geplaatst: http://members.home.nl/divydutchess/ bedankt alvast.
Op het eerste gezicht geen fouten, niet op de indexpagina en niet in het ACP. Maar wanneer ik nu een bestaande topic wil openen krijg ik een foutmelding waarvan ik niet weet hoe ik dat aan moet pakken:
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'attach_setup_viewtopic_auth(, SELECT * FROM phpbb_config); ' at line 5
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 35 AND f.forum_id = t.forum_id attach_setup_viewtopic_auth(, SELECT * FROM phpbb_config);
Line : 156
File : viewtopic.php
Een link naar dit bestand heb ik hier geplaatst: http://members.home.nl/divydutchess/ bedankt alvast.
Laatst gewijzigd door stormyweather op 02 jul 2005, 14:42, 1 keer totaal gewijzigd.
Probeer eens:
moet zijn
Code: Selecteer alles
AND f.forum_id = t.forum_id
attach_setup_viewtopic_auth($order_sql, $sql);
$order_sql";
Code: Selecteer alles
AND f.forum_id = t.forum_id
$order_sql";
attach_setup_viewtopic_auth($order_sql, $sql);
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
Ben er nog verder mee aan de slag gegaan en het werkt allemaal boven verwachting. Er is echter één ding dat mij verraste. Vorige week heb ik ik de update van 2.0.15 naar 2.0.16 met succes uitgevoerd en na de installatie van deze file attachment mod ben ik weer terug bij 2.0.15!
Ik moet er bij vertellen dat deze mod "compatible" is met 2.0.15. Daar wringt waarschijnlijk de schoen. Wie kan me adviseren wat te doen, opnieuw de update naar 2.0.16 uitvoeren? Werkt de file attachment dan nog wel? Kan ik misschien nog iets anders proberen?
Ik moet er bij vertellen dat deze mod "compatible" is met 2.0.15. Daar wringt waarschijnlijk de schoen. Wie kan me adviseren wat te doen, opnieuw de update naar 2.0.16 uitvoeren? Werkt de file attachment dan nog wel? Kan ik misschien nog iets anders proberen?
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
Nee, ik heb de premodded bestanden niet gebruikt omdat ik al andere mods had geinstalleerd. Zojuist kreeg ik de ingeving om alleen nog eens deze query te draaien:
UPDATE phpbb_config
SET config_value = '.0.16'
WHERE config_name = 'version'
En... wat denk je? Ik heb 2.0.16 weer terug en je hebt gelukkig gelijk: de mod werkt nog steeds. Klaaristie :thumb:
UPDATE phpbb_config
SET config_value = '.0.16'
WHERE config_name = 'version'
En... wat denk je? Ik heb 2.0.16 weer terug en je hebt gelukkig gelijk: de mod werkt nog steeds. Klaaristie :thumb:
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer:
ai, een paar dagen leek het prima te draaien maar nu krijg ik opnieuw een algemene foutmelding wanneer ik een topic wil openen:
Could not obtain topic information
DEBUG MODE
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 37 AND f.forum_id = t.forum_id
Line : 155
File : viewtopic.php
Een link naar dit bestand heb ik hier geplaatst: http://members.home.nl/divydutchess/
Tijdens de analyse van de tabellen in de database trof ik ook twee waarschuwingen aan, één in attachments en één in sessions over de index sleutel. Als ik deze repareer en optimalizeer lijkt het in orde te zijn, maar wanneer ik dan opnieuw analyseer verschijnt dezelfde waarschuwing weer. Die heb ik ook op http://members.home.nl/divydutchess/ gezet. Alvast bedankt voor je aandacht en helemáál als dat leidt tot een oplossing.
Could not obtain topic information
DEBUG MODE
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 37 AND f.forum_id = t.forum_id
Line : 155
File : viewtopic.php
Een link naar dit bestand heb ik hier geplaatst: http://members.home.nl/divydutchess/
Tijdens de analyse van de tabellen in de database trof ik ook twee waarschuwingen aan, één in attachments en één in sessions over de index sleutel. Als ik deze repareer en optimalizeer lijkt het in orde te zijn, maar wanneer ik dan opnieuw analyseer verschijnt dezelfde waarschuwing weer. Die heb ik ook op http://members.home.nl/divydutchess/ gezet. Alvast bedankt voor je aandacht en helemáál als dat leidt tot een oplossing.

Vervang
eens met
Code: Selecteer alles
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
attach_setup_viewtopic_auth($order_sql, $sql);
{
message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
}
Code: Selecteer alles
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
attach_setup_viewtopic_auth($order_sql, $sql);
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
}
-
- Berichten: 296
- Lid geworden op: 18 mar 2005, 18:10
- Locatie: Groningen
- Contacteer: