Articles Admin Only Not User to Post

Hi One and All

 

I am hoping that someone out there with great wisdom will be able to help me. 

 

I want to be able to stop members (users) from posting articles and only allowing Admin to post articles. 

 

My site http://clubbeyourself.com/articles you will see I have changed the name to Switch Magazine. 

 

I am using dolphin version 6.1.4

 

Thanks in advance

 

Jeff 

clubbeyourself
Quote · 23 Aug 2008

Admin > Settings > Navigation Menu Builder > Navigation Menu Builder > Articles > Visible for: and uncheck guest and member  .....

Quote · 23 Aug 2008

Thanks RumpyBumpy

 

But that is not what I want to achieve, I don't want it hidden so people can't see it, I just don't want them to be able to post (or submit) to the articles section, I want admin to be able to post but not users (members).

 

I need to disable the link that they click on to submit an article, not remove the option to view articles posted (by admin)

 

Jeff

clubbeyourself
Quote · 23 Aug 2008

In articles.php in your main directory you need to remove lines: 77-96

 

 


case

'addarticle':
$sRet .= $oArticles->getArticleEditForm();
break;

case
'categorydelete':
$iCategoryID = (int)$_REQUEST[
'catID'];
$sRet .= $oArticles->deleteCategory( $iCategoryID );
$sRet .= $oArticles->getArticlesCategoriesList();
break;

case
'editarticle':
$iArticleID = (int)$_REQUEST[
'articleID'];
$sRet .= $oArticles->getArticleEditForm( $iArticleID );
break;

case
'deletearticle':
$iArticleID = (int)$_REQUEST[
'articleID'];
$sRet .= $oArticles->deleteArticle( $iArticleID );
$sRet .= $oArticles->getArticlesCategoriesList();
break;

 

 

 

 

This will deactivate the link...

Quote · 23 Aug 2008

the removing of lines 77 - 96 worked a treat for removing the link on the articles.php. now i have thought about this,and was looking at the code, and just would like to throw this out there,

on lines 40 and 44 where it says ($logged) i am sure this is checking to see if the user is logged in, and if so then its allowing these actions on the site. so i was pondering if you could change the ($logged) [which refers to a user being logged in] to ($loggedadmin) [which should set it in theory to just being visible for admins and moderators] i just dont know the correct syntax for making that change, can somebody offer some light on this subject.


kudos to all who pointed me in the right direction. i appreciate all that you guys do on here.

clubbeyourself
Quote · 23 Aug 2008

For further reading be sure to check this post out and go over it well, it is a very good post.

http://www.boonex.com/unity/forums/?action=goto&topic_id=members-can-post-articles-

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 23 Aug 2008

Thanks will look into that and see waht happens.

clubbeyourself
Quote · 24 Aug 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.