Login     Sign up
Fault in the code...
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Version 4.1 - if you click on a members avatar, you go to their Wall, as you should do, BUT if you click on their name, you go to your own wall!

The code seems to have a fault:

When you mouse over the Avatar you get: [url]http://www.domain/u/username[/url]

When you mouse over the user name you get:
[url]http://www.domain/username[/url]

Does anybody know where to find the source code that needs rewriting?

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

as i mentioned before, that is because you removed de '/u' in the code.

173 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

But if I put that back, the user names are shown with a '/u' in front of them... so what's the answer to that one?

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

function stream_display

return part.

original code (fullname)

[code]
return '
<div class="user_post_1">
<table width="100%">
<tr>
<td class="user_post_left" width="'.$avatar_box_size.'" valign="top">'.avatar($row,$avatar_size).'</td>
<td class="user_post_right" valign="top">
<strong>'.url('u/'.$row['username'], $row['fullname']).'</strong>
'.$row['message'].
$att.'
<div class="att_bottom">'.$icon.' '.get_date($row['created']).$likes.'</div>
'.$comment_form.$comment_get.
'</td>
</tr>
</table>
</div>
';
[/code]

code with username

[code]
return '
<div class="user_post_1">
<table width="100%">
<tr>
<td class="user_post_left" width="'.$avatar_box_size.'" valign="top">'.avatar($row,$avatar_size).'</td>
<td class="user_post_right" valign="top">
<strong>'.url('u/'.$row['username'], $row['username']).'</strong>
'.$row['message'].
$att.'
<div class="att_bottom">'.$icon.' '.get_date($row['created']).$likes.'</div>
'.$comment_form.$comment_get.
'</td>
</tr>
</table>
</div>
';
[/code]

works 100% for me

173 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Perfect! Thank you very much - and Happy Birthday for the other day!

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

you're welcome and thank you

173 months ago