Avatar

Category: Community Quotes 5 years ago
Is it possible to remove the avatar?
Like it on Facebook, +1 on Google, Tweet it or share this topic on other bookmarking websites.
  • Re: Avatar

    by » 5 years ago


    Did you mean author avatar? You can edit the template file and remove it (components/com_communityquotes/templates/default). Let me know if you need any help.

    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog


  • Re: Avatar

    by » 5 years ago


    Yes, I mean the author avatar - I would like to remove it from the quote box in the randome quote module. This (components/com_communityquotes/templates/default) is actually a directory, not a file, I have been through all the files in this directory and all seem to reference an author avatar, I could try to remove all references to author avatar but I'm sure that is not the way to do it. I guess I can add some kind of generic image there, too bad though. Let me know if you have any suggestions. Thanks.

  • Re: Avatar

    by » 5 years ago


    The directory is the template directory where you can find all template files. And you need to edit those.

    But since you need to remove the avatar from random quote module this is not the place for it.

    Remove below code
    modules/mod_randomquotes/tmpl/default.php
    	<div class="quote-avatar">
    <?php
    if(JFile::exists(JPATH_ROOT.DS.'media'.DS.'communityquotes'.DS.'images'.DS.$quote->avatar)){
    $avatar = $q_root_path_uri.'/media/communityquotes/images/'.$quote->avatar;
    }else{
    $avatar = $q_root_path_uri.'/components/com_communityquotes/assets/images/default_avatar.png';
    }
    $avatar = JHTML::image($avatar, $quote->author_name, 'height="48px" width="48px"');
    echo JHTML::link(JRoute::_('index.php?option=com_communityquotes&view=quotes&task=aprofile&id='.$quote->author.':'.$quote->author_alias.$rq_itemid), $avatar);
    ?>
    </div>

    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog


    Thank you said by: Alan

  • Re: Avatar

    by » 5 years ago


    Thanks, that worked great - I assume I can remove the same code if I decide to remove the avatar from the component as well. Let me know if this is not correct. Thanks again!

  • Re: Avatar

    by » 5 years ago


    Yes, its almost same.

    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog


You do not have permissions to reply to this topic.

Powered by CjForum

Site Search

Trending Topics

False Scorewise Message
  • 6 hours ago.
  • 1 reply
I have my Scorewise Message pts set to 3 (attached) but when you...

Quiz Questions Order
  • 6 hours ago.
  • 1 reply
How do you control the order of the questions in a quiz? My quiz...

After clicking 'Next' the page hangs, showing spinner then Please wait..
  • 7 hours ago.
  • 4 replies
Hi, I have 2 quizzes set up and on both of the when I click the...

Community Polls 4.5.2
  • 14 hours ago.
  • 5 replies
We previously made the following changes with your help using...

How to Moderate Replies
  • 16 hours ago.
  • 1 reply
Hello! I'd like to allow our forum moderators and administrators to...