Conditional Based On Membership Level?

Hi there, Everyone:

Is there an easy way to do a conditional based on the membership level?

I wanted to disable the APPEARANCE of the blog tabs (Add Post, My Blog) for memberships that are NOT an administrator. (In essence, i want ONLY administrators to see those buttons on the right hand side).

Another user (ggsinc) showed me how to turn them off for everybody, but in particular, I want to disable them for everybody EXCEPT administrators. Is that possible?

Thanks in advance.

Quote · 13 Feb 2012

Hello

Yes, you may enable them for Admins only. If you hid the buttons via PHP code then you need to undo the changes and add checking like the following

if(isAdmin()) {
    [the code to display buttons goes here]
}

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 14 Feb 2012

Hi there, Anton:

Any idea in which php file / template I would find this?

I am new to dolphin, so while I can do some php, I really don't know which file to look in.

Thanks in advance.

Quote · 15 Feb 2012

Hello 

Another user (ggsinc) showed me how to turn them off for everybody, but in particular.

 How did you do this? Did you hide the buttons via database or PHP part of Dolphin?

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 15 Feb 2012

Hi there, AntonLV:

You asked:

" How did you do this? Did you hide the buttons via database or PHP part of Dolphin?"

Actually, I did it using the builder section of Dolphin admin to remove the Add Blog links for ALL the users.

But that works universally. It won't let me keep them for administrators.

So I put them back in the builder section.

I hope that makes sense.

Quote · 16 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.