Verfasst: 21.10.2005 22:49
Für die, die den Mod unter ezPortal einbauen möchten, hab das leider nicht gefunden, geh jetzt mal davon aus, das so was noch nicht gibt.. hab mich mal hin gesetzt und das gecodet...
wenn man das so bezeichnen kann...
##############################################################
## MOD Title: Advanced Links Mod + ezPortal
## Version: 1.0.0
## MOD Author: --> Advanced Link Mod
## stefan2k1 (Stefan Paulus) - http://www.phpbb2.de
## --> ezPortal
## Smartor - http://smartor.is-root.com
## Modifiziert von: Pato - http://www.tobecool.de
##
## MOD Description:
## Zeigt die Link liste in eine Art, Newsticker im ezPortal an.
##
##
## Installation Level: easy
## Installation Time: 5 minutes
##
## Files To Edit: 4
## templates/xxx/portal_body.tpl
## templates/xxx/links_js_body.tpl
## links.js.php
## portal.php
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------------
#
templates/xxx/portal_body.tpl
#
#-----[ FIND ]------------------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="25"><span class="genmed"><b>Links</b></span></td>
</tr>
<tr>
<td class="row1" align="center"><a href="http://smartor.is-root.com" target="_blank"><img src="images/smartorsite_logo.gif" width="88" height="31" alt="Smartor Site" border="0" vspace="3"></a></td>
</tr>
</table>
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
###################################################################################
Achtung:
Man muss im "iframe" die höhe per Hand, die 100% hochsetzen! z.b. height="200%"
###################################################################################
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td colspan="2" class="catHead" width="100%" height="22">{L_LINKS}</a></td>
</tr>
<tr>
<td class="row1">
<marquee behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2">
<iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="100%"></iframe>
</marquee>
</td>
</tr>
<tr>
<td colspan="2" class="row3" height="25" align="center"><span class="gensmall">[ <a href="{U_LINKS}">{L_LINKS}</a> ]</span></td>
</tr>
</table>
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
#
links.js.php
#
#-----[ FIND ]------------------------------------------------------
#
$links_logo .= ('\'<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $row['link_title'] . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" vspace="0" /></a>\',' . "\n");
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
$links_logo .= ('\'<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $row['link_title'] . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" vspace="5" /></a><br />\',' . "\n");
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
templates/xxx/links_js_body.tpl
#
#-----[ FIND ]-------------------------------------------------
#
document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><div id="links"></div></td></tr></table>');
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><div id="links" align="center"></div></td></tr></table>');
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
#
portal.php
#
#-----[ FIND ]------------------------------------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_link.' . $phpEx);
#
#-----[ FIND ]------------------------------------------------------
#
$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
$sql = "SELECT *
FROM ". LINK_CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query Link config information", "", __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$link_config_name = $row['config_name'];
$link_config_value = $row['config_value'];
$link_config[$link_config_name] = $link_config_value;
$link_self_img = $link_config['site_logo'];
$site_logo_height = $link_config['height'];
$site_logo_width = $link_config['width'];
}
#
#-----[ FIND ]------------------------------------------------------
#
'L_POSTED' => $lang['Posted'],
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
'L_LINKS' => $lang['Site_links'],
'U_LINKS' => append_sid("links.$phpEx"),
'U_LINKS_JS' => "links.js.$phpEx",
'U_SITE_LOGO' => $link_self_img,
'SITE_LOGO_WIDTH' => $site_logo_width,
'SITE_LOGO_HEIGHT' => $site_logo_height,
#
#-----[ Close ]------------------------------------------------------
#
vielleicht kann ich ja den einen oder anderen damit weiterhelfen...
MfG Pato
##############################################################
## MOD Title: Advanced Links Mod + ezPortal
## Version: 1.0.0
## MOD Author: --> Advanced Link Mod
## stefan2k1 (Stefan Paulus) - http://www.phpbb2.de
## --> ezPortal
## Smartor - http://smartor.is-root.com
## Modifiziert von: Pato - http://www.tobecool.de
##
## MOD Description:
## Zeigt die Link liste in eine Art, Newsticker im ezPortal an.
##
##
## Installation Level: easy
## Installation Time: 5 minutes
##
## Files To Edit: 4
## templates/xxx/portal_body.tpl
## templates/xxx/links_js_body.tpl
## links.js.php
## portal.php
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------------
#
templates/xxx/portal_body.tpl
#
#-----[ FIND ]------------------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="25"><span class="genmed"><b>Links</b></span></td>
</tr>
<tr>
<td class="row1" align="center"><a href="http://smartor.is-root.com" target="_blank"><img src="images/smartorsite_logo.gif" width="88" height="31" alt="Smartor Site" border="0" vspace="3"></a></td>
</tr>
</table>
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
###################################################################################
Achtung:
Man muss im "iframe" die höhe per Hand, die 100% hochsetzen! z.b. height="200%"
###################################################################################
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td colspan="2" class="catHead" width="100%" height="22">{L_LINKS}</a></td>
</tr>
<tr>
<td class="row1">
<marquee behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2">
<iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="100%"></iframe>
</marquee>
</td>
</tr>
<tr>
<td colspan="2" class="row3" height="25" align="center"><span class="gensmall">[ <a href="{U_LINKS}">{L_LINKS}</a> ]</span></td>
</tr>
</table>
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
#
links.js.php
#
#-----[ FIND ]------------------------------------------------------
#
$links_logo .= ('\'<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $row['link_title'] . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" vspace="0" /></a>\',' . "\n");
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
$links_logo .= ('\'<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $row['link_title'] . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" vspace="5" /></a><br />\',' . "\n");
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
templates/xxx/links_js_body.tpl
#
#-----[ FIND ]-------------------------------------------------
#
document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><div id="links"></div></td></tr></table>');
#
#-----[ REPLACE, WITH ]-------------------------------------------------
#
document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><div id="links" align="center"></div></td></tr></table>');
#
#-----[ Close ]-------------------------------------------------
#
#####################################################################
#
#-----[ OPEN ]------------------------------------------------------
#
portal.php
#
#-----[ FIND ]------------------------------------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_link.' . $phpEx);
#
#-----[ FIND ]------------------------------------------------------
#
$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
$sql = "SELECT *
FROM ". LINK_CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query Link config information", "", __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$link_config_name = $row['config_name'];
$link_config_value = $row['config_value'];
$link_config[$link_config_name] = $link_config_value;
$link_self_img = $link_config['site_logo'];
$site_logo_height = $link_config['height'];
$site_logo_width = $link_config['width'];
}
#
#-----[ FIND ]------------------------------------------------------
#
'L_POSTED' => $lang['Posted'],
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
'L_LINKS' => $lang['Site_links'],
'U_LINKS' => append_sid("links.$phpEx"),
'U_LINKS_JS' => "links.js.$phpEx",
'U_SITE_LOGO' => $link_self_img,
'SITE_LOGO_WIDTH' => $site_logo_width,
'SITE_LOGO_HEIGHT' => $site_logo_height,
#
#-----[ Close ]------------------------------------------------------
#
vielleicht kann ich ja den einen oder anderen damit weiterhelfen...
MfG Pato