You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 291 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - scrolling forum block issue [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Darkey
Guest






PostPosted: Sun Nov 20, 2005 10:48 pm Reply with quoteBack to top

i'm using a scrolling forum post block to display the last 15 posts in my forum, see code below;

//include_once ('blocks/smileys.php');

global $prefix, $dbi, $sitename, $user, $cookie, $group_id;
$count = 1;
$amount = 15;
$content = "<A name= \"scrollingCode\"></A>";
$content .="<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"220\" scrollamount= \"2\" scrolldelay= \"25\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="
<STYLE=\"text-decoration: none\"><font color=\"#666666\">Last $amount Forum Messages
";
$result1 = sql_query("SELECT topic_id, topic_last_post_id, topic_title FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC LIMIT $amount", $dbi);
$content .= "<br>";
while(list($topic_id, $topic_last_post_id, $topic_title) = sql_fetch_row($result1, $dbi)) {
$result2 = sql_query("SELECT topic_id, poster_id, FROM_UNIXTIME(post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($topic_id, $poster_id, $post_time)=sql_fetch_row($result2, $dbi);

$result3 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
list($username, $user_id)=sql_fetch_row($result3, $dbi);

//$topic_title = substr("$topic_title", 0,17);
//$topic_title=parseEmoticons($topic_title);
// Remove the comment below to add the counter
//$content .="<STYLE=\"text-decoration: none\"><font color=\"#666666\">Message: $count<br>";

$content .= "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\"alt=\"\"><a href=\"modules.php?name=Forums&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\"> $topic_title </a><br><font color=\"#666666\">Last post by <A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"STYLE=\"text-decoration: none\"> $username </a> on $post_time</font><br><br>";
$count = $count + 1;
}
$content .= "<br>
[ <a href=\"modules.php?name=Forums\"STYLE=\"text-decoration: none\">$sitename ]
";
//$content .= "
<img src=\"images/banners/fatalexception-logo-88x31.gif\" border=\"0\">
";
$content .= "</a>";
?>


could someone help me in changing it slightly so that it does not show the restricted access threads only public,

cheers
Find all posts by Anonymous
Steptoe
Captain
Captain


Joined: Oct 10, 2004
Posts: 563


PostPosted: Mon Nov 21, 2005 9:12 am Reply with quoteBack to top

There is a couple of very recent threads on this and sources for what u want.
If u want to just hide hidden forums use the old cz block
If u want to show hidden forums only as per user permission level the CZ new block
Find all posts by SteptoeView user's profileSend private messageVisit poster's website
Guest







PostPosted: Tue Nov 22, 2005 11:06 pm Reply with quoteBack to top

Where can i down load these blocks?
Find all posts by Anonymous
patobrien
Nuke Soldier
Nuke Soldier


Joined: Nov 08, 2005
Posts: 13


PostPosted: Wed Nov 23, 2005 6:50 am Reply with quoteBack to top

I tried using the backendforums.php file like is used on this site. I downloaded it, and followed the directions as best I could. It says to place the file in the main directory where mainfile.php and config.php are located and then it says simply to link to it. I created a block and in it placed a link like this
Code:
<a href="http://www.fssfbdclan.com/backendforums.php"></a>


I also tried it without closing the link tag.

When the block shows up, nothing happens. It seems obvious to me that I am doing something wrong but I am not sure what. Can someone offer help on how to get this to work?

Thanks in advance.
Find all posts by patobrienView user's profileSend private message
Steptoe
Captain
Captain


Joined: Oct 10, 2004
Posts: 563


PostPosted: Wed Nov 23, 2005 9:08 am Reply with quoteBack to top

http://www.codezwiz.com
Find all posts by SteptoeView user's profileSend private messageVisit poster's website
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.038 Seconds - 186 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::