By Michael Bevia on Wednesday, 30 December 2015
Posted in General
Replies 7
Likes 0
Views 674
Votes 0
Hello, I have two types of users, regular and artists, how do I remove jreviews app from users. I want to remove jreviews "My listings" from Profile type "users"
Hello Michael,

I've added a sample code in this file ../media/com_easysocial/apps/user/mylistings/widgets/profile/view.html.php, http://screencast.com/t/97qYCEbzo . As you can see there I added a checking if the profile id is equal to 1, don't show the listing (return).
·
Wednesday, 30 December 2015 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Michael,

Did you mean the app for this: http://screencast.com/t/fepSXG9o2 ? If you don't want to display only for one profile type, you need to add a checking in the app file, if the profile type is A, don't proceed. If you can provide us your FTP, I can show you a sample code for the checking. Since this is not our app, I am not sure the code structure.
·
Wednesday, 30 December 2015 10:46
·
0 Likes
·
0 Votes
·
0 Comments
·
NIK FARIS wrote:

Hello Michael,

Did you mean the app for this: http://screencast.com/t/fepSXG9o2 ? If you don't want to display only for one profile type, you need to add a checking in the app file, if the profile type is A, don't proceed. If you can provide us your FTP, I can show you a sample code for the checking. Since this is not our app, I am not sure the code structure.


Yes, that is the app. Is it save to post my ftp here? or should I open another ticket? Thanks.
·
Wednesday, 30 December 2015 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You can edit your first post in this thread and provide the FTP there or you can just include your site's access once at http://stackideas.com/dashboard/site
·
Wednesday, 30 December 2015 11:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I just did, thanks for that.
·
Wednesday, 30 December 2015 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
NIK FARIS wrote:

Hello Michael,

I've added a sample code in this file ../media/com_easysocial/apps/user/mylistings/widgets/profile/view.html.php, http://screencast.com/t/97qYCEbzo . As you can see there I added a checking if the profile id is equal to 1, don't show the listing (return).


thank you so much! that works great!

Do you know how I can hide things doing that on the default.header.php in the themes tamplate

I would like to add/hide some things in the toolbar

I tried this but it doesn't work

if($user->profile_id == '2'):

show this

-elseif-

show this
·
Thursday, 31 December 2015 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Michael,

Hm, it should work. By the way, I can't see your previous reply correctly. http://screencast.com/t/MQqEvtF8Tcbq . Maybe you forgot to include the image?
·
Thursday, 31 December 2015 10:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post