News:

Wondering if this will always be free?  See why free is better.

Main Menu

Default Avatar

Started by vbgamer45, July 30, 2010, 11:25:41 PM

Previous topic - Next topic

pugcabclub


iPhoneDestek

translation in turkish




<file name="$languagedir/Modifications.turkish.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Avatar Mod translation by SirtLanVadisi.net
    $txt['enable_default_avatar_post'] = 'Konularda Varsayılan Avatarı etkinleştir';
    $txt['enable_default_avatar_pm'] = 'Özel Mesajlarda Varsayılan Avatarı etkinleştir';
    $txt['enable_default_avatar_profile'] = 'Profıl alanında Varsayılan Avatarı etkinleştir';
    $txt['enable_default_avatar_head'] = 'Başlık da Varsayılan Avatarı etkinleştir';
// End Default Avatarl Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.turkish-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Avatar Mod translation by SirtLanVadisi.net
    $txt['enable_default_avatar_post'] = 'Konularda Varsayılan Avatarı etkinleÅŸtir';
    $txt['enable_default_avatar_pm'] = 'Özel Mesajlarda Varsayılan Avatarı etkinleÅŸtir';
    $txt['enable_default_avatar_profile'] = 'Profıl alanında Varsayılan Avatarı etkinleÅŸtir';
    $txt['enable_default_avatar_head'] = 'BaÅŸlık da Varsayılan Avatarı etkinleÅŸtir';
// End Default Avatarl Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>





$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


iPhoneDestek

#22
translatıon ın german by SirtLanVadisi.net






<file name="$languagedir/Modifications.german.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Avatar Mod translation by SirtLanVadisi.net
    $txt['enable_default_avatar_post'] = 'Default Avatar in Beiträgen ermöglichen';
    $txt['enable_default_avatar_pm'] = 'Default Avatar in Privat Nachrichten ermöglichen';
    $txt['enable_default_avatar_profile'] = 'Default Avatar in Profil ermöglichen';
    $txt['enable_default_avatar_head'] = 'Default Avatar in Kopfzeilen ermöglichen';
// End Default Avatarl Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Default Avatar Mod translation by SirtLanVadisi.net
    $txt['enable_default_avatar_post'] = 'Default Avatar in Beiträgen ermöglichen';
    $txt['enable_default_avatar_pm'] = 'Default Avatar in Privat Nachrichten ermöglichen';
    $txt['enable_default_avatar_profile'] = 'Default Avatar in Profil ermöglichen';
    $txt['enable_default_avatar_head'] = 'Default Avatar in Kopfzeilen ermöglichen';
// End Default Avatar Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>








$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


mirahalo

thanks you ®SirtLan   I supose this are for utf8 language right?   can this be used for iso also?

iPhoneDestek

Quote from: 130860 on September 16, 2010, 07:30:15 PM
thanks you ®SirtLan   I supose this are for utf8 language right?   can this be used for iso also?



The translations are for both formats, as well as ISO and UTF8. So I translate on both formats


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Oya

teh first one wont be iso encoded by now it would have been saved here in utf8

iPhoneDestek

Quote from: Oya on September 17, 2010, 07:17:08 AM
teh first one wont be iso encoded by now it would have been saved here in utf8



I use one myself forum with UTF-8 Language and MOD installations in ISO languages I need to convert the language to UTF-8. This is why I translate formats principle to both.


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Oya

yes but you posted it here in the post and its now fully in utf8 in that post

Joker™

Mod updated.

Change Log - version 1.2 * (SMF 1.1.11) and  version 1.3 * (SMF 2 RC3)
After uninstalling the mod image was not removed from images directory. This issue has been resolved now.

Anyone facing the issue, simply install this version and uninstall it. Image from you images directory will be removed.

Happy Halloween ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Change Log - version 1.3 * (SMF 1.1.12) and  version 1.4 * (SMF 2 RC4)
- Mod updated for SMF 1.1.12 and SMF 2.0 RC4
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

DoctorMalboro

The other someone asked about this mod and if it's possible to make it only for registered users. I share the code if anyone needs it:

./Themes/default/Display.template.php
search:
if (!empty($modSettings['enable_default_avatar_post']) && empty($options['show_no_avatars']) && empty($message['member']['avatar']['image']))

replace:
if (!empty($modSettings['enable_default_avatar_post']) && empty($options['show_no_avatars']) && empty($message['member']['avatar']['image']) && !$user_info['is_guest'])

./Themes/default/PersonalMessage.template.php
search:
if (!empty($modSettings['enable_default_avatar_pm']) && empty($options['show_no_avatars']) && empty($message['member']['avatar']['image']))

replace:
if (!empty($modSettings['enable_default_avatar_pm']) && empty($options['show_no_avatars']) && empty($message['member']['avatar']['image']) && !$user_info['is_guest'])

./Themes/default/index.template.php
search:
if (!empty($modSettings['enable_default_avatar_head']) && empty($context['user']['avatar']))

replace:
if (!empty($modSettings['enable_default_avatar_head']) && empty($context['user']['avatar']) && !$user_info['is_guest'])

./Themes/default/Profile.template.php
search:
if (!empty($modSettings['enable_default_avatar_profile']) && empty($context['member']['avatar']['image']))

replace:
if (!empty($modSettings['enable_default_avatar_profile']) && empty($context['member']['avatar']['image']) && !$user_info['is_guest'])

Joker™

