scroll recent topics
3 posters
Page 1 of 1
scroll recent topics
Please how can i put a scroll bar on recent topics widget at the portal. Like you have here.
chuckorion- Forumember
- Posts : 38
Reputation : 3
Language : English
Re: scroll recent topics
An wrote:Here you go, change the template to the one below.
- Code:
<!-- BEGIN scrolling_row -->
{MARQUEE_JS_SRC}
<table class="forumline genmed" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="catLeft" height="25">
<span class="genmed module-title">{L_RECENT_TOPICS}</span>
</td>
</tr>
<tr>
<td class="row1" style="height:{SCROLL_HEIGHT}px;">
<div class="marquee" align="left" data-direction='{SCROLL_WAY}' data-duration='{SCROLL_DELAY}' data-pauseOnHover="true" style="overflow:hidden;height:{SCROLL_HEIGHT}px;">
<!-- BEGIN recent_topic_row -->
» <a href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a><br />
<img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY}
<!-- BEGIN switch_poster -->
<a href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a><br /><br />
<!-- END switch_poster -->
<!-- BEGIN switch_poster_guest -->
{scrolling_row.recent_topic_row.switch_poster_guest.S_POSTER}<br /><br />
<!-- END switch_poster_guest -->
<!-- END recent_topic_row -->
</div>
</td>
</tr>
</table>
<script>
$(".marquee").marquee();
</script>
<!-- END scrolling_row -->
<!-- BEGIN classical_row -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="catHead" height="25"><span class="genmed"><b><center>{L_RECENT_TOPICS}</center></b></span></td>
</tr>
<tr>
<td class="row1" align="left"><div id="recent_topic_list" class="gensmall">
<!-- BEGIN recent_topic_row -->
» <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a><br /><img src="{ICON_TIME}" alt="" />{BY}
<!-- BEGIN switch_poster -->
<a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
<!-- END switch_poster -->
<!-- BEGIN switch_poster_guest -->
{classical_row.recent_topic_row.switch_poster_guest.S_POSTER}
<!-- END switch_poster_guest -->
{ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />
<!--
<a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a> {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />
-->
<!-- END recent_topic_row -->
</div></td>
</tr>
</table>
<!-- END classical_row -->
Add the CSS below to your stylesheet.
- Code:
#recent_topic_list {
height:200px;
overflow-y:auto;
}
#recent_topic_list::-webkit-scrollbar {
width:6px;
}
#recent_topic_list::-webkit-scrollbar-track {
background:rgba(0, 0, 0, 0.1);
}
#recent_topic_list::-webkit-scrollbar-thumb {
background:#999;
}
Make sure you publish the template. Wink
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: scroll recent topics
please where do i change the template?
chuckorion- Forumember
- Posts : 38
Reputation : 3
Language : English
Re: scroll recent topics
mod_recent_topics
But make sure you have the same template as Diana. She posted hers here:
https://help.forumotion.com/t146257-2-qs-about-latest-topics-widget
But make sure you have the same template as Diana. She posted hers here:
https://help.forumotion.com/t146257-2-qs-about-latest-topics-widget
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: scroll recent topics
^^ As long as his forum version is phpbb2 it should work. Note that if it's otherwise you should post the mod_recent_topics template that's located under Admin Panel > Display > Templates > Portal.
FYI You must be logged into the forum's foundation account to access the templates. So if you don't see the templates under the Display tab you're probably not logged into the foundation account.
FYI You must be logged into the forum's foundation account to access the templates. So if you don't see the templates under the Display tab you're probably not logged into the foundation account.
Similar topics
» Forum recent topics scroll is flickering
» Changing the direction of 'recent topics' scroll
» Can I somehow pull an RSS feed from front page LATEST TOPICS scroll?
» Avatar in: Lattest Topics, Most Viewed Topics and Most Active Topics Widget!
» How to load up a forum with topics & stay off the scrolling latest topics list
» Changing the direction of 'recent topics' scroll
» Can I somehow pull an RSS feed from front page LATEST TOPICS scroll?
» Avatar in: Lattest Topics, Most Viewed Topics and Most Active Topics Widget!
» How to load up a forum with topics & stay off the scrolling latest topics list
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum