[MODDB] Default Random 'No Avatar' 1.0.4a

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [BETA] Default Random 'No Avatar'.

Post by lovelysummer »

I also have the "Avatar of poster on Index and Viewforum" installed. I have tried the following.
this is the code before edit

Code: Select all

		return '<img src="images/avatars/no_avatar.gif" ' . (($avatar_width) ? ' width="' . $avatar_width . '" height="' . $avatar_height . '"' : '' ) . ' alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
in line find

Code: Select all

no_avatar.gif" '
replace

Code: Select all

random/no_avatar' . mt_rand(1, 17) . '.gif"'
It seems working but I am not very sure since I am not a coder. :)
User avatar
Boardtalk.net
Registered User
Posts: 1222
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.2

Post by Boardtalk.net »

Updated to version 1.0.2

Note:
Update version 1.0.2 was rewritten by Killbill. And I would like say big thanks for the help and good code ;)
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: [BETA] Default Random 'No Avatar'. 1.0.2

Post by Richazey »

Upgraded to 1.0.2 with no issues and love how simple it is to change from gif to png as well 8-)
User avatar
Boardtalk.net
Registered User
Posts: 1222
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.2

Post by Boardtalk.net »

Great to hear and thanks Rich :D
User avatar
Boardtalk.net
Registered User
Posts: 1222
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by Boardtalk.net »

Updated to Version 1.0.3
Version 1.0.3 allows support for forums where GD is disabled, this slight change of code saves users from having to check if GD is enabled or disabled. Thanks KillBill. ;)
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by keith10456 »

Thanks for the upgrade and as always I tip my hat to KillBill... She's a great phpBB programmer 8-)
User avatar
KillBill.
Registered User
Posts: 604
Joined: Tue Jun 02, 2009 4:07 pm
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by KillBill. »

keith10456 wrote:Thanks for the upgrade and as always I tip my hat to KillBill... She's a great phpBB programmer 8-)
:oops: :oops: :oops:
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by Richazey »

Boardtalk.net wrote:Updated to Version 1.0.3
Version 1.0.3 allows support for forums where GD is disabled, this slight change of code saves users from having to check if GD is enabled or disabled. Thanks KillBill. ;)
Nice one, works fab 8-)
achu68
Registered User
Posts: 99
Joined: Tue Oct 19, 2010 1:20 pm

Re: [BETA] Default Random 'No Avatar'. 1.0.2

Post by achu68 »

Boardtalk.net wrote:Updated to version 1.0.2

Note:
Update version 1.0.2 was rewritten by Killbill. And I would like say big thanks for the help and good code ;)
Thanks everyone i was using the first KillBill's post Mod this:
http://www.phpbb.com/community/viewtopi ... #p12920823

It works fine but Do i have to upgrade? or what you suggest?


Regards,
User avatar
KillBill.
Registered User
Posts: 604
Joined: Tue Jun 02, 2009 4:07 pm
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by KillBill. »

recommended to always use the latest version.
achu68
Registered User
Posts: 99
Joined: Tue Oct 19, 2010 1:20 pm

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by achu68 »

Ok thank you i will upgrade.
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by lovelysummer »

HI HI,
In the 1.0.2 to 1.0.3 update.XML instruction, there is an additional } in the last replace edit which will make a syntax error. ;)
http://img31.imageshack.us/i/drai.jpg/
User avatar
Boardtalk.net
Registered User
Posts: 1222
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by Boardtalk.net »

lovelysummer wrote:HI HI,
In the 1.0.2 to 1.0.3 update.XML instruction, there is an additional } in the last replace edit which will make a syntax error. ;)
http://img31.imageshack.us/i/drai.jpg/
Thanks for letting me know, am hoping to get time over the weekend to update and correct any issues. It has been submitted to the mod db but requires further work. ;)
User avatar
therat
Registered User
Posts: 285
Joined: Sun Apr 07, 2002 6:06 pm
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by therat »

Great MOD & works really well. The Google docs mirror doesnt appear to be working though, takes me to a page saying Sorry, the page (or document) you have requested is not available.
User avatar
Boardtalk.net
Registered User
Posts: 1222
Joined: Fri Jun 05, 2009 8:12 pm
Location: Ireland
Name: Colette
Contact:

Re: [BETA] Default Random 'No Avatar'. 1.0.3

Post by Boardtalk.net »

Thanks for letting me know therat, I'll take down the mirror for the moment. The mod is submitted to the Mod DB for validation, I’ll update this topic with the latest version.

Glad its working well for you.
:D
Locked

Return to “[3.0.x] MODs in Development”