Seite 79 von 107

Verfasst: 09.01.2006 17:39
von hackepeter13
kjwargan hat geschrieben:
hackepeter13 hat geschrieben:Wenn du Tabellenblöcke im Portal drin hast, welche nur eingelogte User sehen sollen, dann musst du die Portal.tpl bearbeiten:
Du meinst die portal_body.tpl?
Jupp, sry meinte :wink:

Verfasst: 14.01.2006 12:27
von itsy
Hallo, ich habe nach den Anleitungen die DB-Installationdatei geändert, aber jetzt kommt wenn ich im Adminpanel auf "Konfiguration" klicke, das hier:

phpBB : Kritischer Fehler

Could not query introportalmod information in admin_board

DEBUG MODE

SQL Error : 1146 Table 'usr_web26_1.introportalmod_table' doesn't exist

SELECT * FROM INTROPORTALMOD_TABLE

Line : 73
File : admin_introportalmod.php

An der Datei hab ich nichts geändert und wurde von mir per Hand komplett neu installiert!

Verfasst: 14.01.2006 12:31
von gloriosa
Hallo,
entsprechend dieser Meldung
itsy hat geschrieben:SQL Error : 1146 Table 'usr_web26_1.introportalmod_table' doesn't exist
(siehe dazu auch >>> KB:130 <<< :wink:) bezweifle ich, dass Du die intro_portal_mod_db_install.php gemäß dieser Anweisung

Code: Alles auswählen

FÜHRE DIE DATEI intro_portal_mod_db_install.php AUS DEM FORUMROOT (Hauptverzeichnis Deines Forums) AUS UND LÖSCHE SIE DANACH !!!

Beispiel: http://www.domain.de/phpbb2/intro_portal_mod_db_install.php

RUN THE FILE intro_portal_mod_db_install.php FROM THE FORUMROOT (main-directory of your forum) AND DELETE IT AFTER THAT !!!

Example: http://www.domain.com/phpbb2/intro_portal_mod_db_install.php
ausgeführt und abgearbeitet hast ! :cry:

Verfasst: 14.01.2006 13:45
von itsy
Hallo, ich hab das aber ausgeführt...

Und auch verändert...

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'config.'.$phpEx);
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);


// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management


// Start Restrict to members
if( !$userdata['session_logged_in'] )
{
header("Location: " . append_sid("login.$phpEx?redirect=intro_portal_mod_db_install.$phpEx", true));
exit;
}
// End Restrict to members


// Start User is Admin ?
if ( $userdata['user_level'] == ADMIN )
{
}
else
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}
// End User is Admin ?


