Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Steptoe
Involved
Involved



Joined: Oct 09, 2004
Posts: 293

PostPosted: Fri Sep 23, 2005 5:23 pm Reply with quote

Forum scroll center block from [ Only registered users can see links on this board! Get registered or login! ] 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&amp;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&amp;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&amp;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&amp;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 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Sep 23, 2005 6:09 pm Reply with quote

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.
 
View user's profile Send private message
Steptoe







PostPosted: Fri Sep 23, 2005 6:24 pm Reply with quote

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&amp;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&amp;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&amp;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&amp;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







PostPosted: Sun Oct 09, 2005 9:20 pm Reply with quote

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 Bang Head
Anyone help on this please
 
Steptoe







PostPosted: Tue Nov 01, 2005 4:36 pm Reply with quote

Bump... I cant get it to show lastest posts accordingly to a members permissions to view Bang Head
Even the orginal coders Codewiz have no interest Smack [ Only registered users can see links on this board! Get registered or login! ]
 
Steptoe







PostPosted: Wed Nov 09, 2005 5:22 pm Reply with quote

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
New Member



Joined: May 12, 2006
Posts: 1

PostPosted: Fri May 12, 2006 7:11 am Reply with quote

Will that "Forum-scroll" work for phpBB forum and where to download it?
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©