im try to make a component, i have take the component 'about user' rewrited a little and it works.(so so) but it appears in ever profile, i want it only in logedin users owned profile page.
thx, didnt see it before
this helps a lot
Please note that this file has been edited/modified version of aboutuser
i use this file editet but its shown in the menue of every user, that what i do not want
You can replace the ossn_com.php of your component with following file:
https://gist.github.com/lianglee/43d6acbf290779f8610db636ac217edf
yes
Do you wanted to hide About User menu ?
i have this
if($params['user']->fullname == ossn_loggedin_user()->fullname){
blablavbla
} else {
echo 'keine Berechtigung';
}
in actionfile
but i want to hide the menue, so no one can see the link only profile owner. and if some one gose direct to u/xxx/subsite he got "echo 'keine Berechtigung';'
You can use the condition to check if loggedin user is the profile owner
if(ossn_isLoggedin()->guid == $user->guid){
//show my stuff
}
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)