Change the Headings of Avatar Groupings

Post

Posted
Rating:
#6729 (In Topic #1550)
I am in the process of repopulating the avatars images with my own set of avataars and want to know if and how the headings of Miscellaneous, General, Cartoons, Hobbies, as found in the member profile under avatar, can be changed to some other description? Has anyone come across this process?

 

Post

Posted
Rating:
#6731
Hi David,

They come from the theme image subfolder. E.g. if upload a theme image with the ID of cns_default_avatars/example/foobar, it will be categorised under "Foobar".

Post

Posted
Rating:
#6734
I am attaching a screen shot of the members page where he can edit his profile. In the avatar grouping title I have pointed to the word Hobbies. Is what you replied previously how I can change the word Hobbies to something else. I have noticed that the images are fed to the grouping titled Hobbies but are kept at cns_default_avatars/default_set/thematic

screen shot hobbies.jpg

Post

Posted
Rating:
#6735
Oh sorry what I said before wasn't really right. It applies to new avatars, not the bundled ones.

The bundled ones are localised via the language pack. Here's the code doing it:

Code

        $ret = str_replace('Default Set/cartoons', do_lang('cns:AVATARS_CARTOONS'), $ret);
        $ret = str_replace('Default Set/thematic', do_lang('cns:AVATARS_THEMATIC'), $ret);
        $ret = str_replace('Default Set', do_lang('cns:AVATARS_MISC'), $ret);
As you can possibly see, the thematic directory is actually mapped to the AVATARS_THEMATIC language string.

Here's the language strings in cns.ini:

Code

AVATARS_CARTOONS=Cartoons
AVATARS_THEMATIC=Hobbies
AVATARS_MISC=Miscellaneous

AVATARS_THEMATIC actually is labelled "Hobbies".

Go to Admin Zone > Style > Translate/rephrase Composr, select cns as the file. Change the strings as required.

Post

Posted
Rating:
#6736
Wow! You must know where every needle is in every Composr Haystack! How amazing.

Once I found the words in translate/rephrase Composr it was simple. Thank you Chris!!

Post

Posted
Rating:
#6737
Actually I do searches on the code repository a lot ;-).
0 guests and 0 members have recently viewed this.