Hello
Whenever a new entry of product is posted in store, it appears on the outline. What I want to achieve is to change what appears, i.e I want a standard user to be able to see the Title of that product, the image, the description, etc...BUT NOT the person that posted it. Other "membership Types" should be able to see everything as it is... So In the case of the attached screenshot, I want the user to be able to see everything BUT "Aled Allis" . Is this possible..at all? mbonez |
mbonez |
Look in the Wall module for this; while called OutLine the module is still call Wall in the list of modules. Look for the key in the templates and that will lead you to the function that generates that key. From there you can add the code to check membership level of the person logged on. Geeks, making the world a better place |
GG is right.
check the wall code... you have two functions one is timeline and other is outline. I think you should make the change in both functions tho...
get the function that gives you the logge_in member level and then use a if else to show of hide the part you want.
|
Erm, Thanks, but I don't see a Wall module? I'm using Dolphin 7.1.4 mbonez |
Oh right, Wall module is NOT appearing in my admin panel but its folder is inside the modules/boonex directory... I hope this is a normal thing lol, but I'll look into the folder now. mbonez |
Oh right, Wall module is NOT appearing in my admin panel but its folder is inside the modules/boonex directory... I hope this is a normal thing lol, but I'll look into the folder now.
Yes, the Wall module was reworked into the OutLine/TimeLine but the name of the module stayed the same because of all the calls looking for /modules/boonex/wall just easier to leave that the same since it is behind the scene.
Geeks, making the world a better place |
Erm, Thanks, but I don't see a Wall module? I'm using Dolphin 7.1.4
you find it here modules/boonex/wall
the file you need to check are here: modules/boonex/wall/classes
BxWallDb.php BxWallModule.php
or one of the other ones ...
|
Thanks. Found that file... but its got loads of functions...any further help on which one I should specifically be looking at? mbonez |
Thanks. Found that file... but its got loads of functions...any further help on which one I should specifically be looking at?
What is your php skill level? Are you comfortable digging into code and making changes? Have a backup copy of the files you are changing, either from the Dolphin zip or copy the file to your hard drive.
Geeks, making the world a better place |
erm, Php Skill Level, about 65% - a 2nd year computing student at Uni. I can dig into code and understand what I see, just not sure what exact part I'm looking for.. and also not sure on what I'll need to change... Yes, just made backUps..
Found the attached function inside BxWallTemplate.php, Is that sort of where I should be looking at? mbonez |
Do not edit the Wall module if you only want to change stuff for store module.
Duplicate
"modules/boonex/wall/templates/base/outline_item_image.html"
to
"modules/boonex/store/templates/base/outline_item_image.html"
Edit BxStoreModule.php at around line 349
add this
'grouped' => 'wall_outline_grouped', 'single' => 'outline_item_image' Edit the html file you just duplicated and remove the stuff you don't want.
which i suppose is this
<div class="wall-oii-author __mod_prefix__-wall-oii-author bx-def-margin-sec-top"> ..... </div>
Good Luck
so much to do.... |
Problem solved! - Although it now applies to ALL membership but it doesn't really matter anyway, the idea is for a standard member to NOT see the Author......and while a premium member would know more about the post when they click on it, a standard member would be restricted access. So its all good! THANKS Prashank25 ...and cheers to GG and Solusoft for their effort!! mbonez |
You may also want to look at the Page Access Control module that ships with Dolphin. The PAC controls access to pages and page blocks, as well as the navigation menus, based on membership levels. Geeks, making the world a better place |
Yeah, that was what I used to restrict the standard user from accessing the link anyway... but the fact that the standard user was seeing the Author kinda defeated the purpose of restricting access...hence why I needed to remove the author from the Outline. Thanks! mbonez |
Sorry i missed that part, i read pretty fast and post it. To restrict only standard membership from seeing it just do this.
remove the previous addition in the array and put this below array.
function serviceGetWallPostOutline($aEvent) { $aParams = array( 'txt_privacy_view_event' => 'view_product', 'obj_privacy' => $this->_oPrivacyProduct, 'templates' => array( 'grouped' => 'wall_outline_grouped' ) ); $aMem = getMemberMembershipInfo($this->_iProfileId); if($aMem['ID'] == MEMBERSHIP_ID_STANDARD) $aParams['templates']['single'] = 'outline_item_image'; return parent::_serviceGetWallPostOutline($aEvent, 'shopping-cart', $aParams); }
It should use the new template for only standard membership.
Good Luck.
so much to do.... |