Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • bashirnoori1 Friend
    #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 ??
    thanks

    bashirnoori.com

    khoand Friend
    #440014
    bashirnoori1 Friend
    #440083

    Hi 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 Friend
    #440089

    Could you give me a link to your website use comment component and a link to any profile you have?

    bashirnoori1 Friend
    #440090

    here is the temporary place : http://awaz-news.com.af/global

    khoand Friend
    #440111

    You 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 } ?>

    bashirnoori1 Friend
    #440114

    Hi,
    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
    thanks

    khoand Friend
    #440122

    Could you give me username+password of your backend and ftp? I will fix it.

    bashirnoori1 Friend
    #440212

    Sent 2 your inbox, plz check it.

    khoand Friend
    #440342

    I 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 } ?>

    bashirnoori1 Friend
    #440513

    Hi Khoand,
    Yeah ! thanks fine, thank you 🙂

    bashirnoori.com

    bashirnoori1 Friend
    #449455

    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

    khoand Friend
    #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 it

    bashirnoori1 Friend
    #449589

    sent to your inbox, please check that. thank you

    bashirnoori1 Friend
    #449754

    Did you check your inbox ?
    i’m waiting for your respond.
    thanks

Viewing 15 posts - 1 through 15 (of 21 total)

This topic contains 21 replies, has 4 voices, and was last updated by  MoonSailor 10 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum