habe so die Nickpage im SlideMenü verlinkt
Code: Alles auswählen
addExItem("Nickpage", "{U_NICKPAGE}");
Ciao Gefühlswelten
Code: Alles auswählen
addExItem("Nickpage", "{U_NICKPAGE}");
Ein- und Ausschalter ^^Gefühlswelten hat geschrieben:was ist ein switch???
Code: Alles auswählen
<!-- BEGIN Shownickpagebutton -->
addExItem("Nickpage", "{Shownickpagebutton.U_NICKPAGE}");
<!-- END Shownickpagebutton -->
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
#
#-----[ BEFORE, ADD ]--------------------------------
#
//
//Nickpagelink zeigen?
//
if (!defined('NICKPAGE_INSTALL') && $userdata['session_logged_in'] )
{
//Nickpage vorhanden und config ok?
$sql = "SELECT COUNT(uid) AS zaehle, b.* FROM ".NICKPAGE_TABLE." AS a, ".NICKPAGECONFIG_TABLE." AS b
WHERE a.uid=".intval($userdata['user_id'])."
GROUP BY a.uid";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Konnte Querrie nicht ausführen!', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if($row['zaehle'] == "1" OR $row['anzahl_posts'] <= $userdata['user_posts'])
{
$np_admin = append_sid('nickpage.'.$phpEx.'?admin='.urlencode(stripslashes($userdata['username'])));
}
else
{
$np_admin = '';
}
}
#
#-----[ FIND ]------------------------------------------
#
'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
#
#-----[ AFTER, ADD ]--------------------------------
#
'U_NICKPAGE' => $np_admin,
#
#-----[ FIND ]------------------------------------------
#
//
//Nickpagelink zeigen?
//
if (!defined('NICKPAGE_INSTALL') && $userdata['session_logged_in'] )
{
//Nickpage vorhanden und config ok?
$sql = "SELECT COUNT(uid) AS zaehle, b.* FROM ".NICKPAGE_TABLE." AS a, ".NICKPAGECONFIG_TABLE." AS b
WHERE a.uid=".intval($userdata['user_id'])."
GROUP BY a.uid";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Konnte Querrie nicht ausführen!', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if($row['zaehle'] == "1" OR $row['anzahl_posts'] <= $userdata['user_posts'])
{
$template->assign_block_vars('Shownickpagebutton',array(
'U_NICKPAGE' => append_sid('nickpage.'.$phpEx.'?admin='.urlencode(stripslashes($userdata['username']))),
));
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
/*
//Nickpagelink zeigen?
//
if (!defined('NICKPAGE_INSTALL') && $userdata['session_logged_in'] )
{
//Nickpage vorhanden und config ok?
$sql = "SELECT COUNT(uid) AS zaehle, b.* FROM ".NICKPAGE_TABLE." AS a, ".NICKPAGECONFIG_TABLE." AS b
WHERE a.uid=".intval($userdata['user_id'])."
GROUP BY a.uid";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Konnte Querrie nicht ausführen!', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if($row['zaehle'] == "1" OR $row['anzahl_posts'] <= $userdata['user_posts'])
{
$template->assign_block_vars('Shownickpagebutton',array(
'U_NICKPAGE' => append_sid('nickpage.'.$phpEx.'?admin='.urlencode(stripslashes($userdata['username']))),
));
}
}
*/
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Alles auswählen
$np_admin = append_sid('nickpage.'.$phpEx.'?admin='.urlencode(stripslashes($userdata['username'])));
}
Code: Alles auswählen
$np_admin = append_sid($phpbb_root_path.'nickpage.'.$phpEx.'?admin='.urlencode(stripslashes($userdata['username'])));
}