Firefox PHP

Module: User Avatar

Posted by Maurice Makaay 
Re: Module: User Avatar
September 22, 2010 07:23AM
Maurice already gave you the answer to that - which was what I expected.

Thomas Seifert
Re: Module: User Avatar
September 22, 2010 08:59AM
Dear Maurice Makaay,
You are absolutely right! The "Threaded Tree View" module was the culprit! I like look provided by that module, but any way till everything is fine and in tune, I am not going to use this module any more (after that I will try to incorporate the changes into it and use it - possibly).

A quick comment on 1) Don't do it that way then. The recommended way (see docs/creating_templates.txt) is to create your own copy of the template and edit that one. That way, you can safely install a new version of Phorum, without risking overwriting your modified template files.
But when I am updated the phorum with new version, then too I can back-up and rename this folder and use it - right? A quick doubt on the same [yap, wrong place I know ;) ] when I updated earlier too I took a backup of the emarald templates folder and renamed it, but in the admin area it was showing the name for that as "Phorum Emarld Template 1.0" itself - from where does it picks up this name? (If I know I could change it and for every phorum update I can maintain a copy of my own updated version of the emerald template).
Now User Avatar and Mood is working fine for me! Thanks!
Re: Module: User Avatar
September 22, 2010 11:46AM
If you follow the documentation on creating your own template, then you will find out how that works. You have to update the info.php file. In that file, you can give your custom template a name.

Yes, you can backup the folder before upgrading. It's just a bit more risky in case you forget to do so. How you handle things eventually, is of course up to you.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Avatar
September 22, 2010 10:01PM
Re: Module: User Avatar
October 29, 2010 01:06PM
i have installed avatarmodule,
i can upload an avatar

then i changed read.tpl first:

Language: PHP
<div class="PhorumStdBlock"> {IF MESSAGES->user_avatar} ???<img src="{MESSAGES->user_avatar}" alt="avatar" /> {/IF} <img src="{MESSAGES->user_avatar}" alt="avatar" />

html output became:

Language: HTML
<div class="PhorumStdBlock"> <img src="" alt="avatar" /> <div class="PhorumReadBodySubject"> etcetera...

I can see the avatar in my control center, but apperently i am doing something wrong?
because the remark signs aren't in the html output, the if statement isn't triggered.
i also put the code into the template, without an if statement, which resulted in an image tag with an empty source, so only the alt-text is visible in all messages!

What have i done wrong here?

thanks in advance for any help!

WASTED A FEW HOURS!!!!!!!!!!!!!!!!!!!!!!!!!!


Edited 2 time(s). Last edit at 10/29/2010 02:06PM by Terradon.
Re: Module: User Avatar
October 29, 2010 04:23PM
In the user avatar module that I wrote for Phorum 5.3, this will be more clear, since there is an explicit option in the control center that says "Do not use an avatar". And congratz on finding the solution ;-)

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Avatar
November 08, 2010 04:58PM
I got this mod to work in list.php by simplying adding: "hook: list|mod_user_avatar_read" to the info.txt file and using MESSAGES->user_avatar. Just had to make sure to reload the module for the info.txt changes to take effect.
Re: Module: User Avatar
January 04, 2011 06:25AM
Hi Maurice,

I published a new version of my German Language Files Package which includes also translations for you module in two character sets iso-8859-1 and utf-8.

Please add the attached language files to the next release of your module and remove maybe existing old style files like german.php oder german-sie.php. Thanks!


Using Phorum since 7/2000: (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
open | download - (3.6 KB)
Re: Module: User Avatar
January 05, 2011 05:37PM

is it possible with your module that new registered user have avatar option off by default? I mean: they don't see avatar by default.


Re: Module: User Avatar
January 05, 2011 05:41PM
You mean that they have to explicitly *enable* avatars in their own control center before they are able to see other people's avatars? That's not an option of the module.

You'd either have to modify the module code for that to work or write a module that hooks into the user registration process, to disable the avatars directly at registration by tweaking the user's settings from there.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login