Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

How to install a custom-avatars plug-in called "Avatars" into Atahualpa Theme 3.4.5

Old Apr 27, 2010, 09:56 AM
2 posts · Apr 2010
I am trying to get a plug-in working with my Atahualpa theme called Avatars, by Sterling Adventures. The plug-in is supposed to allow users to upload their own "local" avatars or draw from a file that you can upload to your server, inside of your theme files (wp-content) of custom avatars. I have uploaded and activated the plug-in, but the issue for me is how to get the php code inserted correctly so that the plug-in will work.

Here is the address to the plug-in homepage where the instructions appear for the plug-in.:


The instructions say to insert some php code into certain files - the comments.php and single.php files, as well as some of the theme files. To start with here are some of the instructions:

• The code to include in your template files is documented on the Users Avatars page too. To start with try:
o Put get_avatars($comment); inside the comments loop of your comments.php template file to show the comment author’s avatar.
o Put get_avatar($post->post_author); in your single.php template file to show the post author’s avatar. You’ll need to declare global $post; in the file too.

I tried to do this, and first discovered that Atahualpa doesn't have a single.php file, but found another post instructing on to insert code into the index.php file, to make it include a single command with your code inside:

<?php if ( is_single() ) { ?>


global $post;

<?php } ?>

Above you can see how I inserted this, and placed the code into the index.php file, but the problem is that when I inserted the code, it shows up now onscreen, above the comments field, and does nothing as far as inserting the avatars. I have also tried moving it around in the index.php file, and it still shows up onscreen on the blog itself.

There are some other instructions on the Avatars plug-in Settings page, in the WP panel that require you to insert something into your template files, but I have no idea where this should go, or how to put it into a template file, or if it can be done through the Atahualpa theme control panel in WP, even:

Put this code in your template files where you want avatars to appear:

<?php $avtr = get_avatar(id [, size [, default-image-url]]); echo $avtr; ?>

which template file shoudl this go in, and where exactly?

In addition, in the Avatars Settings panel inside the WP control panel for the theme, it says for User uploads, you need to specify a path/url for your avatars folder:

"If allowed, use this directory for user avatar uploads, e.g. /avatars. Must have write access and is relative to /home/kennedy/public_html."

here is the path I specified in the field given for this:

Any help or advice is appreciated. I hope that I have interpreted the instructions and the plug-in capabilities correctly. I was not able to get any help from the plug-in creator, so that is why I have posted this question here. Thank you, and if you need more information, just email me!

Last edited by j_apel; Apr 27, 2010 at 10:27 AM.


custom avatars, editing theme files, php code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add "Custom Smilies" to Comment replies/posts in Atahualpa punzhu Comments, trackbacks & pings 1 Mar 3, 2010 01:38 PM
"Not Found" error in latest version on clean install lintunen New Versions, & Updating 18 Feb 23, 2010 12:05 AM
[SOLVED] Twittar plugin for avatars nycgadgetgirl Plugins & Atahualpa 6 Oct 21, 2009 08:19 PM
Use Atahualpa with another theme's "skin" ldsmedia Atahualpa 3 Wordpress theme 8 Jul 16, 2009 04:10 PM
Authors Avatars Widget... acting up designer666 Sidebars & Widgets 1 Jun 17, 2009 09:41 AM

All times are GMT -6. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.