I would like to disable url sharing in wall, but I could not figure it out in admin. I am sure it can be removed manually in the code somewhere. Can someone assist me?
I would like to disable url sharing in wall, but I could not figure it out in admin. I am sure it can be removed manually in the code somewhere. Can someone assist me? |
Hello if want delete share link from wall block follow these commands: 1. Open the modules/boonex/wall/classes/BxWallModule.php 2. Find and delete this code line: 'wall-ptype-link' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsPostObject . '.changePostType(this)', 'class' => 'wall-ptype-ctl', 'icon' => $this->_oTemplate->getIconUrl('post_link.png'), 'title' => _t('_wall_share_link')) PS: If possible do not write me personally, please try to ask on the forum first |
Thank you very much. That worked perfectly! |
You are welcome! PS: If possible do not write me personally, please try to ask on the forum first |
Hi SashaE, A similar question do you know how to change the Wall links so that "Posts by {0}" show up by default not "All Posts" on the wall. Until someone figures out how to do away with all the private photo messages displaying I think it would be better to display "Posts By {0}" by default and thank you. Regards, Coolmoe |
Please provide me with explanation screen shot. Thank you! PS: If possible do not write me personally, please try to ask on the forum first |
Hi Sasha, Thanks. I have attached the screenshot. I am aware of how to change the links at the top of the wall within BxWallModule.php, but I can not figure out how to make the actual data that is displaying by default render what I would like. Please see the img. Regards, Coolmoe |
Ok open the modules/boonex/wall/classes/BxWallModule.php find these code lines:
'wall-view-all' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsViewObject . '.filterPosts(this)', 'title' => _t('_wall_view_all'), 'active' => 1), and replace with : 'wall-view-all' => array('href' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_sJsViewObject . '.filterPosts(this)', 'title' => _t('_wall_view_all')), I just moved the active parameter below of view all links! PS: If possible do not write me personally, please try to ask on the forum first |
Thanks Sasha I did that first and that actually only changed the links in the top of the block, but thank you all in all. I just found the solution on around line 669. Solution is below: unction serviceViewBlock($mixed, $iStart = -1, $iPerPage = -1, $sFilter = '', $sType = 'id') { Changed to: unction serviceViewBlock($mixed, $iStart = -1, $iPerPage = -1, $sFilter = 'owner', $sType = 'id') { I had to add the owner filter the above first line. Now with your explanation and this one by default Owner post are displayed first on wall and all the Private Message posts are not displayed first. Thanks SashaE... |
Thanks SashE I plan on changing it back when I figure out how to not display the all the private "photo, video, etc. posts. For now it will work as I need it. :) |
Ok good, you're welcome! PS: If possible do not write me personally, please try to ask on the forum first |