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
|
|
admin - settings - membership settings - Sites Add - click check box - click disable at the bottom of the list. https://dolphin-techs.com - Skype: Dolphin Techs |
admin - settings - membership settings - Sites Add - click check box - click disable at the bottom of the list.
I'll check it out. Thank
|
My Sites is still visible at Sites home. How do I remove that? |
My Sites is still visible at Sites home. How do I remove that?
Bump
|
|
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 |
|
No not membership settings.
https://dolphin-techs.com - Skype: Dolphin Techs |
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.
|
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 :-) |
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
|
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 :-) |
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. |
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 :-) |
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
|
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 :-) |
What button are you talking about, Can you provide a photo of what you mean?

CLICK TO ENLARGE
|
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 |
Diddy is not greedy and has time. Dolphin is cool and its not just mine :-) |
Oh, and you will need to clear the cache, or just remove sys_objects_actions.inc from the cache folder.
https://www.deanbassett.com |
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 |
@ deano92964, dolphin_jay & Diddy
Thanks for the help. Appreciate it.
|