Moved Forums

ThemeSnap.com Forums have Moved! Please note that our forums have moved here: New ThemeSnap.com Forums. You will still be able to read forum threads in the forum categories or threads below. However, you will not be able to post new forum topics or replies to existing threads. Please post any new forum posts in our new forum section by registering a new account.

Permission issue

8 replies [Last post]
toma
toma's picture
Offline
Joined: 04/11/2008
Points: 0

hello

I install the Efficient theme in my french portal website, and everythings works fine, i have some content type that users can add video or classified, i moderate the content added (not published). The problem is, when a user submit a content type even if its not published, it get display if the user choose one of the Theme Setting

You can try on my live web site

http://www.rmaroc.com/ajouter/video

I have many spam attack so i will let the content submit to only members, how i can make the Theme setting to show only for Admins 

Thanks for the great theme 

 

toma
toma's picture
Offline
Joined: 04/11/2008
Points: 0
Any help please, i have a

Any help please, i have a community website, so people can add classified etc, and the Theme Setting apear on all submit form, its not good at all, as everyone can place nodes on feature block even i set nodes creation to moderation! Its a big issue for this theme, if you can to use a multiple users or a community website that every users can add content, the solution can be, set permission or only let the Theme setting apear on content type that we choose

Thanks

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
Hi Toma, working on the issue now

Hello Toma. We are looking into this isue right now and I'll post here when we have an answer to this problem (hopefully) tomorrow. Thanks!

otterhop
otterhop's picture
Offline
Joined: 04/06/2008
Points: 0
Same issue!

Glad to hear there's a fix in the works. I just launched at www.otterhop.com and realized my flaw--anyone who submits content can overwrite my featured stories!

Thanks for a great theme!

otterhop
otterhop's picture
Offline
Joined: 04/06/2008
Points: 0
one more note on featured areas w/community blogging

I still need to let contributing users upload a featured_image--I just don't want them to be able to assign the node to any of the featured positions. Hope that helps.

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
Fix for contributing users and the theme settings option

Hello,
This issue is fixed with a few tweaks to the Efficient module (efficient.module) delivered with the theme.

To fix this, do the following:

Add several new lines to efficient.module (in lines 3 through 8). So, the existing code at the top which looks like this:

// $Id$

function efficient_menu($may_cache){

**Should be replaced with this instead:

// $Id$
/**
* Implementation of hook_perm().
*/
function efficient_perm() {
return array('create block');
}

function efficient_menu($may_cache){

**Step 2: Then change this in line 27:

if ($form['type']['#value'] .'_node_form' == $form_id ) {

**to this instead:

if ($form['type']['#value'] .'_node_form' == $form_id && user_access('create block')) {

Adding the above will create the access control functionality within the "/admin/user/access" area under "efficient module"

You can also see this new option to control front page theme settings access on the dropdown menu under your users menu, "/admin/user/user"

Alternatively, you could email supportatthemesnap [dot] com for the updated efficient.module if you do not feel comfortable making these changes yourself.

We will likely send out this fix via email to people who have purchased, but just wanted to post here for those wanting to quickly fix it.

Thanks

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
This is exactly what this patch does

Hi otterhop,
This fix still lets users contribute images but just eliminates the ability for them to post to the front page via the "Theme settings" dropdown when creating content.

otterhop
otterhop's picture
Offline
Joined: 04/06/2008
Points: 0
Patch works great!

Brian--that did the trick! Thanks again!

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
You're welcome!

Hi otterhop,
You're welcome. The patch was minimal (only 5 to 7 total lines of code) to the efficient.module, so I'm glad it works well for your needs.

We appreciate the reply though. ;-)

Brian

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <strong> <code>
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.