hallo, ich hab das ganze nochmal getestet, es scheint, dass du einen fehler gemacht hast.
bei jedenfalls läufts:
öffne portal.php
suche:
Code: Alles auswählen
}
$template->assign_block_vars('switch_searchtopics_active', array());
}
// POST COUNT IN SEARCH TOPICS END
füge
danach ein:
Code: Alles auswählen
// Neueste Nickpages
$sql = "SELECT a.user_id, a.username, b.name, b.created FROM ".USERS_TABLE." a, ".NICKPAGE_TABLE." b WHERE b.uid=a.user_id ORDER BY b.created DESC LIMIT 6";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query Nickpage information', '', __LINE__, __FILE__, $sql);
}
$nickpage_list = $db->sql_fetchrowset($result);
for($i = 0; $i < count($nickpage_list); $i++)
{
$username = $nickpage_list[$i]['username'];
$userdate = $nickpage_list[$i]['created'];
if(strlen($username) > 17) { // Limit title length to avoid wrap
$username = strip_tags($username, '<a><i><b><ul><li>');
$username = substr($username,0,15);
$username .= "...";
}
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('nickpagemod', array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
'NAME' => '<a href="' . append_sid("nickpage.php?user=$username") . '">' . $username . '</a>',
'LSEEN_TIME' => date("d.m.y", $nickpage_list[$i]['created']),
)
);
}
suche in portal.php
Code: Alles auswählen
'IntroPortaltext24' => $lang['IntroPortaltext24'],
'IntroPortaltext25' => $lang['IntroPortaltext25'],
'IntroPortaltext26' => $lang['IntroPortaltext26'],
'INTRO_PORTAL_VERSION' => $introportalmod_config['modversion'],
füge an
danach stelle ein:
speichern und schließen
öffne die zugehörige template datei des portals (/templates/XXX/portal_body.tpl)
an geeigneter stelle einfügen (du musst den html code natürlich noch anpassen):
Code: Alles auswählen
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td nowrap="nowrap" colspan="2" class="catHead"><span class="genmed"><b>{L_NEWEST_NICKPAGES}</b></td>
</tr>
<!-- BEGIN nickpagemod -->
<tr>
<td class="row1"><span class="gensmall"><img src="templates/subSilver/images/post_ind1_bl.gif" /> {nickpagemod.NAME}</span></td>
<td class="row2" align="center"><span class="gensmall">{nickpagemod.LSEEN_TIME}</span></td>
</tr>
<!-- END nickpagemod -->
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br />
speichern und schließen
öffne /language/lang_german/lang_main.php
suche (is ganz am ende)
Code: Alles auswählen
//
// That's all Folks!
// -------------------------------------------------
füge
davor ein:
Code: Alles auswählen
// Nickpage liste (Portal)
$lang['Newest_Nickpages'] = 'Neueste Nickpages';
so hats bei mir funktioniert
achte beim einbau in das template darauf, dass du nicht innerhalb eines switches einbaust.
geeignete stelle nach:
Code: Alles auswählen
<!-- END switch_webmaster_active -->
<!-- ##### WEBMASTER / STAFF END ##### -->
aber vor:
Code: Alles auswählen
<!-- ##### GOOGLE START ##### -->
<!-- BEGIN switch_google_active -->