Seite 1 von 2

ThemenTyp (Topic Type) - Funktion erweitern

Verfasst: 26.12.2005 02:06
von Mao
Hallo,

ich möchte gerne die Möglichkeit ein Posting als "Ankündigung" festzulegen erweitern und zwar als "Information".

Ich möchte also die Markierungen "Wichtig" und "Ankündung" um einen Punkt erweiter, der "Information" heißen soll und sich genau gleich verhält, wie eine Ankündung (also auf jeder Seite ganz oben erscheint).

Es wäre nett, wenn mir jemand sagen kann, wie ich das mache.

Verfasst: 26.12.2005 02:29
von Markus67
Hi ...

da sollte das hier was für dich sein :wink:
Advanced Topic Types
Allows you to add and manage custom topic types.

oder der hier ....

Add Topic Types
Allows you to fully integrate new topic types (similar to Announcements, Sticky, Poll, etc.) into your phpBB.

Markus

Verfasst: 26.12.2005 16:20
von Mao
Vielen Dank!

Ich hab nun mein erstes MOD überhaupt installiert :-)
Das Advanced Topic Types.

Nun wollte ich im ACP das neue Mod konfigurieren und dann erscheint folgendes:

----------------------------------
Could not get topic type info

DEBUG MODE

SQL Error : 1146 Table 'db119168787.phpbb_topic_add_type' doesn't exist

SELECT * FROM phpbb_topic_add_type WHERE topic_type_name <> 'announce' AND topic_type_name <> 'sticky' ORDER BY topic_type_order DESC

Line : 41
File : admin_topic_type.php
----------------------------------

Was habe ich falsch gemacht? :cry:

Verfasst: 26.12.2005 16:28
von kjwargan
Servus,
hast du das ausgeführt?

Code: Alles auswählen

db_update.php
Datei ausführen:

Code: Alles auswählen

Die Datei db_update.php in deinen Root kopieren, wo die config.php ist! Dann im Browser das ausführen: http://deineseite/db_update.php

Verfasst: 26.12.2005 17:10
von Mao
Ups... ne, hatte ich nicht gemacht. Stand ja auch nicht in der Anleitung drin.

Habs jetzt aber ausgeführt und es kam die Meldung:

-----------------------
This list is a result of the SQL queries needed for this Mod

Advanced Topic Type

[Added/Updated] line: 1 , CREATE TABLE phpbb_topic_add_type ( `topic_type_name` varchar(64) NOT NULL default '', `topic_type_id` tinyint(4) NOT NULL default '0', `topic_type_auth` tinyint(1) NOT NULL default '-1', `topic_type_active` tinyint(1) NOT NULL default '0', `topic_type_order` tinyint(3) NOT NULL default '0', `topic_type_color` varchar(6) NOT NULL default '0', `topic_type_image` varchar(255) default NULL, `topic_type_image_new` varchar(255) default NULL )
[Added/Updated] line: 2 , INSERT INTO phpbb_topic_add_type VALUES ('announce', 0, -1, 0, -1, 'FF0000', '', '')
[Added/Updated] line: 3 , INSERT INTO phpbb_topic_add_type VALUES ('sticky', 0, -1, 0, -1, 'FAD400', '', '')


[Added/Updated] line: 4 , ALTER TABLE phpbb_topics ADD topic_type_active TINYINT(1) NOT NULL DEFAULT '0' AFTER topic_type
----------------------------------

Und im ACP erscheint, wenn ich unter Admind topic type auf Konfigurieren gehe folgendes:

[ externes Bild ]

Da is also noch irgendwas falsch :-(
Kann es sein, weil ich ein deutsches SubSilver hab und änderungen in den englischen Images machen musste?
Ich hab keine Ahnung!? :cry:

Verfasst: 26.12.2005 17:17
von kjwargan
Der Mod-Autor geht davon aus, dass man es weiß, dass diese Datei ausgeführt werden muss :wink:
Jetzt sollte es funktionieren, bei dir

Verfasst: 26.12.2005 17:29
von Mihil
Du hast die geänderten Sprachdateien nicht upgeloadet.

Code: Alles auswählen

-----------------------
This list is a result of the SQL queries needed for this Mod

Advanced Topic Type
[Added/Updated] line: 1 , CREATE TABLE phpbb_topic_add_type ( `topic_type_name` varchar(64) NOT NULL default '', `topic_type_id` tinyint(4) NOT NULL default '0', `topic_type_auth` tinyint(1) NOT NULL default '-1', `topic_type_active` tinyint(1) NOT NULL default '0', `topic_type_order` tinyint(3) NOT NULL default '0', `topic_type_color` varchar(6) NOT NULL default '0', `topic_type_image` varchar(255) default NULL, `topic_type_image_new` varchar(255) default NULL )
[Added/Updated] line: 2 , INSERT INTO phpbb_topic_add_type VALUES ('announce', 0, -1, 0, -1, 'FF0000', '', '')
[Added/Updated] line: 3 , INSERT INTO phpbb_topic_add_type VALUES ('sticky', 0, -1, 0, -1, 'FAD400', '', '')


[Added/Updated] line: 4 , ALTER TABLE phpbb_topics ADD topic_type_active TINYINT(1) NOT NULL DEFAULT '0' AFTER topic_type
----------------------------------
Das ist so in Ordnung. :wink:

Verfasst: 26.12.2005 17:32
von Mao
Kannst du mir sagen, wie ich das genau mache?? .. Ich bin da echt ein totaler Anfänger! :oops:

Wäre sehr nett!

Verfasst: 26.12.2005 17:42
von kjwargan
Du musst die language/lang_german/lang_admin.php auch bearbeiten! Dabei solltest du den text übersetzen!

Verfasst: 26.12.2005 18:06
von Mao
Okay, hab ich gemacht (nur noch nicht übersetzt).

Nun habe ich einen neuen Punkt "Information" erstellt und es sieht so aus:
[ externes Bild ]

Und wenn ich eine Nachricht schreibe, hab ich nun das Problem, daß beim Titel nicht mehr in [Wichtig] oder [Ankündigung] steht.
Wie änder ich das?
Und wie kann ich einstellen, daß bei dem Posting Typ [Information] (das mit dem Titel "infoo" ist so einer) ebenfalls ganz oben erscheint und als Symbol das Dreieck mit dem "i" bekommt?
[ externes Bild ]