I was just passing by and saw this thread and
thought to share something which may be useful
to XOOPS friends here.
I found a small bug in yogurt 2.9 "My Friends"
block where by default following functionalities are present.
1) Friends Avatar (6 by default)
2) Usename (link to profile)
3) Private message (pm.gif)
the bug is in private message, if you try
to pm to a considered friend it will take
Guest userid instead of the friend to whom you
want to send message and when you try to send
a message to guest it gives following error.
"The selected user doesn't exist in the database.
Please check the name and try again."
I just found a small bug in
yogurt > templates > blocks >
yogurt_block_friends.html following is the default code
<{section name=i loop=$block.friends}>
<div style="width:80%; text-align: center; page-break-after: always; margin: auto; page-break-before: always;">
<a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block.friends[i].uid}>" title=" Qtty<{$block.friends[i].uname}>"><img src=<{$xoops_upload_url}>/<{$block.friends[i].user_avatar}>><br /><{$block.friends[i].uname}> a>
<br /><a href='javascript:openWithSelfMain("<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$block.friends[i].uid_voted}>","pmlite",500,450);'><img src="<{$xoops_url}>/images/icons/pm.gif" />a>
div><br />
<{/section}>
<a href="<{$xoops_url}>/modules/yogurt/friends.php"><{$block.lang_allfriends}>a>
This block is supposed to be displayed on home page
or user page. It takes a large screen space by
displaying 6 friends avatars in 6 rows.
Well i didn't wanted to display large avatars on
my homepage also i wanted to display friends in one
or 2 rows only, taking less space on the screen,
also i wanted to have private message functionality
right on the homepage itself. So i removed the avatars
and displayed usernames with links in a row along
with small icon of private message.
So I did the following modifications in this block
<{section name=i loop=$block.friends}>
<a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block.friends[i].uid}>"
title=" <{$block.friends[i].uname}>"><{$block.friends[i].uname}>a>
<a href='javascript:openWithSelfMain("<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$block.friends[i].uid}>","pmlite",500,450);'>
<img alt="Private message" src="<{$xoops_url}>/images/icons/pm_small.gif" />a> -
<{/section}>
BR>BR>
<a href="<{$xoops_url}>/modules/yogurt/friends.php">
<{$block.lang_allfriends}>a>
I just did minor changes and now it looks fine for my college site :)
See you guys around,
Amol