Firefox PHP

Module: User Avatar

Posted by Maurice Makaay 
Re: Module: User Avatar
February 15, 2014 04:20PM
Image problems related to Ubuntu and gd
Re: Module: User Avatar
February 16, 2014 01:19AM
Scott Finegan
I would start with looking for extra characters after the closing ?> including line feeds, and or carriage returns.
As to which files, and how many files to check ... probably all which contain ?>

After checking most of the .php files in Phorum, the majority of them had an extra line feed after the closing ?> This doesn't matter except in the case of binary data.

There is one related file "upload_functions.php" which has no closing ?> php tag. Not sure if this is a bug or not.
Re: Module: User Avatar
February 16, 2014 03:18AM
Nowadays php doesn't require a closing ?> anymore and its even discouraged to avoid issues like the ones you mentioned.

Thomas Seifert
Re: Module: User Avatar
February 16, 2014 06:08AM
I have no idea what finally fixed my issue but when I re-launched Firefox this morning and checked my files for tailing spaces after "?>" tags, I saw that the User Avatar module now showed my uploaded avatar image correctly in "My Profile".

I then uploaded the updated /include/upload_functions.php with an added "?>" tag at the very end, deleted all uploaded images, re-uploaded one of them, assigned it to be used - and here we are: []

Edit: Maybe it was the closing "?>" in /include/upload_functions.php - because now I fixed this file in another Phorum installation first, then added the User Avatar module and the hooks to that Phorum and had no issues right from the beginning.

Regards, Ulf Dunkel

Edited 1 time(s). Last edit at 02/16/2014 06:36AM by Ulf Dunkel.
April 01, 2014 05:21PM
Hi All
Good day to you all.

Please i need your assistance in installing user avatar.
I have read for 4 hours the guideline provided in this support section of the phorum, but i have not been able to solve my problem.

Can you help with step to step guide.
The progress i have made so far is that i have uploaaded the user_avatar file to my shared hosting, and i have also enabled the avatar module from the admin. But i do not know how to edit the necessary templates so as to display the avatar. I have tried to read instructions from the site for 4 hoours, but it couldnt work.

Please assist me if you.
August 14, 2014 09:49AM
Hi there!!! Got everything up and running but.....

How do i go about changing the avatar control panel language? It is still in English and not in my native Phorum language.....



it sorted itself out.... Thanks!

Edited 1 time(s). Last edit at 08/14/2014 11:25AM by TTV.
Re: Module: User Avatar
September 01, 2016 09:38AM
New version:

2016-09-01 3.0.5 Oliver Riesen-Mallmann <>
    - Made XHTML 1.0 Transitional compliant.

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.
Problem with Avatar
January 23, 2017 06:47PM
I hav download last version and installet. Then the Module Avatar. The Module avatar is korektli in Admin aktivatet. I can apload avatar.

In read.ptl

<!-- BEGIN TEMPLATE read.tpl -->
<div class="nav">
{IF URL->INDEX}<a class="icon icon-folder" href="{URL->INDEX}">{LANG->ForumList}</a>{/IF}
<a class="icon icon-list" href="{URL->LIST}">{LANG->MessageList}</a>
<a class="icon icon-comment-add" href="{URL->POST}">{LANG->NewTopic}</a>


{IF NOT MESSAGES->parent_id 0}
<a name="msg-{MESSAGES->message_id}"></a>

<div class="message">

<div class="generic">

<table border="0" cellspacing="0">
<td width="100%">
{IF MESSAGES->mod_user_avatar}
<img src="{MESSAGES->mod_user_avatar}" alt="" style="float: left;margin-right: 5px;" />
<div class="message-author icon-user">
{IF MESSAGES->URL->PM}<small>[ <a href="{MESSAGES->URL->PM}">{LANG->PrivateReply}</a> ]</small>{/IF}
<strong><a href="{MESSAGES->URL->READ}" rel="nofollow">{MESSAGES->subject}</a> {IF MESSAGES->new}<span class="new-flag">{MESSAGES->new}</span>{/IF}</strong><br />
<td class="message-user-info" nowrap="nowrap">
{IF MESSAGES->user->admin}
<strong>{LANG->Admin}</strong><br />
{ELSEIF MESSAGES->moderator_post}
<strong>{LANG->Moderator}</strong><br />
{LANG->IP}: {MESSAGES->ip}<br />
{LANG->DateReg}: {MESSAGES->user->date_added}<br />
{LANG->Posts}: {MESSAGES->user->posts}

