Page 1 of 3

[ABD] Default Avatar

Posted: Wed Dec 24, 2014 9:07 am
by D@ve
Hi there
finally... here is my first extension...

Nothing special it just sets a default avatar if users don't upload one.

Looking forward to your comments and suggestions...

----

Standard-Avatar Extension for phpBB 3.1.x

Titel: Default-Avatar
Version: 0.10.0
Autor: Dave

Beschreibung: If the user doesn't upload an avatar you can define a default avatar here. If you don't enter a (remote or absolute) path here, no-avatar.gif from the prosilver thene will be used instead

Demo: http://www.2phpbb.de/phpbb-forum/

Screenshots:
Image
Image


Requirements: phpBB 3.1.2

Download: http://www.2phpbb.de/extensions/default ... 0.10.0.zip

Installation:
1. Unzip the file into the folder /ext/ in your phpBB root
2.Got to ACP => Tab "Customize" => "Manage Extensions" => click on "enable" at the "Default-Avatar" Extension

Known issues:
- none at the moment

Future ideas
- Thinking about an upload function in the ACP (I'm still not sure if it's worth the efford)

Re: [Beta] Default Avatar

Posted: Wed Dec 24, 2014 5:04 pm
by draky
Nice :)

Small suggestion : possibility to provide a default gravatar, possibility to link a distant avatar as default, etc.

Same option as in profile in fact ;)
Based on what is possible board-wide in ACP :) (if you disable gravatar in forum config, it will also be disabled in your ext config)...

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 8:49 am
by frax
I have this error:

Something went wrong during the request and an exception was thrown. The changes made before the error occurred were reversed to the best of our abilities, but you should check the board for errors.
A required module does not exist: DEFAULT_AVATAR

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 11:12 am
by D@ve
I Know, I have it already fixed. Try now... Just couldn't upload the new version during Christmas...

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 12:14 pm
by alhitary
When i install your extension by "Upload Extensions" viewtopic.php?f=456&t=2256956 , the bellow problem shown in the upper of page :

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/acp/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/adm/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/adm/style/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/config/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/events/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/de/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/en/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/migrations/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
Why ?!!!

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 12:18 pm
by alhitary
Also, the Arabic language changed like bellow image :-

Image

Image

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 6:46 pm
by alhitary

Code: Select all

	'USER'                        => '[b]Benutzer[/b]',
1/ What does it mean ? where it will be display in forum or ACP ?

2/ Is there a Github link for this extension ?

Re: [Beta] Default Avatar

Posted: Fri Dec 26, 2014 8:16 pm
by LavIgor
alhitary wrote:When i install your extension by "Upload Extensions" viewtopic.php?f=456&t=2256956 , the bellow problem shown in the upper of page ...
Why ?!!!
As I have already answered you, the current archive of the extension in this topic is wrongly packaged.

Re: [Beta] Default Avatar

Posted: Sat Dec 27, 2014 3:09 pm
by mr.ruf
alhitary wrote:When i install your extension by "Upload Extensions" viewtopic.php?f=456&t=2256956 , the bellow problem shown in the upper of page :

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/acp/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/adm/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/adm/style/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/config/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/events/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/de/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/language/en/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 329: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 332: fopen(./../ext/tmp/2/dave/defaultavatar/migrations/): failed to open stream: Is a directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 338: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 352: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
Why ?!!!
same problem !!!

Re: [Beta] Default Avatar

Posted: Sun Dec 28, 2014 8:45 pm
by mrgtb
Hmm, you do know you can set a "default avatar" given from members group settings, you can even give guest group a different default avatar using it from members. I do it on my own forum

Re: [Beta] Default Avatar

Posted: Tue Dec 30, 2014 4:29 am
by Sshadow
A very nice feature I had from a mod once would be to select a directory with several avatars in it. Then the avatar for users who have not selected one would be randomly chosen from that directory. The original mod is found here https://www.phpbb.com/customise/db/mod/ ... _no_avatar_/

Re: [Beta] Default Avatar

Posted: Sat Jan 03, 2015 4:32 pm
by D@ve
alhitary wrote:1/ What does it mean ? where it will be display in forum or ACP ?

2/ Is there a Github link for this extension ?
1) Where did you find this?
2) No, not at the moment. I'm using SVN. Have no time to get into Git.

LavIgor wrote:As I have already answered you, the current archive of the extension in this topic is wrongly packaged.
What exactly is wrong in the package? Are there any guidlines available?
mrgtb wrote:Hmm, you do know you can set a "default avatar" given from members group settings, you can even give guest group a different default avatar using it from members. I do it on my own forum
Yes I do know. But it's quite complicated (if not impossible) with default groups which already have set avatars and uploaded avatars to achieve a default avatar if the user has set none

Re: [Beta] Default Avatar

Posted: Sat Jan 03, 2015 4:58 pm
by Webwatcher_eu
Hi

after i disable this ext and click on "delete data" - on next page i get

"Are you sure that you wish to delete the data associated with “Default Avatar”?

This removes all of its data and settings and cannot be undone!"


if i confirm this screen by clicking "delete Data" i get this warnings:
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/migrator.php on line 442: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 132: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)

but it is removed i cant ee any other problems ... so far...

Re: [Beta] Default Avatar

Posted: Sat Jan 03, 2015 5:07 pm
by Raul [ThE KuKa]
D@ve wrote:.................
What exactly is wrong in the package? Are there any guidlines available?
Here D@ve: https://www.phpbb.com/extensions/writing/

;)

Re: [Beta] Default Avatar

Posted: Sat Jan 03, 2015 6:02 pm
by D@ve
thanks... I found no obvious mistakes...