News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Permissions for 2.0.2

Started by bigjoe11a, October 29, 2012, 11:16:57 AM

Previous topic - Next topic

bigjoe11a

I thought i could add my own permissions. How ever as a lot of you thought. It didn't work.

I been reading threw this
http://wiki.simplemachines.org/smf/Adding_custom_permissions

and well it says to look for this
// This is just a helpful array of permissions guests... cannot have.

and that line doesn't exists in the ManagePermissions.php. So now what do I do.

I'm so lost on this. PLEASE.
SMF Forums http://www.df-barracks.com Where gamers go.

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

bigjoe11a

Yes, That's the one I was reading yesterday and I just can't under stand it. I was hoping to find some thing that I could under stand.
SMF Forums http://www.df-barracks.com Where gamers go.

bigjoe11a

Kays, When I install a MOD, Is there an option that I can add that can detect if another mod is installed. I just don't under stand this. I that's where I thinking about your custom permissions mod. It would have me a lot of coding.

SMF Forums http://www.df-barracks.com Where gamers go.

Arantor

There's no way of making it simpler to understand than I did in that tutorial.
Holder of controversial views, all of which my own.


bigjoe11a

Well I been reading a lot sense yesterday and all the tutorials I have read, I don't under stand. So like I said. I'll have to come up with another idea.

Thanks Arantor
SMF Forums http://www.df-barracks.com Where gamers go.

Kays

Quote
Kays, When I install a MOD, Is there an option that I can add that can detect if another mod is installed. I just don't under stand this. I that's where I thinking about your custom permissions mod. It would have me a lot of coding.

If this is to be for your personal use only then adding permissions by using the mod is the easy way out.

But if you do plan on eventually releasing this as a mod. Then it's best to add that up front rather than trying to add it later. Either look at where the custom permission mod makes it's changes. Or look at my Member NotePad mod. That should get you started in the right direction.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

bigjoe11a

Well if I could under stand it. Yes it would be better. Then again I don't think any one would take that kind of time out to show me how to do it.
SMF Forums http://www.df-barracks.com Where gamers go.

Arantor

I'm sorry but I don't see what more help we can give you other than being given exactly how to do what you want (i.e. someone doing it for you completely anyway)
Holder of controversial views, all of which my own.


bigjoe11a

Well no, I just need some thing that has some thing better that explains it better. Some thing simple so that I can under stand it. See let me try and explain this, Ok. After looking at it. It has all kinds of permissions that I can add. How ever it doesn't tell me how to add permissions for my mod. Sense my mod has nothing to do with any thing in the 2 lists that are on the tutorial.

What I need to too add 4 permissions for groups. I guess sense it's the only thing that would work.

Look at this
'do_something' => array(false, 'something', 'something_opts'),
This tells me nothing. Why. I don't under stand like I would this

allowedTo('bjblog_can_view'); //This I under stand. or could it be some thing like this

'bjblog_can_view' => array(false, 'bjblog', 'bjblog_opts'),

Do you know why I'm so lost at this. See your looking at it like a Pro. What about users who have never done this before... ?
Most of the time I just don't under stand what I read and I can read it 100's of times and still not under stand what I read...

So until I can get some one to show me how to add my permissions and show me how to add them to the Admin Groups pages. I'm stuck.



SMF Forums http://www.df-barracks.com Where gamers go.

Arantor

QuoteHow ever it doesn't tell me how to add permissions for my mod. Sense my mod has nothing to do with any thing in the 2 lists that are on the tutorial.

So you want something that isn't a general permission or a per-board permission, like you already said some time ago and I already told you that SMF doesn't have what you want.

QuoteHow ever it doesn't tell me how to add permissions for my mod. Sense my mod has nothing to do with any thing in the 2 lists that are on the tutorial.

You have to read a *little further down the page*

That tutorial that Kays links to explains what every single item does.

QuoteDo you know why I'm so lost at this.

Yes, because you can't read what's in front of you.

QuoteSee your looking at it like a Pro. What about users who have never done this before... ?

Don't forget, I wasn't a pro when I started doing this. I figured it out by studying the code, and then writing a tutorial about it.

QuoteMost of the time I just don't under stand what I read and I can read it 100's of times and still not under stand what I read...

Mostly because it seems like you read the first paragraph and give up. That tutorial explains it all in depth. But since it might not be what you want, or the fact that it isn't written specifically for your personal needs, it won't be suitable for you.
Holder of controversial views, all of which my own.


bigjoe11a

Well go a head and think what ever you want. That's find with me.

SMF Forums http://www.df-barracks.com Where gamers go.

Advertisement: