241
One more tweak for this great module:
As said and asked b4 in this thread - there is no point in showing the "user no 1 profile" to the anonimus users group, as the "default module page".
In most social networks, If you are not a site member you usually get staff like "newest members" or "newest tribes/communities" or "newest blogs" etc' ... and then a suggestion to join the network.
So I made a little twek for showing another content to unregistered user group:
open /yogurt/index.php , find this:
le="color: #000000"><?php if ($xoopsUser && $xoopsUser->isAdmin(1)){ $xoopsTpl->assign('isWebmaster',"1"); }else{ $xoopsTpl->assign('isWebmaster',"0"); }
and add right after it (about line 207):
le="color: #000000"><?php // TZ Addition // if ($xoopsUser){ $xoopsTpl->assign('isUser',"1"); }else{ $xoopsTpl->assign('isUser',"0"); } // End TZ addition //
now you are able to show your desired content in templates/yogurt_index.html
using this example:
le="color: #000000"><?php <{ if $isUser==1 }> content for members of your site <{else}> content for non members <{ /if }>
I used it right in the begining - to hide all content from the no-members, and show them my selected content ....
Hope someone will benefit this staff ...