meine Konfiguration wie folgt:
Joomla 1.0.0.9
PHPBB: phpbb_component_1[1].2.4rc6.zip => 2.0.2.1
Ich habe den Nickpage Hack eingebaut und der funktioniert auch ohne Probleme. Wenn ich allerdings im Admin CP auf "Nickpage Verwalten" gehe, wird folgender Fehler angezeigt.
phpBB : Critical Error
Konnte Querrie nicht ausführen!
DEBUG MODE
SQL Error : 1054 Unknown column 'b.user_id' in 'where clause'
SELECT a.uid, b.username FROM phpbb_nickpagemod AS a, jos_users AS b WHERE a.status='1' AND b.user_id=a.uid ORDER BY b.username ASC
Line : 37
File : admin_nickpage_sperren.php
Die Tabelle a.status habe ich manuell erstellt, da sie nicht vorhanden war.
Alle anderen TAbellen sind vorhanden.
Hier ein Auszug meiner admin_nickpage_sperren.php:
Code: Alles auswählen
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['Nickpage']['Sperren'] = "$file?sub=spe";
return;
}
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
$template->set_filenames(array(
"body" => "../nickpage/admin/nickpage_sperren.tpl")
);
//
// Gesperrte Sites
//
$sql = "SELECT a.uid, b.username FROM ".NICKPAGE_TABLE." AS a, ".USERS_TABLE." AS b WHERE a.status='1' AND b.user_id=a.uid ORDER BY b.username ASC";
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Konnte Querrie nicht ausführen!", "", __LINE__, __FILE__, $sql);
}
else
{
if( isset($HTTP_POST_VARS['sperren']) )
{
//uid
$sql = "SELECT user_id FROM ".USERS_TABLE." WHERE username='".$_POST['username']."'";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "SQL-Querrie gescheitert!", "",
Danke
Wicked
EDIT:
=====
Habe die Lösung selsbt herausgefunden: ALTER TABLE jos_users ADD user_id TINYINT(1) DEFAULT '1' NOT NULL;