anky wrote: I cant under stand the very first step...how dumb i am![]()
#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config ( config_name, config_value ) VALUES ('topics_on_index', '10');
sjj1805 wrote:
To have the scrolling Active Topics at the top of the Forum
You have to paste this code:
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline" height="100%">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{MARQUEE_TOPIC}</span></td>
</tr>
<tr>
<td class="row1" valign="top"><span class="gen">
<marquee id="recent_topics" behavior="scroll" direction="up" height="100" scrolldelay="100" scrollamount="2">
<table cellpadding="4" cellSpacing="1" width="100%">
<!-- BEGIN marqueerow -->
<tr valign="top">
<td class="row2" vAlign="center" align="middle" width="20">
<img src="{marqueerow.FOLD_URL}">
</td>
<td class="row2" width="352">
<span class="forumlink"><a href="{marqueerow.TOPIC_URL}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{marqueerow.TOPIC_TITLE}</a></span>
<span class="gensmall"><br /></span>
</td>
<td class="row2" vAlign="center" align="middle" width="78">
<span class="gensmall"><a href="{marqueerow.USER_PROF}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{marqueerow.USERNAME}</a></span>
</td>
<td class="row2" vAlign="center" noWrap align="middle" width="100">
<span class="gensmall">{marqueerow.POST_DATE}</span>
</td>
</tr>
<!-- END marqueerow -->
</table>
</marquee>
</td>
</tr>
</table>
Immediately AFTER This bit of code at the top of index_body.tpl
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
EasyMod will have placed it down the bottom so just cut and paste.
RMcGirr83 wrote: The number of posts to show can be changed in the ACP. To restrict the mod to a certain category...in index.php
FIND
AFTER ADDCode: Select all
$sql = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, t.topic_type, t.topic_status, p.post_id, p.poster_id, p.post_time, u.user_id, u.username, u.user_lastvisit FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u WHERE t.forum_id IN " . $auth_view_forum_sql . " AND t.topic_id = p.topic_id AND f.forum_id = t.forum_id
change youcatid_here to the corresponding category number for the threads you want from there.Code: Select all
AND f.cat_id = yourcatid_here
SJ MAC wrote: I just installed this mod with easy mod, its working fine but Im using the Alexis2 theme and its stretched the footer of my index page and Im not sure how to fix this, can anyone help me out?
Ive looked at the alter files I cant see anything thats done this but I dont know too much about how all this code works.
altered files=
admin/admin_board.php
index.php
language/lang_english/lang_admin.php
language/lang_english/lang_main.php
templates/alexis2/admin/board_config_body.tpl
templates/alexis2/index_body.tpl
templates/subSilver/admin/board_config_body.tpl
templates/subSilver/index_body.tpl
*EDIT - SORRY PROBLEM FIXED THIS MOD JUST CLASHED WITH ANOTHER MOD I HAD INSTALLED.
I just installed this mod with easy mod, its working fine but Im using the Alexis2 theme and its stretched the footer of my index page and Im not sure how to fix this, can anyone help me out?
Ive looked at the alter files I cant see anything thats done this but I dont know too much about how all this code works. *EDIT - SORRY PROBLEM FIXED THIS MOD JUST CLASHED WITH ANOTHER MOD I HAD INSTALLED.
How did you fix this. This is exactly what happens to my page too. I'm using nosebleed template.
Yegor wrote: if you want your topic links to link to the last post in the topic (this is handy if you have a multi-page thread) repalce the 'TOPIC_URL' in index.php with this:
Code: Select all
'TOPIC_URL' => append_sid($phpbb_root_path . 'viewtopic.'.$phpEx.'?'.POST_POST_URL.'='.$row[$i]["topic_last_post_id"]). '#' . $row[$i]['topic_last_post_id'] ,
Code: Select all
'USER_PROF' => append_sid($phpbb_root_path . 'profile.'.$phpEx.'?mode=viewprofile$amp;u='.$row[$i]["user_id"]),
Code: Select all
'USER_PROF' => append_sid($phpbb_root_path . 'profile.'.$phpEx.'?mode=viewprofile&u='.$row[$i]["user_id"]),