echo '<html>
<head>
<title>SQL-DB-Installer - Intro + Portal MOD</title>
</head>
<body>
<h1>SQL-DB-Installer - Intro + Portal MOD</h1>
<hr />';
if (!isset($HTTP_GET_VARS['install'])) {
echo '<a href="?install=1">Please click here | Bitte hier klicken</a>';
}
else {
$queries = array(

// "DROP TABLE phpbb_introportalmod",

"CREATE TABLE phpbb_introportalmod (
  config_name varchar(255) NOT NULL default '',
  config_value text NOT NULL,
  PRIMARY KEY (config_name)
) TYPE=MyISAM;",

"INSERT INTO phpbb_introportalmod VALUES ('config_id', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('modversion', '1.50a')",
"INSERT INTO phpbb_introportalmod VALUES ('introportalmod_disable', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('intro_disable', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('intro_disable_msg', 'Intro derzeit deaktiviert')",
"INSERT INTO phpbb_introportalmod VALUES ('introlasttopics_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('introlasttopics_limit', '10')",
"INSERT INTO phpbb_introportalmod VALUES ('lasttopics_length_intro', '25')",
"INSERT INTO phpbb_introportalmod VALUES ('portal_disable', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('portal_disable_msg', 'Portal derzeit deaktiviert')",
"INSERT INTO phpbb_introportalmod VALUES ('navigation_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('navigationquote_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('lastnewmembers_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('lastnewmembers_limit', '5')",
"INSERT INTO phpbb_introportalmod VALUES ('topposter_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('topposter_limit', '5')",
"INSERT INTO phpbb_introportalmod VALUES ('topposts_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('topposts_limit', '5')",
"INSERT INTO phpbb_introportalmod VALUES ('searchtopics_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('pollbox_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('pollbox_forums', '1,2,3,4,5')",
"INSERT INTO phpbb_introportalmod VALUES ('forumview_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('lasttopics_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('lasttopics_limit', '10')",
"INSERT INTO phpbb_introportalmod VALUES ('lasttopics_length_portal', '25')",
"INSERT INTO phpbb_introportalmod VALUES ('freenet_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('heise_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('whoisonline_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('webmaster_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('partners_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('Partnersitelinks', 'http://www.partner1.de\r\nhttp://www.partner2.de\r\nhttp://www.partner3.de\r\nhttp://www.partner4.de\r\nhttp://www.partner5.de')",
"INSERT INTO phpbb_introportalmod VALUES ('google_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('left_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('center_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('right_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('border_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('fpost_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('fpost_numofnews', '3')",
"INSERT INTO phpbb_introportalmod VALUES ('fpost_forums', '1,2,3,4,5')",
"INSERT INTO phpbb_introportalmod VALUES ('fpost_newslength', '250')",
"INSERT INTO phpbb_introportalmod VALUES ('loginform_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('welcomeuser_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('forumlegend_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('userpostcount_active', '1')",
"INSERT INTO phpbb_introportalmod VALUES ('birthdaymod_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('lastvisitmod_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('chatboxmod_active', '0')",
"INSERT INTO phpbb_introportalmod VALUES ('globalannouncemod_active', '0')",

// "DROP TABLE phpbb_introportalmodnav",

"CREATE TABLE phpbb_introportalmodnav
(link_active tinyint(1) NOT NULL default '1',
link_id mediumint(5) NOT NULL default '0',
link_cat mediumint(5) NOT NULL default '0',
link_sub mediumint(5) NOT NULL default '0',
link_name varchar(60) NOT NULL default '',
link_url varchar(100) NOT NULL default '',
link_level tinyint(1) NOT NULL default '0',
link_level_type tinyint(1) NOT NULL default '0',
KEY link_id (link_id), KEY link_cat (link_cat),
KEY link_sub (link_sub))
TYPE=MyISAM;",

"INSERT INTO phpbb_introportalmodnav VALUES (1, 0, 0, 0, 'Navigation', '', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 0, 0, 1, 'Forum', '', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 1, 0, 1, '\$lang[\'IntroPortalMOD1\']', 'intro.php', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 2, 0, 1, '\$lang[\'IntroPortalMOD2\']', 'portal.php', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 3, 0, 1, '\$lang[\'IntroPortalMOD3\']', 'index.php', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 0, 0, 2, '\$lang[\'Registered_users\']', '', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 4, 0, 3, '\$lang[\'Register\']', 'profile.php?mode=register', -1, 0)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 5, 0, 2, '\$lang[\'Profile\']', 'profile.php?mode=editprofile', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 6, 0, 2, '\$lang[\'Search\']', 'search.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 7, 0, 2, '\$lang[\'Memberlist\']', 'memberlist.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 8, 0, 2, '\$lang[\'FAQ\']', 'faq.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 9, 0, 2, '\$lang[\'Usergroups\']', 'groupcp.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 10, 0, 2, '\$lang[\'Private_Messages\']', 'privmsg.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 11, 0, 2, '\$lang[\'Who_is_Online\']', 'viewonline.php', 0, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 0, 0, 4, '\$lang[\'IntroPortalMOD6\']', '', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 12, 0, 4, '\$lang[\'IntroPortalMOD4\']', 'http://www.phpbb.de', -1, 2)",
"INSERT INTO phpbb_introportalmodnav VALUES (1, 0, 0, 3, '\$lang[\'Guest\']', '', -1, 2)"

);

