Seite 1 von 3

dringend hilfe bei mod/sql

Verfasst: 31.01.2005 19:26
von Eves21
Hallo ich installiere gerade das
Topic calendar 1.0.1

ich habe alles ohne Hilfe hinbekommen, aber das da unten,wie mache ich das? (bin nicht ganz fit :P )

Danke


#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_topics ADD topic_calendar_time INT(11);
ALTER TABLE phpbb_topics ADD topic_calendar_duration INT(11);
ALTER TABLE phpbb_topics ADD INDEX (topic_calendar_time);

ALTER TABLE phpbb_auth_access ADD auth_cal TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_forums ADD auth_cal TINYINT(2) DEFAULT '0' NOT NULL;
UPDATE phpbb_auth_access SET auth_cal = auth_sticky;
UPDATE phpbb_forums SET auth_cal = auth_sticky;
#
#-----[ SQL ]-------------------------------------------------
#
# This part is optional : do it only if you want your users to be able to choose their setup
# if you want so, you'll have to install the MOD-mods_settings mod included in the pack
#
ALTER TABLE phpbb_users ADD user_calendar_display_open TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_header_cells TINYINT(1) DEFAULT '7' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_week_start TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_nb_row TINYINT(2) UNSIGNED DEFAULT '5' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_birthday TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_forum TINYINT(1) DEFAULT '1' NOT NULL;

Verfasst: 31.01.2005 19:35
von Mario Siebert
http://www.phpbb.de/doku/kb/artikel.php?artikel=122 (siehe "SQL ausführen")

Grüße Mario

Verfasst: 31.01.2005 20:33
von Eves21
ich habe jetzt zwei Probleme

erstens zeigt kein einzigen Beitrag im Forum an.

wenn ich einen Beitrag öffne/sehen will steht dieser Fehler:

----
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 ' t.topic_first_post_id, t.topic_calendar_time, t.topic_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 FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 15 AND f.forum_id = t.forum_id

Line : 169
File : /srv/www/htdocs/web44/html/viewtopic.php

___

Der Kalendar an sich ist da aber, bearbeiten kann man es nicht und im AP
ist nur ein Button dazugekommen = Configuration+ heisst es und leider steht dort
Template->make_filename(): Error - file does not exist

Kann mir jemand weiterhelfen?
Danke

Verfasst: 31.01.2005 20:42
von XtC
Das schon in die DB eingefügt??

Code: Alles auswählen

#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_topics ADD topic_calendar_time INT(11);
ALTER TABLE phpbb_topics ADD topic_calendar_duration INT(11);
ALTER TABLE phpbb_topics ADD INDEX (topic_calendar_time);

ALTER TABLE phpbb_auth_access ADD auth_cal TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_forums ADD auth_cal TINYINT(2) DEFAULT '0' NOT NULL;
UPDATE phpbb_auth_access SET auth_cal = auth_sticky;
UPDATE phpbb_forums SET auth_cal = auth_sticky;
#
#-----[ SQL ]-------------------------------------------------
#
# This part is optional : do it only if you want your users to be able to choose their setup
# if you want so, you'll have to install the MOD-mods_settings mod included in the pack
#
ALTER TABLE phpbb_users ADD user_calendar_display_open TINYINT(1) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_header_cells TINYINT(1) DEFAULT '7' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_week_start TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_nb_row TINYINT(2) UNSIGNED DEFAULT '5' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_birthday TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_calendar_forum TINYINT(1) DEFAULT '1' NOT NULL;

Verfasst: 31.01.2005 20:47
von rabbit
Template->make_filename(): Error - file does not exist
deutet darauf hin, dass die .tpl-datei nicht an ihrem platz ist. ;)

und wenn du dann noch deine viewtopic.php mal als .txt-datei hier verlinken könntest?
KB:datei

Verfasst: 31.01.2005 22:04
von rabbit
suche:

Code: Alles auswählen

//-- mod : calendar -------------------------------------------------------------------------------- 
// here we added 
// , t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration 
//-- modify 
$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 . " 


FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " 
WHERE $join_sql 
AND f.forum_id = t.forum_id 
$order_sql"; 
//-- fin mod : calendar ---------------------------------------------------------------------------- 
und ersetze mit:

Code: Alles auswählen

//-- mod : calendar -------------------------------------------------------------------------------- 
// here we added 
// , t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration 
//-- modify 
$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 . " 


FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " 
WHERE $join_sql 
AND f.forum_id = t.forum_id 
$order_sql"; 
//-- fin mod : calendar ---------------------------------------------------------------------------- 

Verfasst: 31.01.2005 22:05
von Eves21
Hallo

hier ist Sie.


[url]http:///viewtopic-ttt.txt[/url]

Danke


ach ok,mach ich sofort :grin:

Verfasst: 31.01.2005 22:18
von Eves21
Hallo

im AP steht jetzt bei --> Configuration+ die Fehlermeldung

Fatal error: Call to undefined function: mods_settings_get_lang() in /srv/www/htdocs/web44/html/admin/admin_board_extend.php on line 326

so viele Zeilen hat die o.g. Datei gar nicht,und ich weiss nicht wo der liegt.Bearbeiten kann man dies jetzt nicht :cry:


(Danke Rabbit, meine Beiträge sind wieder da :) )

Verfasst: 01.02.2005 16:13
von Eves21
huhu

kann mir jemand helfen :oops:

Verfasst: 01.02.2005 16:39
von rabbit
die sprach-datei wird nicht an ihrem platz sein... ;)