How to Show Author Avatar in Submission List for fvCommunityNews

Filed Under: Articles, Plug-in, Tip and Tutor by fandy April 28, 2010, 10:51

avatar_fvcn

Last week, I thought, why not for my “CommunityNews” list I show the submiter/auhtor avatar. With this avatar more easy for user to recognize this link “who the author link” and separating each others.
So after the research for fvCommunityNews plug-in and testing,  this is what I get. But if you have better way, please share with us.

Open fvCommunityNews.php, find this code in line 903

	$newsPosts = '
    ' . "\n"; foreach ($posts as $post) { if (NULL == $post->Image) $image = $noImage; else $image = get_option('home') . '/wp-fvcn-images/' . stripslashes(apply_filters('comment_author_url', $post->Image)); $newsPosts .= $format . "\n"; $newsPosts = str_replace('%submission_author%', stripslashes(apply_filters('comment_author', $post->Name)), $newsPosts); $newsPosts = str_replace('%submission_author_email%', stripslashes(apply_filters('comment_author_email', $post->Email)), $newsPosts);

than insert this code after it in line 914

$newsPosts = str_replace('%submission_author_avatar%', get_avatar(stripslashes(apply_filters('comment_author_email', $post->Email)), 24), $newsPosts);

The number 24 is the size of avatar you want to show

Now at administration console, Submission-Setting, Insert the tags “%submission_author_avatar%” in Submission Template.
examples

  • %submission_author_avatar%

    %submission_title%

    %submission_description%
  • Written by fandy

    a web and graphic designer whose love art and design and like to share knowledge, resources and inspirations. English not my mother language so don't blame me, I just do the best to sharing, just give me suggestion to fix it. If love my work, you can support me and follow me on Twitter


    Share This :

    I PROUDLY PRESENT

    YOUR COMMENTS! I LOVE 'EM

    designfloat.com April 29, 2010,23:38

    How to Show Author Avatar in Submission List for fvCommunityNews « Artfans Design…

    On this post I want to share you how to show the avatar of news authors on community submission list with fvCommunityNews Plug-in…

    zabox.net April 29, 2010,23:45

    How to Show Author Avatar in Submission List for fvCommunityNews…

    On this post I want to share you how to show the avatar of news authors on community submission list with fvCommunityNews Plug-in…

    LEAVE A COMMENT

    AND MAKE ME HAPPY

    Your email address will not be published. Required fields are marked *

    Name*

    Email*

    Website

    Comment

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Aussie Comparison Shopping top rated USB web cameras Outstanding MS OEM Windows 8 16 mps Sony NEX-F3 MS expression web Studio 4 online shopping

    Community News

      • Majestic Designs Of Lion Logo For Your Inspiration

        Here are the Majestic Designs of Lion Logo for your Inspiration. For logo designers out there, this collection will bring you some creative ideas for your next logo design project. Take a look at these logos and be creative to represent a brand as being the king of the jungle.

      • 40+ Most Preferred Mobile Web Design For Inspiration

        It is expected that the number of mobile internet users will surpass the desktop net users in the near future, so it has become mandatory for everyone to host a mobile version of their web site in order to exploit the full potential of the World Wide Web. The high speed 3rd generation networks, super-fast and high resolution handsets made the mobile browsing a thrilling experience than ever. Though the platform is not friendly as of the computers, and the small screen size poses some limitations to the designers, still they are successful in designing wonderful websites for mobiles.

      • Freebie: Clean Portfolio Page in 3 Columns (PSD)

        This is the column page template of our latest Wordpress Theme that is in final stages of development, so this is also a sneak preview of Theme.

      • Essential Back Pain Cure Tips for Computer Professionals

        Computer professionals spend thousands of hours working on computer every year. Essential Back Pain Cure Tips for Computer Professionals.

      • Roundup of Free Vector Ornament Patterns

        This post rounds up a huge collection of some of the best free vector ornamental patterns from across the web. They are great for creating elegant vintage style background.

      • Trends and Essentials of Business Cards

        Are you a business man who believes in the magic of the first impression which will take further direction of your business. Or maybe you have a principle that your closeness with clients and maintained relationships can make your business as well stay 'maintained'. Then you must...


      SUBMIT LINK | MORE NEWS

    Recent Comments

      • Jordan McLawrence : Hi. I like this http://wordpress.org/extend/plugins/iframe-e... more
      • Vincent Armstead : These are great pics but as these pictures needs Photoshop t... more
      • Sri Ganesh.M : Just now i brought a shortcode plugin ! Will try some other ... more
      • amir hossein monfared : thanku....so useful..... more
      • Rooney Reeves : Joomla development is considered to be the best and most eff... more
    Hookahs F50-531 st0-096 Dedicated Servers Web Hosting
    Stock Photos
    Stock Photos Search

    Powered by:

    Content Distribution Network

    Twitter: ArtfanDesign