By Jason Nickerson on Monday, 28 May 2018
Posted in Technical Issues
Likes 0
Views 673
Votes 0
This is a repost from a previous ticket Mr Arlex Wong somewhat solved. https://stackideas.com/forums/0-call-to-undefined-method-socialevent-getprofile

The display.php file Arlex uploaded for me to use did not work as requested - for some reason it did not pick up the if profile is about. I added a different if and it works but still breaks on the event page, Please find the edited file attached and see if we can get this to work correct.

The display view from line 69 - 107 should only be shown on About view of the profile - the default view after should be used for other pages
Hm, it seems like you have modified my code :


<?php if ($isProfileAboutView) { ?>



to


// wrong
<?php if ($isProfileAboutView='true') { ?>



I already help you replace back to :


<?php if ($isProfileAboutView) { ?>



Can you check again is it work fine now?
·
Monday, 28 May 2018 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
I modified because it didn’t work

It’s showing the alll the fields on a profile and not restricting the view as is coded in the php it is is ignoring the isprofike and reading the default code
·
Monday, 28 May 2018 10:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh, it seems like you already set the 'about' page show at the first when open user profile page.

I already modified some of the code from the same file, can you give it a check is it look fine now?
·
Monday, 28 May 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes it works now. Thank you for your help!
·
Monday, 28 May 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Monday, 28 May 2018 11:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post