<div class="message-body">
{IF MESSAGES->is_unapproved}
<div class="warning">

(<a href="{MESSAGES->URL->CHANGES}">{LANG->ViewChanges}</a>)
<div class="message-options">
{IF MESSAGES->edit 1}
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>
<a class="icon icon-comment-add" href="{MESSAGES->URL->REPLY}" rel="nofollow">{LANG->Reply}</a>
<a class="icon icon-comment-add" href="{MESSAGES->URL->QUOTE}" rel="nofollow">{LANG->QuoteMessage}</a>
{IF MESSAGES->URL->REPORT}<a class="icon icon-exclamation" href="{MESSAGES->URL->REPORT}">{LANG->Report}</a>{/IF}

{IF MESSAGES->attachments}
<div class="attachments">
{LOOP MESSAGES->attachments}
<a href="{MESSAGES->attachments->url}">{LANG->AttachOpen}</a> | <a href="{MESSAGES->attachments->download_url}">{LANG->AttachDownload}</a> -
{/LOOP MESSAGES->attachments}

<div class="message-moderation">
{IF MESSAGES->threadstart true}
<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DelMessReplies}</a>

<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_MESSAGE}">{LANG->DeleteMessage}</a>
<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DelMessReplies}</a>
<a class="icon icon-split" href="{MESSAGES->URL->SPLIT}">{LANG->SplitThread}</a>
{IF MESSAGES->is_unapproved}
<a class="icon icon-accept" href="{MESSAGES->URL->APPROVE}">{LANG->ApproveMessage}</a>
<a class="icon icon-comment-delete" href="{MESSAGES->URL->HIDE}">{LANG->HideMessage}</a>
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>


<div class="nav">
{INCLUDE "paging"}
<!-- CONTINUE TEMPLATE read.tpl -->
<a class="icon icon-prev" href="{URL->NEWERTHREAD}">{LANG->NewerThread}</a>
<a class="icon icon-next" href="{URL->OLDERTHREAD}">{LANG->OlderThread}</a>

<div id="thread-options" class="nav">
<a class="icon icon-printer" href="{URL->PRINTVIEW}" target="_blank">{LANG->PrintView}</a>
<a class="icon icon-tag-green" href="{URL->MARKTHREADREAD}">{LANG->MarkThreadRead}</a>
<a class="icon icon-note-add" href="{TOPIC->URL->FOLLOW}">{LANG->FollowThread}</a>
<a class="icon icon-feed" href="{URL->FEED}">{FEED}</a>
<a class="icon icon-merge" href="{TOPIC->URL->MERGE}">{LANG->MergeThread}</a>
{IF TOPIC->closed false}
<a class="icon icon-close" href="{TOPIC->URL->CLOSE}">{LANG->CloseThread}</a>
<a class="icon icon-open" href="{TOPIC->URL->REOPEN}">{LANG->ReopenThread}</a>
<a class="icon icon-delete" href="{TOPIC->URL->DELETE_THREAD}">{LANG->DeleteThread}</a>
{IF TOPIC->URL->MOVE}<a class="icon icon-move" href="{TOPIC->URL->MOVE}">{LANG->MoveThread}</a>{/IF}

<a name="REPLY"></a>

<!-- END TEMPLATE read.tpl -->

But the Avatar is not to see. I have look Surcecode. The image tag is emty. The MESSAGES->mod_user_avatar is emty. Plase i need help. Thenks
Re: Module: User Avatar
June 21, 2018 05:05AM
I am having an issue as soon as I enable this module

Warning: require_once(./include/api/custom_profile_fields.php): failed to open stream: No such file or directory in /home/XXXX/XXXX/mods/user_avatar/install.php on line 13

Fatal error: require_once(): Failed opening required './include/api/custom_profile_fields.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/XXXX/XXXX/mods/user_avatar/install.php on line 13

Edited 1 time(s). Last edit at 06/21/2018 05:06AM by cd5ssmffan.
Re: Module: User Avatar
June 21, 2018 01:36PM
Does this file exist on this path? ./include/api/custom_profile_fields.php
All lower case?

What are the directory permissions?
Sorry, only registered users may post in this forum.

Click here to login