News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Default Avatar

Started by Dragooon, October 22, 2007, 10:19:11 PM

Previous topic - Next topic

Dragooon

Link to Mod
Author : Dragooon
Version : 1.1.1
Name : Default Avatar
Tested with : 1.1.3,1.1.4, 2.0 Beta 3 Public



If a user's avatar's field is empty, This mod replaces the avatar with a standard avatar which can be set via Admin > Attachments And Avatars > Avatars.
The avatar URL you set HAVE to be a URL, Not a Path to the image.

The default avatar will appear at every place where the avatar is shown.



Changelog

Version 1.0

  • Initial Release

Version 1.1

  • Took all the changes from templates to Source files
  • Now doesn't require any template changes, only sources file and this works with every theme, also it now replaces the avatar everywhere.
  • Added support for SMF 2 Beta 3 public

Version 1.1.1

  • Fixed a bug in which user uploaded avatars were not being shown
  • Added swedish translation


asdas2

woooooooooooooooooooooooooooooooooooooooooooooooooooooooooow
great mod ..... i m gonnnna install it Tomoro Inshallah
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

edi67

very useful mod, thx

somebody have some pic example to post as NO AVATAR or YOU MUST CHOICE AVATAR...ecc
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

MinasC

#3
great mod mate , thnx a lot !  ;D

here's the greek translation : (the word "Avatar" has not been translated in greek , i thought it would be better left in english)

//Default Avatar Strings
$txt['default_avatar_header'] = 'Προεπιλεγμένο Avatar';
$txt['default_avatar_settings'] = 'Διεύθυνση Προεπιλεγμένου Avatar';
$txt['default_avatar_subtxt'] = 'Αν το πεδίο avatar του χρήστη είναι κενό, εμφανίζεται το avatar αυτής της διεύθυνσης. Παρακαλούμε ΜΗΝ εισάγετε διαδρομή, εισάγετε διεύθυνση!';


edit : i just noticed from my (greek) forum that the word "Avatar" is translated as "Πορτραίτα" , so for those who prefer it that way the translation is :

//Default Avatar Strings
$txt['default_avatar_header'] = 'Προεπιλεγμένο Πορτραίτο';
$txt['default_avatar_settings'] = 'Διεύθυνση Προεπιλεγμένου Πορτραίτου';
$txt['default_avatar_subtxt'] = 'Αν το πεδίο πορτραίτου του χρήστη είναι κενό, εμφανίζεται το πορτραίτο αυτής της διεύθυνσης. Παρακαλούμε ΜΗΝ εισάγετε διαδρομή, εισάγετε διεύθυνση!';


Dragooon

Quote from: MinasC on October 23, 2007, 11:43:35 AM
great mod mate , thnx a lot !  ;D

here's the greek translation : (the word "Avatar" has not been translated in greek , i thought it would be better left in english)

//Default Avatar Strings
$txt['default_avatar_header'] = 'Προεπιλεγμένο Avatar';
$txt['default_avatar_settings'] = 'Διεύθυνση Προεπιλεγμένου Avatar';
$txt['default_avatar_subtxt'] = 'Αν το πεδίο avatar του χρήστη είναι κενό, εμφανίζεται το avatar αυτής της διεύθυνσης. Παρακαλούμε ΜΗΝ εισάγετε διαδρομή, εισάγετε διεύθυνση!';

Quote from: MinasC on October 23, 2007, 11:43:35 AM
great mod mate , thnx a lot !  ;D

here's the greek translation : (the word "Avatar" has not been translated in greek , i thought it would be better left in english)

//Default Avatar Strings
$txt['default_avatar_header'] = 'Προεπιλεγμένο Avatar';
$txt['default_avatar_settings'] = 'Διεύθυνση Προεπιλεγμένου Avatar';
$txt['default_avatar_subtxt'] = 'Αν το πεδίο avatar του χρήστη είναι κενό, εμφανίζεται το avatar αυτής της διεύθυνσης. Παρακαλούμε ΜΗΝ εισάγετε διαδρομή, εισάγετε διεύθυνση!';

Thank you for translations. I'll add them to the package soon.

MinasC

no sweat ! you are welcome !

Mr.CoWbOy

#6
i used a mod like this.. But its very useful.. thank you ;)

Here's the turkish translation ;

//Default Avatar Strings
$txt['default_avatar_header'] = 'Varsayılan Avatar';
$txt['default_avatar_settings'] = 'Varsayılan Avatar URL\'si';
$txt['default_avatar_subtxt'] = 'Eğer üyenizin avatarı yoksa linkteki avatar görülecek. Lütfen tam linki yazın';

Dragooon

Quote from: Mr.CoWbOy on October 25, 2007, 11:28:24 PM
i used a mod like this.. But its very useful.. thank you ;)

Here's the turkish translation ;

//Default Avatar Strings
$txt['default_avatar_header'] = 'Varsayılan Avatar';
$txt['default_avatar_settings'] = 'Varsayılan Avatar URL\'si';
$txt['default_avatar_subtxt'] = 'Eğer üyenizin avatarı yoksa linkteki avatar görülecek. Lütfen tam linki yazın';

Thank you. I'll soon add them.

falguni1


falguni1


Dragooon

URL, Try not having a URL To attachment.,

falguni1

I cant understand the difference between path and url

wot to write
u have my image url
http://omsites.com/omsaigan/index.php?action=dlattach;topic=467.0;attach=325;image

Dragooon

A path is something like /Home/Something/Image.jpg
A Url is http://domain.com/Image.jpg
And do Not use a URL to Attachment as I said.

falguni1

Default Avatar URL:
If the User's avatar's field is empty, the avatar from this link is shown. Please Do NOT enter a path, it should be a link    


u said use a link, its written in the mod

now u are saying "And do Not use a URL to Attachment as I said."

wot to do

falguni1

I cant understand anything

can u give me something which I can put into the default avatar

like please write and give

Dragooon

I mean Use a Link like http://yoursite.com/image.jpg
Now a Link to a attached image.

falguni1

#16
I am using that only see
http://omsites.com/omsaigan/index.php?action=dlattach;topic=467.0;attach=325;image

see there is http, my site and image also

I copied the image location with right click option

I also tried using

http://www.mitoledo.com/Donaire/Fotos/Chocolate.png
its not working I am using default theme

Dragooon

Are you sure you are not doing something wrong?
Did it installed successfully?

falguni1

I am using the following mods is it because of that

Mod Name     Version     
1.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
2.    Avatars at Index Mod    1.5    [ Uninstall ] [ List Files ] [ Delete ]
3.    MessagePreviewOnHover    1.5    [ Uninstall ] [ List Files ] [ Delete ]
4.    Default Avatar    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF Gallery Lite    1.8.1.1    [ Apply Mod ] [ List Files ] [ Delete ]
6.    Social Bookmarks    1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    MessagePreview    1.2    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Arcade    2.0.11    [ Uninstall ] [ List Files ] [ Delete ]
9.    Board Viewers Mod    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
10.    GoogleTagged    1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Auto Embed Video Clips    1.2    [ Uninstall ] [ List Files ] [ Delete ]
13.    Sticky First Post (extends sticky topic)    1.3.2    [ Apply Mod ] [ List Files ] [ Delete ]
14.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
15.    SMF 1.0.11 / 1.1.3 Update    1.1

Dragooon

I don't think so.
What theme are you using?

Advertisement: