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.
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! |
bump. DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
anyone ?!
bump.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
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 |
All private items.... Videos, Photos, Files etc etc ? DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
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.... |
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.... |
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! |
Okay i will look further in my free time. so much to do.... |
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 :)
http://pkforum.dolphinhelp.com |
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! |
bump. still looking for solution ... DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |