Hallo zusammen ich habe gerade diesen Mod in mein PHPBB2 Forum eingebaut, aber der zerschießt mir das Layout meines Forums. Das Problem ist, dass die Zeilen viel zu groß in der Höhe sind.
Das sind die Änderungen, die ich gemacht habe:
Code
#-----[ COPY TO FOLDER ]------------------------------------------
#
COPY phpBB2/glance.php TO glance.php
COPY phpBB2/glance_config.php TO glance_config.php
COPY phpBB2/templates/glance_body.tpl TO templates/glance_body.tpl
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// AtAGlance MOD V4.1:
include($phpbb_root_path . 'glance.'.$phpEx);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
#
#-----[ BEFORE, ADD ]------------------------------------------
#
{GLANCE_OUTPUT}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Alles anzeigen
ich glaube der Fehler liegt in dieser Datei glance_body.tpl im Template Verzeichnis:
Code
<span class="gen"></span>
<table width="{GLANCE_TABLE_WIDTH}" cellpadding="2" cellspacing="1" border="0" class="forumline" height="100%">
<tr>
<th class="thCornerL" height="28" align="center" width="30">
-
+
</span>
</th>
<th class="thTop" height="28" align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><th align="center">
{NEWS_HEADING}
</th>
</tr>
</table>
</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_FORUM}</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_AUTHOR}</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_REPLIES}</th>
<th class="thCornerR" height="28" align="center" nowrap="nowrap">{L_LASTPOST}</th>
</tr>
<tbody id="phpbbGlance_news" style="display: ;">
<tbody id="phpbbGlance_news" style="display: none;">
<tr>
<td nowrap="nowrap" valign="middle" class="row1" align="center" width="30">[url='{news.TOPIC_LINK}']{news.BULLET}[/url]</td>
<td valign="middle" width="100%" class="row1"><span class="genmed">{news.TOPIC_TYPE} [url='{news.TOPIC_LINK}']{news.TOPIC_TITLE}[/url]</span></td>
<td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">[url='{news.FORUM_LINK}']{news.FORUM_TITLE}[/url]</span></td>
<td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_POSTER}</span></td>
<td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_REPLIES}</span></td>
<td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_TIME}
{news.LAST_POSTER}</span></td>
</tr>
</tbody>
<tr>
<th class="thCornerL" height="28" align="center" width="30">
-
+
</span>
</th>
<th class="thTop" height="28" align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><th align="center">
{RECENT_HEADING}
</th>
</tr>
</table>
</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_FORUM}</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_AUTHOR}</th>
<th class="thTop" height="28" align="center" nowrap="nowrap">{L_REPLIES}</th>
<th class="thCornerR" height="28" align="center" nowrap="nowrap">{L_LASTPOST}</th>
</tr>
<tbody id="phpbbGlance_recent" style="display: ;">
<tbody id="phpbbGlance_recent" style="display: none;">
<tr>
<td nowrap="nowrap" valign="middle" class="row1" align="center" width="30">[url='{recent.TOPIC_LINK}']{recent.BULLET}[/url]</td>
<td valign="middle" width="100%" class="row1"><span class="genmed">{recent.TOPIC_TYPE} [url='{recent.TOPIC_LINK}']{recent.TOPIC_TITLE}[/url]</span></td>
<td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">[url='{recent.FORUM_LINK}']{recent.FORUM_TITLE}[/url]</span></td>
<td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_POSTER}</span></td>
<td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_REPLIES}</span></td>
<td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.LAST_POST_TIME}
{recent.LAST_POSTER}</span></td>
</tr>
</tbody>
</table>
<span class="gen"></span>
Alles anzeigen
Kann das was mit den Zeilen, wo für height immer 28 steht zu tun haben?
Ich hab leider keine Ahnung von php
Hier noch der Inhalt der glance-config.php:
PHP
<?php
/***************************************************************************
* glance_config.php
* -------------------
* begin : Monday, Apr 07, 2001
* copyright : blulegend, Jack Kan
* contact : [url]www.phpbb.com[/url], member: blulegend
*
* Modified by : netclectic - http://www.netclectic.com/forums/viewtopic.php?t=257
* : AWSW - http://www.awsw.de
* : Acid - http://www.phpbb.de
*
***************************************************************************/
if ( !defined('IN_GLANCE') )
{
die("Hacking attempt");
}
/***************************************************************************
*
* *************** SET UP VARIABLES HERE ***********************/
// FORUM DIRECTORY
$glance_forum_dir = '/phpbb2/';
// NEWS FORUM ID
$glance_news_forum_id = '0'; // SEPERATE NEWS FORUMS WITH , eg '1,2,3' - SET TO '0' IF YOU DO NOT HAVE A NEWS FORUM
// NUMBER OF NEWS ARTICLES YOU WISH TO DISPLAY
$glance_num_news = 0; // SET TO ZERO IF YOU DO NOT WANT THIS TO BE DISPLAYED or DO NOT HAVE A NEWS FORUM
// NUMBER OF RECENT ARTICLES YOU WISH TO DISPLAY
$glance_num_recent = 5; // SET TO ZERO IF YOU DO NOT WANT THIS TO BE DISPLAYED
// FORUMS YOU WISH TO IGNORE IN YOUR RECENT ARTICLES
$glance_recent_ignore = '3,4'; // SEPERATE FORUMS TO IGNORE WITH , eg '1,2,3' - SET TO '' IF YOU WANT ALL DISPLAYED
// NEWS HEADING
$glance_news_heading = 'News';
// RECENT TOPIC HEADING
$glance_recent_heading = $lang['Forum'];
// TABLE WIDTH
$glance_table_width = '95%';
// CHANGE THE BULLET IF A TOPIC IS NEW? (true / false)
$glance_show_new_bullets = true;
// MESSAGE TRACKING WILL TRACK TO SEE IF A USER HAS READ THE TOPIC DURING THEIR SESSION (true / false)
$glance_track = true;
// SHOW TOPICS THE USER CAN VIEW, BUT NOT READ? (true / false)
$glance_auth_read = false;
// LIMIT THE NUMBER OF CHARACTERS DISPLAYED FOR TOPIC TITLES
$glance_topic_length = 0; // SET TO ZERO TO DISPLAY THE FULL TITLE
/************************* DO NOT EDIT BELOW THIS LINE *********************/
?>
Alles anzeigen
Hier noch die Adresse zum Forum: http://www.oliver-pietsch.de/phpbb2/
Gruß oli