preventing users from removing actions block

Hi!

I have been trying to find an answer to this here in the forum but found nothing.

Is there a way we can prevent users for setting a privacy level on the actions block on their own profile?

The problem is if they do set it to for example "only me" then no one can report or block them, since the actions block can not be seen from anyone but themselves.

 

Grateful for help!

Erik

 

Quote · 25 Jan 2012

You can replace the key image with a blank/transparent image, then they won't know there's an option to change the privacy settings unless they randomly click in that spot. Not really the fix you're looking for but one I found by accident when I removed the key before knowing what it was for!

Quote · 25 Jan 2012

 

You can replace the key image with a blank/transparent image, then they won't know there's an option to change the privacy settings unless they randomly click in that spot. Not really the fix you're looking for but one I found by accident when I removed the key before knowing what it was for!

 good Idea, but can you explain how to do it just for the action block, because if i change the image then all keys would do the same.

 

Thanks

Quote · 25 Jan 2012

Yes exactly, I'm only talking about the Actions block.

More suggestions are welcomed.

Quote · 25 Jan 2012

I actually managed to fix this now, here's how it can be done:

Find the table sys_page_compose in the db. Here you will simply edit the ActionsMenu row and set the value DesignBox = 0. That will remove the yellow key. It will also remove the other formatting around that box, but that you can easily fix with some css. I rather like it without anything though.

 

 

Quote · 31 Jan 2012

Thats really good, but what i want to do is remove it from all boxes on there own profile

Quote · 10 Feb 2012

@chief

Yes that is as simple, there are a few designbox html files in your templates folder you can play around with.

Look for these:

deafault.html

designbox_0.html

designbox_1.html

designbox_2.html

etc.

The "default" is used on some pages and the designbox_1 is used on most pages for those boxes.

If you would replace all content in designbox_1 with the content from designbox_0 you would not see the key on any box. You would on the other hand have to add some css to make the box's look like you want them though.

It's not hard at all if you know some html/css.

 

Let me know if you need some help, i have done this on my own site.

 

Best,

Eric

 

 

 

 

 

Quote · 19 Feb 2012

A very easy way to hide the keys.

Edit templates/base/css/common.css.

At about line 393 look for this.

div.dbPrivacy {
    height: 16px;
    margin-right: 10px;
    position: relative;
    float: left;   
}


Add the line shown below.

div.dbPrivacy {
    height: 16px;
    margin-right: 10px;
    position: relative;
    float: left;   
    display: none;
}

Then clear the dolphin cache. That will hide all the keys.

https://www.deanbassett.com
Quote · 19 Feb 2012

Yes true, if you want to hide them for all boxes that is probably the simplest way.

I was messing about with he db and the designbox files because i wanted them to show on some of the boxes but not on some.

Quote · 19 Feb 2012

Tried the
Edit templates/base/css/common.css. option but it never worked!

Quote · 30 Apr 2012

I tried using both suggestions. Deanos fix did not work so I tried bowierules fix. This also did not work; in fact there have been some shifts on the profile page that I cannot seem to fix. I replaced the modified forms with the originals, switched the changes in the DB and cleared all cashe but as you can see in the attached jpg, it is not working. Any thoughts here would be appreciated.

Capture.PNG · 12.5K · 232 views
Quote · 7 May 2012

to me it never made any sense to see the actions block on my own profile.

in
/templates/base/scripts/BxBaseProfileView.php

around ~414 find

        /*
        if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
            return null;
        */

and remove whats in red, what that does it won't show the actions block when you view your own profile but it's visible when you view other members profile.



Quote · 8 May 2012

Removing the actions box from the owners profile doesnt solve the problem that users can hide their own actions box.

And if you remove the actions box from the owners profile then you might have some other issues as well.

 

My solution above works, I'm using it my self at the moment. The key is gone from the actions box and the users can therefore not hide it.

 

Try it again, maybe you missed something.

Quote · 8 May 2012

@


If you did as i suggested:

"Find the table sys_page_compose in the db. Here you will simply edit the ActionsMenu row and set the value DesignBox = 0. That will remove the yellow key. It will also remove the other formatting around that box, but that you can easily fix with some css. I rather like it without anything though."


Then you would not reach the result in your screenshot. Whatever you have done has affected ALL boxes.

IF you have only played around with the css in the template files, thats not enough. I just said that if you do the above, then you might need to play around with the formating in the template files to make it look good.


Eric

Quote · 8 May 2012

 

Removing the actions box from the owners profile doesnt solve the problem that users can hide their own actions box.

If it's not displayed how can a member hide it ?

And if you remove the actions box from the owners profile then you might have some other issues as well.

What other issues are we talking about ?

 

My solution above works, I'm using it my self at the moment. The key is gone from the actions box and the users can therefore not hide it.

 

Try it again, maybe you missed something.

 

Quote · 8 May 2012

Apparently I was tired when I wrote that :)

 

What I meant to say was: We were looking for a solution that made it impossible for users to hide their own actions box for other users, i.e. remove the yellow key. My solution does exactly that.

If you would hide the whole box however, you might miss out on a lot of functions that comes with third party mods, e.g. buttons that are placed there. There are of course also pretty useful Dolphin buttons placed there, e.g. "Customize your profile", "Edit Profile" etc.

 

Just go ahead and use my solution and all will be fine :)

 

Eric

 

Quote · 8 May 2012

like i said before the action box on my own profile was just useless (my opinion :) )

Quote · 8 May 2012

 Ok, I navigate to sys_page_compose.  You mention ActionsMenu row. I cannot find this, just the Action menu at the far right side of the table and I edit default from 1 to 0 (I am assuming this is what you are talking about). What am I missing here? Like I said earlier, after clearing all cache, still no change. The keys stay and the text still messed up.

@


If you did as i suggested:

"Find the table sys_page_compose in the db. Here you will simply edit the ActionsMenu row and set the value DesignBox = 0. That will remove the yellow key. It will also remove the other formatting around that box, but that you can easily fix with some css. I rather like it without anything though."


Then you would not reach the result in your screenshot. Whatever you have done has affected ALL boxes.

IF you have only played around with the css in the template files, thats not enough. I just said that if you do the above, then you might need to play around with the formating in the template files to make it look good.


Eric

 

Quote · 9 May 2012

You should also know that I decided to proceed by doing what was suggested;

If you would replace all content in designbox_1 with the content from designbox_0 you would not see the key on any box. You would on the other hand have to add some css to make the box's look like you want them though.

After this failed I swapped the modified pages with the originals but not sure where the error has been made. This clearly changes something somewhere I am not certain of where to find.

 

Quote · 9 May 2012

Thank you prolaznik... your solution worked for my site.  And I agree... I can live without that action block.  Only the edit profile button was worth keeping and I may try to create a substitute for it.

to me it never made any sense to see the actions block on my own profile.

in
/templates/base/scripts/BxBaseProfileView.php

around ~414 find

        /*
        if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
            return null;
        */

and remove whats in red, what that does it won't show the actions block when you view your own profile but it's visible when you view other members profile.



 

http://pkforum.dolphinhelp.com
Quote · 9 May 2012

Hello, I am no longer concerned with removing the key icons. I simply edited all privacy options out but public so members have no other options to choose from, although it would be cleaner if they were gone. Anyway, can anyone tell me where I can go to shift the text back to its original location beside the keys and not overtop of the block border line. I would very grateful for any tip.

Quote · 9 May 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.