Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Thu Feb 03, 2011 3:12 pm Reply with quote

Right now, only reg'd users and admins can "add content". I use this module for FAQS and now some reg'd users are using this module to ask support questions instead of in the forums.

So, how can I make it so that only an admin can "add content"?
 
View user's profile Send private message
dad7732







PostPosted: Thu Feb 03, 2011 5:47 pm Reply with quote

Let me modify this request a bit. What I would like more is to be able to modify the form page OR link to another page such as "Sorry, we do not allow users to post content, use our forums instead, thanks" .. or something to that effect rather than disallowing other than figuring a way to not allow the "Add Content" link. I think this would be a lot easier.
 
nuken
RavenNuke(tm) Development Team



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

PostPosted: Thu Feb 03, 2011 6:02 pm Reply with quote

in the function add_page(), wrap it in
Code:
if (is_admin($admin)) {


then do an else for what you want the users to see.

_________________
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
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©