Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
stoempie
New Member
New Member



Joined: Jan 30, 2012
Posts: 1

PostPosted: Wed Feb 08, 2012 5:09 pm Reply with quote

Hey,

I want to create a forum witch is visible for a group let say groep 1 and another for lets say groep 2

but i can ad the groups but i caanot select the groupes in de premissions is there som help file for forum from raven how i could get this to work ?

Greets
 
View user's profile Send private message
bobbyg
Worker
Worker



Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Thu Feb 09, 2012 7:42 pm Reply with quote

I deactivated the original forum then created a separate block for the forum setting authorization to group.

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* [ Only registered users can see links on this board! Get registered or login! ] */
/* */
/* 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 ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
global $prefix, $db, $sitename;

$sql = "SELECT t.forum_id, topic_id, topic_title FROM phpbb_topics AS t, phpbb_forums AS f WHERE f.forum_id=t.forum_id ORDER BY topic_time DESC LIMIT 10";
$result = $db->sql_query($sql);
$content = "<br />";
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
$forum_id = intval($forum_id);
$topic_id = intval($topic_id);
$topic_title = check_html($topic_title, "nohtml");
$content .= "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"9\" height=\"9\" />&nbsp;<a href=\"phpBB3/viewtopic.php?f=$forum_id&amp;t=$topic_id\">$topic_title</a><br />";
}

$content .= "<br /><center><a href=\"phpBB3/\"><b>Forums</b></a><br /><br /></center>";

$db->sql_freeresult($result);

?>
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©