problem med "topic calendar"

Frågor kring MODdar (modifikationer) för phpBB 2.0.x.

Moderatorer: Supportgrupp, Moderatorgrupp

Gonte
Medlem
Medlem
Inlägg: 16
Blev medlem: 2005-02-23 17:43
Svar: 0

problem med "topic calendar"

Inlägg av Gonte »

installerade nyss "topic calendar"http://forum.lut.nu, å allting gick bra, trodde jag...

När jag öppnade forumet å försökte skriva ett inlägg visades

Kod: Markera allt

Parse error: parse error, unexpected T_STRING in /home/lut/domains/lut.nu/public_html/forum/posting.php on line 421
Jag har tittat igenom sidan å gämfört med instruktionerna till topic calendar utan att hitta något fel, men jag äär inte alltför bra på php-kodning så jag undrar om det finns nån vänlig själ där ute som kan hjälpa till...

Om det underlättar så finns här ett temporärt ftp-lösen:
Server: ftp.lut.nu
User: forum@lut.nu
Pass: lut
All hjälp är uppskattad...
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Hej,

leta upp modd-instruktionerna för denna part:

Kod: Markera allt

//-- mod : calendar --------------------------------------------------------------------------------
// here we added
//	 || (!empty($is_auth_type_cal) && !$is_auth[$is_auth_type_cal])
//-- modify
if ( !$is_auth[$is_auth_type]  || (!empty($is_auth_type_cal) && !$is_auth[$is_auth_type_cal]) )'
//-- fin mod : calendar ----------------------------------------------------------------------------
och lägg upp dem här.

/Holger
Holger Gremminger
Ingen support via PM!
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Ah!

Leta upp

Kod: Markera allt

if ( !$is_auth[$is_auth_type]  || (!empty($is_auth_type_cal) && !$is_auth[$is_auth_type_cal]) )'
TA BORT ' i slutet av raden!

/Holger
Holger Gremminger
Ingen support via PM!
Gonte
Medlem
Medlem
Inlägg: 16
Blev medlem: 2005-02-23 17:43
Svar: 0

Inlägg av Gonte »

tack, nu funkar det så långt, men jag måste ha gjort ett antal missar när jag installerade den här modden, nu funkar det att skriva ett inlägg, men direkt när man postar det så visas

Kod: Markera allt

Warning: Wrong parameter count for str_replace() in /home/lut/domains/lut.nu/public_html/forum/posting.php on line 670

Warning: Cannot modify header information - headers already sent by (output started at /home/lut/domains/lut.nu/public_html/forum/posting.php:670) in /home/lut/domains/lut.nu/public_html/forum/posting.php on line 707

Warning: Cannot modify header information - headers already sent by (output started at /home/lut/domains/lut.nu/public_html/forum/posting.php:670) in /home/lut/domains/lut.nu/public_html/forum/includes/page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at /home/lut/domains/lut.nu/public_html/forum/posting.php:670) in /home/lut/domains/lut.nu/public_html/forum/includes/page_header.php on line 478

Warning: Cannot modify header information - headers already sent by (output started at /home/lut/domains/lut.nu/public_html/forum/posting.php:670) in /home/lut/domains/lut.nu/public_html/forum/includes/page_header.php on line 479
högst upp på sidan, ovanför meddelandet "ditt meddelande har sparats"...



och när man vill visa en tråd så får man bara se:

Kod: Markera allt

Fel 
  
Could not obtain topic information

DEBUG MODE

SQL Error : 1064 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 '//-- fin mod : calendar ---------------------------------------

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, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration, 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(p2.post_id) AS prev_posts //-- fin mod : calendar ---------------------------------------------------------------------------- FROM phpbb_topics t, phpbb_forums f, phpbb_posts p, phpbb_posts p2 WHERE p.post_id = 3 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 3 AND f.forum_id = t.forum_id GROUP BY p.post_id, 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 ORDER BY p.post_id ASC

Line : 178
File : viewtopic.php 
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Fixa först detta:

Kod: Markera allt

Fel 
  
Could not obtain topic information 

DEBUG MODE 

SQL Error : 1064 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 '//-- fin mod : calendar --------------------------------------- 

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, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration, 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(p2.post_id) AS prev_posts //-- fin mod : calendar ---------------------------------------------------------------------------- FROM phpbb_topics t, phpbb_forums f, phpbb_posts p, phpbb_posts p2 WHERE p.post_id = 3 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 3 AND f.forum_id = t.forum_id GROUP BY p.post_id, 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 ORDER BY p.post_id ASC 

Line : 178 
File : viewtopic.php 
Kolla din viewtopic.php
Sök efter

Kod: Markera allt

$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, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration, 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 . "
//-- fin mod : calendar ----------------------------------------------------------------------------
Ta bort

Kod: Markera allt

//-- fin mod : calendar ----------------------------------------------------------------------------
Holger Gremminger
Ingen support via PM!
Gonte
Medlem
Medlem
Inlägg: 16
Blev medlem: 2005-02-23 17:43
Svar: 0

Inlägg av Gonte »

bra,nu går det iallafall att skriva och läsa inlägg, problemen som kvarstår är:

1. Felmeddelanden när inlägget postas
2. Inlägg som har fått datum och tid visas ändå inte i kalendern...
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Warning: Cannot modify header information - headers already sent by
Lösning KAN finnas här:
http://www.phpbb-se.com/forum/viewtopic.php?t=814
Holger Gremminger
Ingen support via PM!
Gonte
Medlem
Medlem
Inlägg: 16
Blev medlem: 2005-02-23 17:43
Svar: 0

Inlägg av Gonte »

verkar tyvärr inte lösa problemet i det här fallet, har kollat de aktuella filerna utan att hitta rader eller tecken efter ?>
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Du har inte följt instruktionerna riktigt
Hitta

Kod: Markera allt

				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username, $topic_calendar_time, $topic_calendar_duration), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
Ersätt med

Kod: Markera allt

				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_calendar_time, $topic_calendar_duration);
Holger Gremminger
Ingen support via PM!
Gonte
Medlem
Medlem
Inlägg: 16
Blev medlem: 2005-02-23 17:43
Svar: 0

Inlägg av Gonte »

Tack för hjälpen, nu verkar allt funka finfint!

Verkar som om jag borde skärpa mig lite nästa gång jag installerar en mod, så jag verkligen följer instruktionerna, allt blir ju lättare om man gör rätt från början...
Användarens profilbild
Holger
Support - Ledare
Support - Ledare
Inlägg: 6561
Blev medlem: 2004-06-09 09:32
Svar: 1

Inlägg av Holger »

Jo, man måste hålla koll på alla ) och ;

:wink:
Holger Gremminger
Ingen support via PM!
Skriv svar

Vilka är online

Användare som besöker denna kategori: 1 och 0 gäst