-
AuthorPosts
-
February 25, 2012 at 6:57 am #174270
dear all,
I installed joomla 2.5, kunena 1.7, and ja comment 1.1.1 .
i need the avatar pic should has the link with it’s profile, like: if someone logged in and commented, then it’s pic shows in avatar, after that if some one clicked to it’s avatar pic, it should open his/her profile.
I configured the avatar with kunena, now it shows the profile pic, but no link with his/her profile. :((
could you provide me any idea ??
thanksbashirnoori.com
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
February 25, 2012 at 7:06 pm #440014You read the thread http://www.joomlart.com/forums/topic/add-link-to-username/
February 26, 2012 at 5:34 am #440083Hi Khoand,
Thanks, but i need that link with each avatars as well.
The avatars pic shows from fireboard(kunena) .
how i can add link with each avatars ?thanks
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
February 26, 2012 at 6:01 am #440089Could you give me a link to your website use comment component and a link to any profile you have?
February 26, 2012 at 6:05 am #440090here is the temporary place : http://awaz-news.com.af/global
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
February 26, 2012 at 10:40 am #440111You replace the code from /components/com_jacomment/themes/default/html/comments/items.php
<?php if($item->strWebsite){ ?>
<a href="<?php echo $item->strWebsite;?>">
<?php if($item->avatar[0]){?>
<img src="<?php echo $item->avatar[0];?>" alt="<?php echo $item->strUser;?>" style="<?php echo $item->avatar[1];?>"/>
<?php }?>
<?php if($item->icon != ''){ echo $item->icon; }?>
</a>
<?php }else{ ?>
<?php if($item->avatar[0]){?>
<?php if(isset($item->userLink)):?><a href="<?php echo $item->userLink;?>" target="_blank"><?php endif;?>
<img src="<?php echo $item->avatar[0];?>" alt="<?php echo $item->strUser;?>" style="<?php echo $item->avatar[1];?>"/>
<?php if(isset($item->userLink)):?></a><?php endif;?>
<?php }?>
<?php if($item->icon != ''){ echo $item->icon;}?>
<?php } ?>
with
<?php
require_once KPATH_SITE . '/lib/kunena.link.class.php';
if($item->userid != 0){ ?>
<a href="<?php echo CKunenaLink::GetProfileLink($item->userid);?>">
<?php if($item->avatar[0]){?>
<img src="<?php echo $item->avatar[0];?>" alt="<?php echo $item->strUser;?>" style="<?php echo $item->avatar[1];?>"/>
<?php }?>
<?php if($item->icon != ''){ echo $item->icon; }?>
</a>
<?php }else{ ?>
<?php if($item->avatar[0]){?>
<img src="<?php echo $item->avatar[0];?>" alt="<?php echo $item->strUser;?>" style="<?php echo $item->avatar[1];?>"/>
<?php }?>
<?php if($item->icon != ''){ echo $item->icon;}?>
<?php } ?>
February 26, 2012 at 11:18 am #440114Hi,
i added this code, but problem occured !
now don’t show all registered users , just show the anonymous users !
i want to add hyperlink with each avatar …
plz help me
thankskhoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
February 26, 2012 at 12:47 pm #440122Could you give me username+password of your backend and ftp? I will fix it.
February 27, 2012 at 3:53 am #440212Sent 2 your inbox, plz check it.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
February 27, 2012 at 4:03 pm #440342I fix it.
The correct replaced code is
<?php
require_once KPATH_SITE . '/lib/kunena.link.class.php';
require_once KPATH_SITE . '/class.kunena.php';
if($item->userid != 0){
if($item->avatar[0]){
$image = '<img src="'. $item->avatar[0] .'" alt="'. $item->strUser .'" style="'. $item->avatar[1] .'"/>';
echo CKunenaLink::GetProfileLink($item->userid, $image);
}?>
<?php if($item->icon != ''){ echo $item->icon; }?>
<?php }else{ ?>
<?php if($item->avatar[0]){?>
<img src="<?php echo $item->avatar[0];?>" alt="<?php echo $item->strUser;?>" style="<?php echo $item->avatar[1];?>"/>
<?php }?>
<?php if($item->icon != ''){ echo $item->icon;}?>
<?php } ?>
February 28, 2012 at 4:46 am #440513Hi Khoand,
Yeah ! thanks fine, thank you 🙂bashirnoori.com
April 21, 2012 at 7:42 am #449455Hi Khoand,
I have installed Farsi language now two language i have, but now i face with a problem !
Now the avatar picture is not working !
all avatar shows like anonymous users profile.
once check what is the problem !
here: http://www.globalistan.com
thankskhoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 22, 2012 at 8:23 am #449574<em>@bashirnoori1 315154 wrote:</em><blockquote>Hi Khoand,
I have installed Farsi language now two language i have, but now i face with a problem !
Now the avatar picture is not working !
all avatar shows like anonymous users profile.
once check what is the problem !
here: http://www.globalistan.com
thanks</blockquote>
Could you give me username+password of your backend and ftp? I will check itApril 22, 2012 at 11:52 am #449589sent to your inbox, please check that. thank you
April 23, 2012 at 12:38 pm #449754Did you check your inbox ?
i’m waiting for your respond.
thanks -
AuthorPosts
This topic contains 21 replies, has 4 voices, and was last updated by MoonSailor 10 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum