Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Widgets & Sidebars

UserPost

11:17 pm
September 9, 2009


egordin

Member

posts 8

1

Hello!

I was wondering if it was possible to do two things:

  1. Allow an editor to have access to the widgets admin panel
  2. Restrict an editor to a specific sidebar (I have different sidebars for different categories & pages)
Thanks in advance!
Eugene

10:51 am
September 11, 2009


egordin

Member

posts 8

2

Alright I figured out how to do the first one using the Adminimize.

Does anyone know how I can do the 2nd one? Restrict a user (or Role Scoper group) to a particular sidebar?

Is there a conditional tag for user groups? Thanks! 

1:50 pm
September 11, 2009


Kevin

Admin

posts 2386

3

egordin said:

Alright I figured out how to do the first one using the Adminimize.

Does anyone know how I can do the 2nd one? Restrict a user (or Role Scoper group) to a particular sidebar?

Is there a conditional tag for user groups? Thanks! 


If your sidebars are named to correspond to a page / post name, I have some code that will do that. Please explain the correlation and naming of the sidebars; I will followup early next week.

Thanks everyone for your patience as I've been working day and night to help a client meet a tight deadline.

2:56 pm
September 11, 2009


egordin

Member

posts 8

4

Thank you for getting back to me Kevin!

The sidebars on my site are actually what's commonly referred to as Widget Areas. 

Currently my site is set up like this:


  • Root
    • Homepage (page, admin access only)
    • About (page, admin access only)
    • Class1 (category, teacher1 access)
      • Sub-blog (category, teacher1 access)
    • Class2 (category, teacher2 access)
      • Sub-blog (category, teacher1 access)
    • Classrooms (page, admin access only)
      • Class1page (page, teacher1 access)
        • Sub-page (page, teacher1 access)
      • Class2page (page, teacher2 access)
        • Sub-page (page, teacher1 access)

Etc.

The reason that it's set up that way is because I couldnt find a way to put a page under a category, so that http://www.site.com/class1 would go to the category class1 category, and the http://www.site.com/class1/class1page would go to the page. If you know of a better way to set this up, let me know.

Anyway, right now, I have two groups set up in Role Scoper, Class1Teachers and Class2Teachers. Class1Teachers can only post under the Class1 post category, and create child pages under the Class1page.

Each class page & category post listing has two widget areas - one sidebar, and one announcement area. These are defined in the functions.php in my custom theme, so I can name them whatever I want. See this screenshot ("alef" is class1 and "hay" is class2).

The simplest way that I see to do this is to be able to assign a widget area to a Role Scoper group, and restrict the other widget areas from view and editing.

Does this help? Let me know and I can clarify.  

1:08 pm
September 22, 2009


egordin

Member

posts 8

5

Kevin did I confuse you? Is there still hope for getting this done?

Thanks!

8:09 pm
September 29, 2009


egordin

Member

posts 8

6

I don't want to bump my own post, but I didn't hear back from you Kevin and I was wondering if you can still help me with this.

Thanks again for everything,

Eugene

10:19 pm
September 29, 2009


Kevin

Admin

posts 2386

7

No, you didn't confuse me and yes, I do still plan on helping you.

I'm expecting to find some time later this week after completing a custom-hire project tomorrow.

11:07 pm
September 29, 2009


egordin

Member

posts 8

8

Thank you so much! I really appreciate it!

1:07 am
November 8, 2009


egordin

Member

posts 8

9

Hi Kevin,

I was wondering if you ever got around to figuring this out. I'm still looking for a solution.


Thank you,


Eugene

1:07 am
November 8, 2009


egordin

Member

posts 8

10

[double post sorry]

9:20 am
November 9, 2009


Kevin

Admin

posts 2386

11

egordin said:

Hi Kevin,

I was wondering if you ever got around to figuring this out. I'm still looking for a solution.


Thank you,


Eugene


I just emailed you the code that I have. Not sure how it will apply to your configuration and I'm not ready to support it as a public plugin but the code is fairly brief and straightforward; free to use or modify as needed.


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1185

Posts: 5380

Members:

There are 1176 members

There are 1 guests


Kevin has made 2386 posts

Top Posters:

metal450 - 152

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin