By Marcus Palmer on Monday, 30 March 2015
Posted in General Issues
Replies 16
Likes 0
Views 683
Votes 0
How can i echo "You do not have any friends yet." like on the ALL Friends (Page) when you have no friends on your friends list.
Hi Marcus,

I have apply some fix on this module. Can you verify this for me?

By the way, here I have attached to you backup of your previous code.

Please advise.
·
Thursday, 02 April 2015 12:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

I am sorry as I can't understand you well. Perhaps you can explain more so that we can understand you much better.

Please advise.
·
Monday, 30 March 2015 23:21
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm try to figure out the correct way to echo No friends Yet.

So far i have:




foreach ($listOfFriends as $friend) {

if( $friend->isOnline( ) ) {
echo "Echo users online ";

} elseif ( $friend->getPermalink( ) ) {
echo "Grabs offline users link";

} elseif (No FRIENDS YET SO LETS DO THIS HELPPPPPP() ) {
echo "You do not have any friends yet.";
}

}


Even when i change the last elseif to else echo bla bla i get nothing blank canvas.. been trying for days so guessing i'm missing something or have not coded the above correctly..

Can you help PLEASE!!!!!
·
Tuesday, 31 March 2015 05:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marcus,

You can try the following code to generate the echo:

$user = FD::user();
$total = $user->getTotalFriends();
if (empty($total)) {
echo "You do not have any friends yet.";
}


Hope these help
·
Tuesday, 31 March 2015 12:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Cheers Ezrul Fazwan i'll test that now;)
·
Tuesday, 31 March 2015 18:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

Please update us back on this.
·
Tuesday, 31 March 2015 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Blank echo Tears of pain
·
Tuesday, 31 March 2015 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
HELP""""!!!!!
·
Tuesday, 31 March 2015 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marcus,

I believe there is some misunderstanding here. Can you clarify back to us which page you wish to display this customization. Perhaps you can provide us with some screenshot of what you're trying to achieve here, so that we can assist you much better. Can you also please provide us with backend access and FTP access so that we can have a better view of your issue.

Please advise.
·
Wednesday, 01 April 2015 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
15 - 20 mins i'll provide this
·
Wednesday, 01 April 2015 01:28
·
0 Likes
·
0 Votes
·
0 Comments
·
OK bk....

I've added site information below and directions to view current code
·
Wednesday, 01 April 2015 04:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi marcus,

I unable to access to your backend. It seems you haven't activate our access yet.
Warning
Username and password do not match or you do not have an account yet.


Can you provide us with FTP access as well so that we can assist you much quicker.

Please advise.
·
Wednesday, 01 April 2015 10:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for the delay in getting back to you Mohd Yasser,

The details i provided i have doubled checked and also provided screenshots for what you need (i can't see the password when i type in the "Site Password" field so could have been a miss type not sure, please see login details in screenshot...
·
Thursday, 02 April 2015 03:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Brilliant ---->> Mohd Yasser your the mannnnnnn!!!!!

Cheers bro well appreciated and thank you for taken the time to understand what i required and then executing a result in such a quick time frame...

Thank you

(One of the best support teams about, a truly dedicated approach when dealing with customers)
·
Thursday, 02 April 2015 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Just wanted to add.. It seems i missed a lot of code in my first attempt, "Mohd Yasser" was polite about this and didn't once make me feel belittled!!!!!

Brilliant support and team! THANK YOU;)
·
Thursday, 02 April 2015 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marcus,

Thanks for updating, glad that your issues are resolved now
·
Thursday, 02 April 2015 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post