Module: User Avatar
Posted by Maurice Makaay
Re: Module: User Avatar September 22, 2010 07:23AM |
Admin Registered: 20 years ago Posts: 9,240 |
September 22, 2010 08:59AM |
Registered: 13 years ago Posts: 81 |
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).
Now User Avatar and Mood is working fine for me! Thanks!
Regards,
Sreenadh
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).
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).Quote
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.
Now User Avatar and Mood is working fine for me! Thanks!
Regards,
Sreenadh
September 22, 2010 11:46AM |
Admin Registered: 18 years ago Posts: 8,532 |
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
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



September 22, 2010 10:01PM |
Registered: 13 years ago Posts: 81 |
Re: Module: User Avatar October 29, 2010 01:06PM |
Registered: 13 years ago Posts: 160 |
Hi,
i have installed avatarmodule,
i can upload an avatar
then i changed read.tpl first:
html output became:
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!
[edit]
GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
WASTED A FEW HOURS!!!!!!!!!!!!!!!!!!!!!!!!!!
I DELETED AND UPLOADED ANOTHER AVATAR
AND FORGOT TO CLICK ON THE RADIO BUTTON TO USE IT
[/edit]
Edited 2 time(s). Last edit at 10/29/2010 02:06PM by Terradon.
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!
[edit]
GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
WASTED A FEW HOURS!!!!!!!!!!!!!!!!!!!!!!!!!!
I DELETED AND UPLOADED ANOTHER AVATAR
AND FORGOT TO CLICK ON THE RADIO BUTTON TO USE IT
[/edit]
Edited 2 time(s). Last edit at 10/29/2010 02:06PM by Terradon.
October 29, 2010 04:23PM |
Admin Registered: 18 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team



Re: Module: User Avatar November 08, 2010 04:58PM |
Registered: 12 years ago Posts: 62 |
January 04, 2011 06:25AM |
Admin Registered: 17 years ago Posts: 744 |
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!
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (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.
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!
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (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.
January 05, 2011 05:37PM |
Registered: 12 years ago Posts: 5 |
January 05, 2011 05:41PM |
Admin Registered: 18 years ago Posts: 8,532 |
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
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



Sorry, only registered users may post in this forum.