Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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


  #1  
Old Apr 27, 2010, 10:56 AM
j_apel
 
2 posts · Apr 2010
DC
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.:

http://www.sterling-adventures.co.uk...vatars-plugin/


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() ) { ?>

get_avatar($post->post_author);

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:
/wordpress/wp-content/avatars

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 11:27 AM.

Bookmarks

Tags
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 02:38 PM
"Not Found" error in latest version on clean install lintunen New Versions, & Updating 18 Feb 23, 2010 01:05 AM
[SOLVED] Twittar plugin for avatars nycgadgetgirl Plugins & Atahualpa 6 Oct 21, 2009 09:19 PM
Use Atahualpa with another theme's "skin" ldsmedia Atahualpa 3 Wordpress theme 8 Jul 16, 2009 05:10 PM
Authors Avatars Widget... acting up designer666 Sidebars & Widgets 1 Jun 17, 2009 10:41 AM


All times are GMT -6. The time now is 01:58 AM.


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