$success = true;
foreach($queries as $query) {
if (!$db->sql_query($query)) {
echo '<font color="red">An error occurred ! Changes have not been entered successfully !<br /><br />Es Fehler ist aufgetreten ! Änderung nicht erfolgreich eingetragen !</font><br /><br />';
echo mysql_error();
$success = false;
break;
}
}
if ($success) {
echo '<font color="green">DB-Changes have been entered successfully. You should delete this SQL-DB-Installer as soon as possible !<br /><br />DB-Änderung wurde erfolgreich ausgeführt. Du solltest diesen SQL-DB-Installer sobald wie möglich löschen !';
}
}
?>
Das ist die Orginaldatei, mit ausnahme der Include-Änderungen!

Verfasst: 18.01.2006 06:57
von DeliciousCandy
Hi,

ich habe den Intro & Portal Mod installiert und er funktioniert!

Meine Frage is nun (wahrscheinlich schon 1000mal auf den Vorseiten beantwortet^^), wie ich es schaffen kann, dass das Portal beim Forum durchstöbern immer angezeigt wird. Denn sobald man im Forum auf einen Link klickt, kommt man ja in die standardgemäße Foren-Index-Ansicht ohne linke und rechte Spalte!

Würde gern das Portal immer haben und in der Mitte immer nur das jeweils ausgewählte Foren-Thema/Posting!

Wäre für Tipps & Hilfe dankbar!

Andy

Verfasst: 19.01.2006 19:58
von steppie
Hallo ihr alle da draussen ,
kann mir bitte mal einer Helfen . Ich will in meinem Portal die User die Heute online waren untereinander angezeigt bekommen . Wo muß ich was ändern ?

Verfasst: 20.01.2006 20:46
von steppie
hat keiner eine Idee für mich , wäre echt super Dankbar .

Verfasst: 29.01.2006 18:01
von Markzerox
Hi
ich habe mir jetz die letzten 20 seiten durchgelesen, etwa ne halbe stunde mit der suche gespielt, finde aber nirgendwo hilfe auf mein problem.

Zur information, hab phpbb 2.0.19 und den CH-Mod, sowie diverse kleinere andere mods droben.

Aber, möchte ich das portal anschauen, kommt folgende Meldung:

Could not query announcements 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 ') AND t.topic_time <= 1138553740 AND t.topic_poster

SELECT t.topic_id, t.topic_time, t.topic_title, pt.post_text, u.username, u.user_id, t.topic_replies, pt.bbcode_uid, t.forum_id, t.topic_poster, t.topic_first_post_id, t.topic_status, pt.post_id, p.post_id, p.enable_smilies FROM phpbb_topics AS t, phpbb_users AS u, phpbb_posts_text AS pt, phpbb_posts AS p WHERE t.forum_id IN () AND t.topic_time <= 1138553740 AND t.topic_poster = u.user_id AND t.topic_first_post_id = pt.post_id AND t.topic_first_post_id = p.post_id AND t.topic_status <> 2 ORDER BY t.topic_time DESC

Line : 86
File : portal_poll.php


ich hoffe dass hier nicht schon ne hilfe gegeben wurde und ich nicht der 40000te bin, der danach fragt.

Danke im Voraus, Markus

Verfasst: 29.01.2006 18:34
von scheibenbrot
hey,
das Problem hatte ich auch mal, als ich das template gewechselt habe...
Mir wurde empfohlen, dass ich einfach das Portal neu installiere.
Also du öffnest die install.txt und prüfst in jeder Datei nach ob alles so ist wie es sein soll.
Meistens fehlt was in den common.php oder in der includes/constants.php
Mir fehlten dort ein paar Sachen...., hatte genau die gleiche Fehlermeldung.
Also ist ein rat von mir, prüf alles nach ob es so ist wie es in der install.txt steht....

Verfasst: 29.01.2006 18:53
von Markzerox
werd ich gleich machen, obwohl es ziemlich komisch wäre, da ich mit dem em installiert habe...

MfG


€: also hat nix gebracht, war alles i.O.

nochmal €: habs gefunden, da /* erst nach dem add geschlossen wurde, gings nicht!

DANKE!!