View Single Post
  #3 (permalink)  
Old 01-05-2007, 04:56 PM
lokapujya's Avatar
lokapujya lokapujya is offline
New Pligger
 
Join Date: Dec 2006
Location: Boston
Posts: 5
Send a message via AIM to lokapujya
A quick way would be to try removing the "Submit a New Story" button for all users that are not God/Admin or the special level. If that is the only way to get to Submit page, it should work. You have to find the code that creates the side bar.
Take a look at
\PLIGG\templates\digitalnature\sidebar_modules\mis c_links_1.tpl

Try putting an if statement around the line that creates the "submit a new story". Something like:
if($current_user->user_level == "admin" or $current_user->user_level == "god"){
}

If you get that working, then you can make it more robust so that it is configurable per group -- but, that is more difficult.
Reply With Quote