How do I disable sites adding for members?

I want to use the sites module but do not want members to use it. As of what I know there is no option for only admin to add sites. How would I get rid of the buttons my sites / add site or the add site at the wall. I only want admin to see those buttons so I can add sites.

Anyoe know how I can do this or do I need a mod? By the way, I think all modules need a feature to enable/disable for admin only

Quote · 29 Jul 2010

Bump

Quote · 29 Jul 2010

admin - settings - membership settings - Sites Add - click check box - click disable at the bottom of the list.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 29 Jul 2010

admin - settings - membership settings - Sites Add - click check box - click disable at the bottom of the list.

I'll check it out. Thank

Quote · 29 Jul 2010

My Sites is still visible at Sites home. How do I remove that?

Quote · 29 Jul 2010

My Sites is still visible at Sites home. How do I remove that?

Bump

Quote · 30 Jul 2010

Bump. Anyone?

Quote · 30 Jul 2010

go to page builder pick home page click on the sites block and uncheck guests or what ever it is

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 30 Jul 2010

membership settings ;)

Quote · 30 Jul 2010

 

membership settings ;)

 

No not membership settings.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 30 Jul 2010

My Sites is still visible at Sites home. How do I remove that?

Sorry, I mean it's still visible for members. I don't want members to see it except the admin.

Quote · 31 Jul 2010

first you go to your menu builder and uncheck guest and members at the site tab.

the same you do in page builder at "Site HoN" Page as well as "Site View Page"

Then you go to page builder => Homepage and move the "Recently Added Sites" block to "Inactive Blocks"

That should do!

But if youwant the admin to see then go to => Membership Levels. for each membership disable and make a membership for your admin to enable. In this case forget the above mentioned!

Disable all those functions for each membership:

sites add
sites approve
sites browse
sites delete any site
sites edit any site
sites mark as featured
sites search
sites view
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 31 Jul 2010

first you go to your menu builder and uncheck guest and members at the site tab.

the same you do in page builder at "Site HoN" Page as well as "Site View Page"

Then you go to page builder => Homepage and move the "Recently Added Sites" block to "Inactive Blocks"

That should do!

But if youwant the admin to see then go to => Membership Levels. for each membership disable and make a membership for your admin to enable. In this case forget the above mentioned!

Disable all those functions for each membership:

sites add
sites approve
sites browse
sites delete any site
sites edit any site
sites mark as featured
sites search
sites view

I do want members/guests to view/browse/search sites. Just don't want them to add sites or see my sites button. If My Sites is visible and they click it, they can still add sites on that page

Quote · 31 Jul 2010

I do want members/guests to view/browse/search sites. Just don't want them to add sites or see my sites button. If My Sites is visible and they click it, they can still add sites on that page

you do adjust that in Membership Level

Disable  those functions for each membership you don't want them to have:

sites add
sites approve
sites delete any site
sites edit any site
sites mark as featured

and enable the functions you want them to have:
sites search
sites view
sites browse

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 31 Jul 2010

Lol, the memberships levels where already taken care of that's why I don't understand why it still shows the My Sites button at Sites homepage.

Quote · 31 Jul 2010

Lol, the memberships levels where already taken care of that's why I don't understand why it still shows the My Sites button at Sites homepage.

first you go to your menu builder and uncheck guest and members at the site tab.

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 31 Jul 2010

Lol, the memberships levels where already taken care of that's why I don't understand why it still shows the My Sites button at Sites homepage.

first you go to your menu builder and uncheck guest and members at the site tab.

If I uncheck those from menu builder, then Sites is removed from the menu. I do want them to see Sites from the menu and visit Sites homepage. Everything else is taken care of. Only getting rid of the My Sites button is a problem

Quote · 31 Jul 2010

If I uncheck those from menu builder, then Sites is removed from the menu. I do want them to see Sites from the menu and visit Sites homepage. Everything else is taken care of. Only getting rid of the My Sites button is a problem

What button are you talking about, Can you provide a photo of what you mean?

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 31 Jul 2010

What button are you talking about, Can you provide a photo of what you mean?

CLICK TO ENLARGE

Quote · 31 Jul 2010

Edit the code for the action buttons.

You need to do this in phpMyAdmin

The table is sys_objects_actions. Make a backup of that table before making these changes.

I am not sure why the add site button is not there, but i will provide procedures to hide both the buttons to all but admin.

This will not be easy. In phpmyadmin run this query. SELECT * FROM `sys_objects_actions` WHERE `Type` = 'bx_sites_title';

That should return 3 results. You will edit 2 of them.

Look for the entry where URI is {BaseUri}browse/my

Then change the Eval field to this.

if ($GLOBALS['logged']['admin']) return _t('_bx_sites_action_my_sites'); return;


Then look for the one where the URI matches {BaseUri}browse/my/add

And change the Eval field to this.

if ($GLOBALS['logged']['admin'] && {isAllowedAdd} == 1) return _t('_bx_sites_action_add_site'); return;



These changes will result in the button only being displayed for admins.

https://www.deanbassett.com
Quote · 31 Jul 2010

:-)

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 31 Jul 2010

Oh, and you will need to clear the cache, or just remove sys_objects_actions.inc from the cache folder.

https://www.deanbassett.com
Quote · 31 Jul 2010

Actually, duh, you only need to do that for the first button i listed. The second one which is the add button has a isallowed check from the membership levels that hides that button.

https://www.deanbassett.com
Quote · 31 Jul 2010

@ deano92964, dolphin_jay & Diddy

Thanks for the help. Appreciate it.

Quote · 31 Jul 2010
 
 
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.