#31
Quote from: DoctorMalboro on November 15, 2010, 07:12:46 PM
The other someone asked about this mod and if it's possible to make it only for registered users. I share the code if anyone needs it:
I don't think default avatar's will be shown for guests  even without using the code you wrote above. Have you guys even tested it before modifying the code?

Edit - I enabled the mod, posted like guest and there was no avatar. (Am I missing something?). Also the $user_info also has to be declared in global.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

big red

  Hi Joker

  Got some test errors during install so i aborted and manually installed via the parsing instructions. It worked fine (default image showed in posts) for a few minutes but noticed images were not showing in a Simple Portal "Latest Member" block so i deleted the block and created a new one hoping that would work. But now your mod is no longer working. Firefox shows no default image and chrome shows the broken image symbol. I have deleted the browser/forum caches, re-checked using the parser and everything seems to be there. Even re-uploaded your default image again but still not working.

   Anyone have a clue what's going on here?? Anyone using Joker's mod with the latest versions of SMF & SP with a "latest member" block successfully???

Joker™

Quote from: big red on November 28, 2010, 10:40:04 PM
  Hi Joker

  Got some test errors during install so i aborted and manually installed via the parsing instructions. It worked fine (default image showed in posts) for a few minutes but noticed images were not showing in a Simple Portal "Latest Member" block so i deleted the block and created a new one hoping that would work. But now your mod is no longer working. Firefox shows no default image and chrome shows the broken image symbol. I have deleted the browser/forum caches, re-checked using the parser and everything seems to be there. Even re-uploaded your default image again but still not working.

   Anyone have a clue what's going on here?? Anyone using Joker's mod with the latest versions of SMF & SP with a "latest member" block successfully???
Simple portal block will not be containing the default avatar mod code, hence the avatar was not shown in it.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

big red

Quote from: Joker™ on November 29, 2010, 12:51:56 AM
Quote from: big red on November 28, 2010, 10:40:04 PM
  Hi Joker

  Got some test errors during install so i aborted and manually installed via the parsing instructions. It worked fine (default image showed in posts) for a few minutes but noticed images were not showing in a Simple Portal "Latest Member" block so i deleted the block and created a new one hoping that would work. But now your mod is no longer working. Firefox shows no default image and chrome shows the broken image symbol. I have deleted the browser/forum caches, re-checked using the parser and everything seems to be there. Even re-uploaded your default image again but still not working.

   Anyone have a clue what's going on here?? Anyone using Joker's mod with the latest versions of SMF & SP with a "latest member" block successfully???
Simple portal block will not be containing the default avatar mod code, hence the avatar was not shown in it.

   Ok - that's fine. But how come it was working for a few minutes and now doesn't?? Could the latest member block have corrupted your mod somehow?? The latest member block was showing avatars (non default) and now it isn't.

Joker™

Quote from: big red on November 29, 2010, 11:18:19 AM
Quote from: Joker™ on November 29, 2010, 12:51:56 AM
Quote from: big red on November 28, 2010, 10:40:04 PM
  Hi Joker

  Got some test errors during install so i aborted and manually installed via the parsing instructions. It worked fine (default image showed in posts) for a few minutes but noticed images were not showing in a Simple Portal "Latest Member" block so i deleted the block and created a new one hoping that would work. But now your mod is no longer working. Firefox shows no default image and chrome shows the broken image symbol. I have deleted the browser/forum caches, re-checked using the parser and everything seems to be there. Even re-uploaded your default image again but still not working.

   Anyone have a clue what's going on here?? Anyone using Joker's mod with the latest versions of SMF & SP with a "latest member" block successfully???
Simple portal block will not be containing the default avatar mod code, hence the avatar was not shown in it.

   Ok - that's fine. But how come it was working for a few minutes and now doesn't?? Could the latest member block have corrupted your mod somehow?? The latest member block was showing avatars (non default) and now it isn't.
I have never used portal system, so no idea about this one.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

live627

Joker, this mod can and should be rewritten to include zero theme edits. Doing so will bring tremendous rewards: Farting around with themes becomes a thing of the past; if you do it correctly, you can suddenly get the default avatar to display just about anywhere (portal systems included);  you won't need to adjust the code to keep compatibility up (The code I have in mind did not change a bit between RC releases and I think the 1.1 equivalent is almost the same).

Joker™

Quote from: live627 on November 29, 2010, 08:54:46 PM
Joker, this mod can and should be rewritten to include zero theme edits. Doing so will bring tremendous rewards: Farting around with themes becomes a thing of the past; if you do it correctly, you can suddenly get the default avatar to display just about anywhere (portal systems included);  you won't need to adjust the code to keep compatibility up (The code I have in mind did not change a bit between RC releases and I think the 1.1 equivalent is almost the same).
I know Load.php will do the most of the trick, thanks for the suggestion. If i get time in upcoming days I'll make it a non-template edit mod ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

big red

  Figured out the issue Joker

I installed via the "parser" and your last instruction there was
QuoteMove the included file "default_avatar.png" to "./Themes/default/images".

    Now in proper directory and works fine.

           

Joker™

Quote from: live627 on November 29, 2010, 08:54:46 PM
Joker, this mod can and should be rewritten to include zero theme edits. Doing so will bring tremendous rewards: Farting around with themes becomes a thing of the past; if you do it correctly, you can suddenly get the default avatar to display just about anywhere (portal systems included);  you won't need to adjust the code to keep compatibility up (The code I have in mind did not change a bit between RC releases and I think the 1.1 equivalent is almost the same).
Upgraded the mod for SMF 2.0 branch with some more options. Hope you guys will like it ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: