Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    ProofReader component    Suggestions, Wishlists & Feature Requests    Topic: Avatar plugin which will support Mehdi's Phpbb THREE bridge
Pages: [1]   Go Down
  Print  
Author Topic: Avatar plugin which will support Mehdi's Phpbb THREE bridge  (Read 9087 times)
0 Members and 1 Guest are viewing this topic.
Pihas
Newbie
*

Karma: 0
Offline Offline

Posts: 5


Email
« on: February 04, 2010, 13:37:14 »

Hello everybody, i just want to ask if someone can integrate avatar plugin for jcomments with Mehdi's Phpbb THREE bridge avatars.



Here is the link for bridge: http://extensions.joomla.org/extensions/bridges/forum-bridges/7829

Let me know if someone will pick up this work  Angry
Logged
Pihas
Newbie
*

Karma: 0
Offline Offline

Posts: 5


Email
« Reply #1 on: February 21, 2010, 02:03:26 »

Find out a solution:

In component -> com_jcomment -> tpl -> default -> tpl_comment.php changed:

Code:
<div class="comment-avatar">
...
</div>

to

Code:
<div style="border: 10px white solid;" class="comment-avatar">
<?php

$avatar_query 
mysql_query("SELECT * FROM `phpbb_users` WHERE username='$comment->author'");
while(
$avatar_rows mysql_fetch_array($avatar_query))
{
    
$avatar $avatar_rows['user_avatar'];
}
if (
$avatar != "")
{
    
$avatar = ("<img alt=\"user avatar\" src=\"../forum/download/file.php?avatar=$avatar\" />");
}
else
{
    
$avatar "<img alt=\"user avatar\" src=\"../forum/styles/bridgesilver/theme/images/no_avatar.gif\" />";
}

echo 
$avatar;

?>

</div>

But still can't find out how to correctly link to profile preview of phpbb3 with those hashes...
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    ProofReader component    Suggestions, Wishlists & Feature Requests    Topic: Avatar plugin which will support Mehdi's Phpbb THREE bridge
 
Jump to: