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
[www.serkey.com]
Re: Module: User Avatar
February 16, 2014 01:19AM
Quote
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.

Thomas
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: [www.icalamus.net]

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.
HELP ME TO INSTALL USER AVATAR
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.
TTV
Re: HELP ME TO INSTALL USER AVATAR
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.....

Cheers!

EDIT:

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 <oliver@riesen.org>
    - Made XHTML 1.0 Transitional compliant.


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.
Problem with Avatar
January 23, 2017 06:47PM
I hav download last version phorum-5.2.22.zip 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>
</div>

{LOOP MESSAGES}

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

<div class="message">

<div class="generic">

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

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

{MESSAGES->body}
{IF MESSAGES->URL->CHANGES}
(<a href="{MESSAGES->URL->CHANGES}">{LANG->ViewChanges}</a>)
{/IF}
<div class="message-options">
{IF MESSAGES->edit 1}
{IF MODERATOR false}
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>
{/IF}
{/IF}
<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}
</div>

{IF MESSAGES->attachments}
<div class="attachments">
{LANG->Attachments}:<br/>
{LOOP MESSAGES->attachments}
<a href="{MESSAGES->attachments->url}">{LANG->AttachOpen}</a> | <a href="{MESSAGES->attachments->download_url}">{LANG->AttachDownload}</a> -
{MESSAGES->attachments->name}
({MESSAGES->attachments->size})<br/>
{/LOOP MESSAGES->attachments}
</div>
{/IF}

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

{ELSE}
<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}
{IF MESSAGES->is_unapproved}
<a class="icon icon-accept" href="{MESSAGES->URL->APPROVE}">{LANG->ApproveMessage}</a>
{ELSE}
<a class="icon icon-comment-delete" href="{MESSAGES->URL->HIDE}">{LANG->HideMessage}</a>
{/IF}
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>
</div>
{/IF}

</div>
</div>
{/LOOP MESSAGES}

<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>

<div id="thread-options" class="nav">
<a class="icon icon-printer" href="{URL->PRINTVIEW}" target="_blank">{LANG->PrintView}</a>
{IF URL->MARKTHREADREAD}
<a class="icon icon-tag-green" href="{URL->MARKTHREADREAD}">{LANG->MarkThreadRead}</a>
{/IF}
{IF TOPIC->URL->FOLLOW}
<a class="icon icon-note-add" href="{TOPIC->URL->FOLLOW}">{LANG->FollowThread}</a>
{/IF}
{IF URL->FEED}
<a class="icon icon-feed" href="{URL->FEED}">{FEED}</a>
{/IF}
{IF MODERATOR true}
<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>
{ELSE}
<a class="icon icon-open" href="{TOPIC->URL->REOPEN}">{LANG->ReopenThread}</a>
{/IF}
<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}
{/IF}
</div>

{IF REPLY_ON_READ}
<a name="REPLY"></a>
{/IF}

<!-- 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