Hi all, I run a gaming guild site and I use pnAvatar. So far only the admins of the site can see the 'upload a custom avatar' selection.
I read the docs that came with pnAvatar and it says:
To be authorized to upload avatars an user must have at least Add permission for the pnavatar module. Users with overview, read, comment, moderate or edit permission can't upload avatars.
I've tried setting the permission rule as this:
Guild Members pnAvatar:: .* Add
However guild members still can't view that portion.
Can someone tell me the correct permission to put in?
Thanks in advance!
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnAvatar permissions problem
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Hi QV,
Ya know I am going to ask for your permissions by now, don't ya?
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 34
*whine*
They haven't changed since last time you asked for them. lol
Ok, here they are:
Admins .* .* Admin
2 Administrator .* .* Comment
3 Admins Menublock:: Main Menu:Administration: Read
4 All groups Menublock:: Main Menu:: None
5 All groups Menublock:: Menu:Administration: None
6 All groups pnForum:: :1: None
7 Unregistered Menublock:: Main Menu:(My Account|Logout): None
8 Beta pnForum:: :12: None
9 Beta .* .* Comment
10 Guild Members pnForum:: :15: None
11 Guild Members pnForum:: :12: None
12 Guild Members pnForum:: .* Comment
13 Guild Members pnForum:: .* Read
14 Guild Members advanced_polls:pollblock: .* Read
15 Guild Members pnAvatar:: :: Add
16 Guild Members .* .* Comment
17 User advanced_polls:pollblock: :: None
18 User Menublock:: Menu:TeamSpeak Chat: None
19 User pnForum:: :7: None
20 User pnForum:: :6: None
21 User pnForum:: :5: None
22 User pnForum:: :9: None
23 User pnForum:: :12: None
24 User pnForum:: :13: None
25 User pnForum:: :14: None
26 User pnForum:: :15: None
27 User pnForum:: :16: None
28 User pnForum:: .* Comment
29 User Downloads:: :: None
30 User .* .* Read
31 Unregistered advanced_polls:pollblock: :: None
32 Unregistered Menublock:: Menu:TeamSpeak Chat: None
33 Unregistered pnForum:: :7: None
34 Unregistered pnForum:: :6: None
35 Unregistered pnForum:: :1: None
36 Unregistered pnForum:: :5: None
37 Unregistered pnForum:: :9: None
38 Unregistered pnForum:: :13: None
39 Unregistered pnForum:: :14: None
40 Unregistered pnForum:: :12: None
41 Unregistered pnForum:: :15: None
42 Unregistered pnForum:: :16: None
43 Unregistered Downloads:: :: None
44 Unregistered .* .* -
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
Off-Topic, just a small hint: you can combine several rules to one single rule, for example:
Code
Unregistered pnForum:: :(7|6|1|5|9|13|14|12|15|16): None
--
Guite | ModuleStudio -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
Hello
I am confused because when you give your permission rule for the first time you wrote :
Guild Members pnAvatar:: .* Add
Wich is right but later in your permissions list you wrote
Guild Members pnAvatar:: :: Add
wich is wrong
--
Visit my live reef aquarium.
My Amazon wish list. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Since you are the mod author...
What is the difference between unspecified parameters (::) and wild card (.*) They are used interchangeably all the time..
--
David Pahl
Zikula Support Team -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
Hello,
Beeng the module's author certainly doesn't makes me a postnuke permissions expert
I was trying to find some reason for his permissions rule not working given the fact that I know pnavatar is working well on several website with the .* wildcard. But permission code in pnavatar is pretty standard so if you say :: and .* are interchangeables, they certainly are
So one question remain why is it not working ?
--
Visit my live reef aquarium.
My Amazon wish list. -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
On a second note,
I have not used your module in quite a while, I just use the Avatar 1.1 . But why not give the users 'edit' permissions instead of 'add'?
--
David Pahl
Zikula Support Team -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
1 Admins .* .* Admin
2 Administrator .* .* Comment
(Do you have a second Admin group here? that only has comment abilities?)
3 Admins Menublock:: Main Menu:Administration: Read
(This is trumped by rule 1, not needed).
4 All groups Menublock:: Main Menu:: None
(This states that noone can see Main Menu, except where trumped by Admins and Administrator (rule 1 and 2))
5 All groups Menublock:: Menu:Administration: None
6 All groups pnForum:: :1: None
7 Unregistered Menublock:: Main Menu:(My Account|Logout): None
8 Beta pnForum:: :12: None
9 Beta .* .* Comment
Beta and Administrator are the same except for rule 8?)
10 Guild Members pnForum:: :(12|15): None
11 Combined to rule 10.
12 Guild Members pnForum:: .* Comment
13 Guild Members pnForum:: .* Read
Delete this rule, it is trumped by rule 12.
14 Guild Members advanced_polls:pollblock: .* Read
15 Guild Members pnAvatar:: :: Add
16 Guild Members .* .* Comment
17 User advanced_polls:pollblock: :: None
18 User Menublock:: Menu:TeamSpeak Chat: None
19 User pnForum:: :(7|5|9|12|13|14|15|16): None
20-27 combined to 19
28 User pnForum:: .* Comment
29 User Downloads:: :: None
30 User .* .* Read
31 Unregistered advanced_polls:pollblock: :: None
32 Unregistered Menublock:: Menu:TeamSpeak Chat: None
33 Unregistered pnForum:: :(7|6|1|5|9|13|14|12|15|16): None
34-42 Combined into rule 33
43 Unregistered Downloads:: :: None
44 Unregistered .* .*
(read?)
Then you have:
1 Admins .* .* Admin
2 Administrator .* .* Comment
3 All groups Menublock:: Main Menu:: None
4 All groups Menublock:: Menu:Administration: None
5 All groups pnForum:: :1: None
6 Unregistered Menublock:: Main Menu:(My Account|Logout): None
7 Beta pnForum:: :12: None
8 Beta .* .* Comment
9 Guild Members pnForum:: :(12|15): None
10 Guild Members pnForum:: .* Comment
11 Guild Members advanced_polls:pollblock: .* Read
12 Guild Members pnAvatar:: :: Add
13 Guild Members .* .* Comment
14 User advanced_polls:pollblock: :: None
15 User Menublock:: Menu:TeamSpeak Chat: None
16 User pnForum:: :(7|5|9|12|13|14|15|16): None
17 User pnForum:: .* Comment
18 User Downloads:: :: None
19 User .* .* Read
20 Unregistered advanced_polls:pollblock: :: None
21 Unregistered Menublock:: Menu:TeamSpeak Chat: None
22 Unregistered pnForum:: :(7|6|1|5|9|13|14|12|15|16): None
23 Unregistered Downloads:: :: None
24 Unregistered .* .* (read?)
Still rule 3 is in question?
Now the reason, if you are going to ask a permission question, I am not going to search for your prior permissions, and if you are add a permission it does not let me see where it is placed, and finally, this tread may help some others...
edited by: AmmoDump, Oct 02, 2007 - 01:46 PM
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 34
Ok, that certainly cleans up my rules. (Thanks for that) However it doesn't fix the problem of why the guild members group can't upload avatars.
To answer questions made since my post.
I had tried several solutions to the rule problem.
both with .* and with :: Neither worked. That's why you see my display as one instead of the other.
Also... according to my first post which quotes the install notes for pnAvatar it says that 'edit' will not allow users to upload avatars. I just trusted it in that, and haven't tried it.
My rules now look like this thx to AmmoDump
1 Admins .* .* Admin
2 Administrator .* .* Comment
3 All groups Menublock:: Main Menu:: None
4 All groups Menublock:: Menu:Administration: None
5 All groups pnForum:: :1: None
6 Beta pnForum:: :12: None
7 Beta .* .* Comment
8 Guild Members pnForum:: :(12|15): None
9 Guild Members pnForum:: .* Comment
10 Guild Members advanced_polls:pollblock: .* Read
11 Guild Members pnAvatar:: :: Add
12 Guild Members .* .* Comment
13 User advanced_polls:pollblock: :: None
14 User Menublock:: Menu:TeamSpeak Chat: None
15 User pnForum:: :(7|5|6|9|12|13|14|15|16): None
16 User pnForum:: .* Comment
17 User Downloads:: :: None
18 User .* .* Read
19 Unregistered advanced_polls:pollblock: :: None
20 Unregistered Menublock:: Menu:TeamSpeak Chat: None
21 Unregistered pnForum:: :(7|6|1|5|9|13|14|12|15|16): None
22 Unregistered Downloads:: :: None
23 Unregistered .* .* Read
I've tested it and the pnAvatar upload avatar function still doesn't work.
edited by: queenvamp, Oct 02, 2007 - 04:27 PM -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Hi QV,
There is nothing permission-wise that should be stopping you... Try 'edit'.
The upload function works for your Admins correct?
I still wonder about permission 3 Are you not using the main menu? Except for Admins?
Did you try Avatars 1.1? Does pnAvatar offer you something special?
If you still need pnAvatars and edit does not work, send me a PM with a messenger handle.
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 34
I've tried edit, comment, moderate, and even admins. For some reason nothing works.
The admins can use the upload function, yes. That's why I believe it is a permissions issue.
You are right about rule #3, only the admins use that block.
I haven't used Avatars 1.1. I think pnAvatar was the first I tried. Now that we've been using it, I'm hesitent to try something else.
I'll send you a PM as you requested. Thanks.
EDIT:
I fixed it. It works now. It is pnavatar NOT pnAvatar.
Its always something simple isn't it?
Thanks guys!
edited by: queenvamp, Oct 02, 2007 - 05:13 PM -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Hehe, I didnt think it was anything permission wise...
Remember you can always look at (click on to bring up JS window) your component and instance to see 'setup'...
edited by: AmmoDump, Oct 02, 2007 - 08:44 PM
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 34
Changing the permission to:
11 Guild Members pnavatar:: :: Add
worked
Yes, that's how I figured it out. I went to the modules section and saw that it was named pnavatar.
I feel kinda stupid about that, but I guess I was just too used to the format of all the modules using a capital letter after the PN.
That's what we have to watch for with 3rd party modules. heh
Now.. if I could just get my polls to work.
edited by: queenvamp, Oct 03, 2007 - 02:54 AM -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
Oops ! my bad
I missed the case problem !!
One day I decided that all my module's names will be lowercase only (I think at some stage it was even an advice given to all module's developpers to do so) this is why they are named books, cards, phpcomic, trackercam, weather, ...
For the differences between pnavatar and Avatar, both of them are descendants of the old EnvoAvatar module, pnavatar have a very cool group avatars feature (using prefix that permit some avatars to only be allowed for some groups) and Avatar have some other very cool features including avatar resize functions.
At one stage I asked Jorg about merging both modules but unfortunely none of us had time to do so.
Note that the actual released version of pnavatar doesn't work with PostNuke .8 but I will release a fixed version as soon as .8 is out.
edited by: jmvedrine, Oct 03, 2007 - 02:03 PM
--
Visit my live reef aquarium.
My Amazon wish list.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
