Author |
Message |
Steptoe
Involved


Joined: Oct 09, 2004
Posts: 293
|
Posted:
Fri Sep 23, 2005 5:23 pm |
|
Forum scroll center block from http://codezwiz.com Last Edited - 20 Aug 2004 on 7.5
1st a brief not on the block..I use this because it doesn't show hidden sections of the forums
///are my changes notes
As u can see I have removed posters details link to their name.
Idealy I would like the details to only show when logged in...even better to show the latter AND include posts that relate to the level of the logged in member
IE if a member has access to admin forum section and/or members section. these will show.
I think I may have asked the latter a while back somewhere but never got it to work due to not fully understanding what I was doing.
I think with the above changes with notes included in the block this would then give a popular block with polished function.
The admin only section is ...... Site url /forum-19.html
And members only is .......Site url /forum-20.html
Edit: I would post the whole block but get a script warning.
Code:$topic_title=parseEmoticons($topic_title);
////$content .= "<img src=\"themes/$cz_theme/forums/images/icon_minipost.gif\" border=\"0\" alt=\"\"><a href=\"forums.html?amp;file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\"><b> $topic_title </b></a><br><font class=\"content\"><i>Last post by <A HREF=\"profile-.html$poster_id\"STYLE=\"text-decoration: none\"> $username </a> in <a href=\"forums.html?amp;file=viewforum&f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
////above line edited to remove link to posters details to line below
$content .= "<img src=\"themes/$cz_theme/forums/images/icon_minipost.gif\" border=\"0\" alt=\"\"><a href=\"forums.html?amp;file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\"><b> $topic_title </b></a><br><font class=\"content\"><i>Last post by $username </a> in <a href=\"forums.html?amp;file=viewforum&f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
$count = $count + 1;
}
|
|
_________________ My Spelling is NOT incorrect, it's Creative
Last edited by Steptoe on Wed Nov 09, 2005 5:29 pm; edited 2 times in total |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Sep 23, 2005 6:09 pm |
|
To avoid the SCRIPT warnings, you need to break up tags like
<scr~ipt></scr~ipt>
<sty~le></sty~le>
<fo~rm></fo~rm>
In general, any of the tags that are scrubbed in mainfile.php. |
|
|
|
 |
Steptoe

|
Posted:
Fri Sep 23, 2005 6:24 pm |
|
Quote: |
if (eregi("block-Forums_Scroll.php", $_SERVER['scr~ipt_NAME'])) {
Header("Location: index.php");
die();
}
///define("_BBFORUM_TOTTOPICS","Topics ");
///define("_BBFORUM_TOTPOSTS","Posts ");
///define("_BBFORUM_TOTVIEWS","Views ");
///define("_BBFORUM_TOTREPLIES","Replies ");
///define("_BBFORUM_TOTMEMBERS","Members");
///define("_BBFORUM_FORUM","Forums");
///define("_BBFORUM_SEARCH","Search");
include_once ('blocks/smileys.php');
$cz_theme = get_theme();
global $prefix, $user_prefix, $db, $dbi, $sitename, $user, $cookie, $group_id;
$count = 1;
$content = "<table class=\"row1\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\">
<tr>
<td class=\"row1\" width=\"100%\">";
(EDIT: Its some stuff here about MARQUEE behavior and mouse over stuff that is causing script error on post)
$content .= "<br>";
$result1 = $db->sql_query("SELECT
t.topic_id, t.topic_last_post_id, t.topic_title,
f.forum_name, f.forum_id,
u.username, u.user_id,
p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time
FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f
WHERE t.forum_id=f.forum_id AND f.auth_view=0
ORDER BY t.topic_last_post_id DESC
/*this edits # of mess in block */
LIMIT 10");
while(list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id, $username, $user_id, $poster_id, $post_time) = $db->sql_fetchrow($result1)) {
$topic_title=parseEmoticons($topic_title);
////$content .= "<img src=\"themes/$cz_theme/forums/images/icon_minipost.gif\" border=\"0\" alt=\"\"><a href=\"forums.html?amp;file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"sty~le=\"text-decoration: none\"><b> $topic_title </b></a><br><font class=\"content\"><i>Last post by <A HREF=\"profile-.html$poster_id\"sty~le=\"text-decoration: none\"> $username </a> in <a href=\"forums.html?amp;file=viewforum&f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
////above line edited to remove link to posters details to line below
$content .= "<img src=\"themes/$cz_theme/forums/images/icon_minipost.gif\" border=\"0\" alt=\"\"><a href=\"forums.html?amp;file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"sty~le=\"text-decoration: none\"><b> $topic_title </b></a><br><font class=\"content\"><i>Last post by $username </a> in <a href=\"forums.html?amp;file=viewforum&f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
$count = $count + 1;
}
$content .= "</marquee></td></tr></table>";
$content .= "<table class=\"row1\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\">
<tr>
</tr></table>";
?>
|
|
|
|
|
 |
Steptoe

|
Posted:
Sun Oct 09, 2005 9:20 pm |
|
Been playing with this and refering back to other posts concerning it..I either get all the posts disapear or all posts show when not logged in
Anyone help on this please |
|
|
|
 |
Steptoe

|
Posted:
Tue Nov 01, 2005 4:36 pm |
|
|
|
 |
Steptoe

|
Posted:
Wed Nov 09, 2005 5:22 pm |
|
Over the last couple days Codez have now made such a scrolling forum block, as far as I know the only one that can show all those lastest posts at a level of permissions that a member logs in at.
Re check the above link for info/ download. |
|
|
|
 |
novoselac
New Member


Joined: May 12, 2006
Posts: 1
|
Posted:
Fri May 12, 2006 7:11 am |
|
Will that "Forum-scroll" work for phpBB forum and where to download it? |
|
|
|
 |
|