Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
muskiehunter
New Member
New Member


Joined: Aug 24, 2011
Posts: 9

PostPosted: Wed Aug 24, 2011 5:17 pm Reply with quote

Hello,

I got the scrooling forums working on 2.4 and when you click on the lates topic it says module not activated. The forums are actavated we can go in there for the main forum link. Any thoughts..

Thanks.
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Wed Aug 24, 2011 5:43 pm Reply with quote

Is your site public so we can get a look?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
muskiehunter
PostPosted: Wed Aug 24, 2011 5:53 pm Reply with quote

Yes it is but the forums are for registered users.. Only registered users can see links on this board! Get registered or login!

Thx for the help..
 
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Aug 24, 2011 6:39 pm Reply with quote

look in your blocks code and remove the spaces between name = Forums

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
muskiehunter
PostPosted: Wed Aug 24, 2011 7:17 pm Reply with quote

Here is what is on there... Thanks for all your help..




<?php
/************************************************************************/
/* Forums Scrolling Block for RavenNuke(tm) */
/* ================================================= */
/* */
/* Copyright (c) 2009 by Gaylen Fraley (raven@ravenphpscripts.com */
/* Only registered users can see links on this board! Get registered or login! */
/* 2009-01-18 Modified for RavenNuke(tm) v2.30.00+ by Gaylen Fraley (Raven) Only registered users can see links on this board! Get registered or login! */
/* Added security so that user only sees the forums that he is authorized to see */
/* */
/* Original Forums Block for phpBB 2.0.0 port to PHP Nuke 5.5 */
/* ================================================= */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* Only registered users can see links on this board! Get registered or login! */
/* Version 1, modified by Sébastien Vaast */
/* Only registered users can see links on this board! Get registered or login! */
/* ================================================= */
/* */
/* This Block shows the last (elected number of topics where a message was posted, */
/* along with the username of the last poster and the day and time */
/* of the post. */
/* It will also show smileys in the topic titles thanks to the */
/* smileys.php file found in Leo Tan Block Forums version */
/* (http://www.cybercomp.d2g.com). */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("block-ForumsScroll.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

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

global $prefix, $user_prefix, $db, $sitename, $user, $cookie, $group_id;
$count = 1;
$amount = 10;
$content = "<a name= \"scrollingCode\"></a>";
$content .="<marquee behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"235\" scrollamount= \"2\" scrolldelay= \"50\" onmouseover='this.stop()' onmouseout='this.start()'>";
$content .="<center> <style=\"text-decoration: none\"><font color=\"#FFFFFF\"><b>Last $amount Forum Messages</b></center>";
$sql = 'SELECT t.forum_id, topic_id, topic_last_post_id, topic_title, auth_view, auth_read FROM '.$prefix.'_bbtopics AS t, '.$prefix.'_bbforums AS f WHERE f.forum_id=t.forum_id ORDER BY topic_time DESC LIMIT ' . $amount;
$result = $db->sql_query($sql);
$content .= "<br />";
while (list($forum_id, $topic_id, $topic_last_post_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
if (($auth_view < 2) OR ($auth_read < 2)) {
$sql1 = "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'";
$result1 = $db->sql_query($sql1);
list($topic_id, $poster_id, $post_time) = $db->sql_fetchrow($result1);
$sql2 = 'SELECT username, user_id FROM ' . $user_prefix . '_users where user_id=' . $poster_id;
$result2 = $db->sql_query($sql2);
list($username, $user_id)=$db->sql_fetchrow($result2);

//$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=\"#6677A0\"><b>Message: $count<br /></b>";
$content .= "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\">";
$content .= "<a href=\"modules.php?name = Forums&amp;file=viewtopic&amp;t=".$topic_id."\" style=\"text-decoration: none\"><b> $topic_title </b></a><br />";
//<font color=\"#6677A0\"><i>Last post by <a href=\"profile-.html$user_id\" style=\"text-decoration: none\"> $username </a> on $post_time</i></font><br /><br />";
$count = $count + 1;
}
}
$content .= '<br /><center><a href="modules.php?name = Forums"><b>'.$sitename.' Forums</b></a><br /><br /></center>';
?>[/code]
 
nuken
PostPosted: Wed Aug 24, 2011 7:23 pm Reply with quote

$content .= "<a href=\"modules.php?name = Forums&amp;file=viewtopic&amp;t=".$topic_id."\" style=\"text-decoration: none\"><b> $topic_title </b></a><br />";
//<font color=\"#6677A0\"><i>Last post by <a href=\"profile-.html$user_id\" style=\"text-decoration: none\"> $username </a> on $post_time</i></font><br /><br />";
$count = $count + 1;
}
}
$content .= '<br /><center><a href="modules.php?name = Forums"><b>'.$sitename.' Forums</b></a><br /><br /></center>';



You will need to remove the space in name = Forum like I said above. The spaces were in there so ShortLinks will not rewrite them in this forum.
 
nuken
PostPosted: Wed Aug 24, 2011 7:50 pm Reply with quote

Download this and unzip it.
Only registered users can see links on this board! Get registered or login!
 
muskiehunter
PostPosted: Wed Aug 24, 2011 8:19 pm Reply with quote

Thank you so much that did the trick..Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©