Solution to hide all private items ?!

can anyone tell me if there is a solution to hide all private items, site wide ?!

I have looked and searched and find no answer.

thanks in advance.

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 24 Apr 2012

bump.

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 24 Apr 2012

anyone ?!

 

bump.

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 26 Apr 2012

Are you referring to those place-holder "images with locks" that show up when someone loads a view page with a mix of private and public items... and they don't have permission to view the private items?  I see this often on Photos pages... and I think it's detracts from the site.  So I too would like to know how to hide them from view.  Seems each item is being checked for privacy anyway... now need to add code to also hide it from display.

 

can anyone tell me if there is a solution to hide all private items, site wide ?!

I have looked and searched and find no answer.

thanks in advance.

 

http://pkforum.dolphinhelp.com
Quote · 26 Apr 2012

All private items.... Videos, Photos, Files etc etc ?

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 27 Apr 2012

Hello,

I think you have to code it yourself. You can create a function which checks if the file is public and add a conditional statement in the Template class which generate the blocks. You have to do it in all modules but once you do it for one it will be just a matter of copy paste and a little edit for other modules.

so much to do....
Quote · 27 Apr 2012

I searched the code and found a solution for you. My last post was about groups and other similar modules based on Twig class. So, forget it..:)

go to base/scripts/BxBaseSearchResultSharedMedia.php at line 154 you will see this

 if (!$bVis) {

            $aUnit = array(

               'img_url' => $this->oTemplate->getIconUrl('lock.png'),

               'bx_if:show_title' => array(

                   'condition' => !$bShort,

                   'content' => array(1)

               )

            );

            $sCode = $this->oTemplate->parseHtmlByName('browse_unit_private.html', $aUnit);

        }

add return; to it..

 if (!$bVis) {

        return;

            $aUnit = array(

               'img_url' => $this->oTemplate->getIconUrl('lock.png'),

               'bx_if:show_title' => array(

                   'condition' => !$bShort,

                   'content' => array(1)

               )

            );

            $sCode = $this->oTemplate->parseHtmlByName('browse_unit_private.html', $aUnit);

        }

Too simple. I already made quite few tutorials for my site...lol. Enjoy...:)

so much to do....
Quote · 27 Apr 2012

I added this as suggested however now the pages with private items show as pages with nothing there ?!

 

for example; pages 1, 2, 3, and 4 show as pages with nothing on now!

is there a way to stop the pages holding private things from showing ?

 

thanks in advance :)

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 27 Apr 2012

Okay i will look further in my free time.

so much to do....
Quote · 27 Apr 2012

I was about to post on the same issue... asking for additional help.  Seems we need to edit the script that loads the page items... to ignore those items the user does not have permission to view.  For added clarification, I've attached an image that shows the item counter and page number display that need to be adjusted (taken from the bottom of the Popular Photos display block).  

Thank you Prashank... your help is very much appreciated.

 

I added this as suggested however now the pages with private items show as pages with nothing there ?!

 

for example; pages 1, 2, 3, and 4 show as pages with nothing on now!

is there a way to stop the pages holding private things from showing ?

 

thanks in advance :)

 

item-counter-issue.jpg · 5.1K · 134 views
http://pkforum.dolphinhelp.com
Quote · 27 Apr 2012

 exactly same as I detailed ...

 

I was about to post on the same issue... asking for additional help.  Seems we need to edit the script that loads the page items... to ignore those items the user does not have permission to view.  For added clarification, I've attached an image that shows the item counter and page number display that need to be adjusted (taken from the bottom of the Popular Photos display block).  

Thank you Prashank... your help is very much appreciated.

 

I added this as suggested however now the pages with private items show as pages with nothing there ?!

 

for example; pages 1, 2, 3, and 4 show as pages with nothing on now!

is there a way to stop the pages holding private things from showing ?

 

thanks in advance :)

 

 

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 27 Apr 2012

bump.

still looking for solution ...

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 3 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.