Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Make js module visible for guest only

11 years 3 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

ISSUE SUMMARY:
Hi, i'd like to make some jomsocial module visible for guest only

STEPS TO REPLICATE:
1 I have created a user group named: Guest
2 i have created a Viewing Access Levels named: Guest
3 In this case i put a banner module in Js_bottom position
4 the acces leves is as guest,
5
RESULT
the module is still visible to members even if i put it as public

EXPECTED RESULT
What i need is tho show this module only for guest.

BROWSER

11 years 3 months ago
Licenses:

Hi Romulo,

I cant find any module that using Js_bottom position
what is a module name? you must set that access level on that module to guest.
I need to have a look on that module setting.

Regards

11 years 3 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Hi Albertus the module name is js_bottom as the position name
Please check the screenshots for admin and for logged in user



Attachments:
11 years 3 months ago
Licenses:

Hi,

please try this solution, edit the file that you put js_bottom position code

<?php $this->renderModules('js_bottom'); ?>
and changing it to
<?php
$user =& JFactory::getUser();
if($user->get('guest') == 1) {
    $this->renderModules('js_bottom');
}
?>

Regards

The following user(s) said Thank You: Romulo
11 years 3 months ago
  • Romulo's Avatar
    Topic Author
  • Romulo
  • Offline
  • Junior Boarder
  • Posts: 214
  • Thank you received: 6
Licenses:
JomSocial Expired Socialize Expired

Hi Albertus,
Please could you tell me where to place this code, sorry for not having the knoledge.

Best Regards

11 years 3 months ago
Licenses:

Hi Romulo,

by default jomsocial not bring js_bottom position, but at your site that position is exist there.
so my assumption that position is the new one that you put is self.

FYI:
documentation.jomsocial.com/wiki/Built-in_Module_Positions

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW