Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Didds on July 19, 2009, 12:10:12 PM

Title: [Request] MOD to change Username to image :)
Post by: Didds on July 19, 2009, 12:10:12 PM
Hey! If anyone is any good at mods listen up :P

I would like a mod to be made (If possible) That would change your user name to an image. So if you wanted your username to be like this for example :(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FRevampedBanner-1.png&hash=ad6035d90d241f4ecd655e4624446cccaab6c61a) You could have it. I'm sure this could be done ;)
And could it be made for SMF 2.0?

-Thanks- :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 19, 2009, 12:30:06 PM
Hi Didds! :)

Would you like to have this image automaticly made?
For example, I change my name to Nasalala, the image would be generated and changed for me without you, the admin, doing anything?
Or would you like to create each image for each member yourself?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 19, 2009, 05:17:27 PM
Quote from: Nas on July 19, 2009, 12:30:06 PM
Hi Didds! :)

Would you like to have this image automaticly made?
For example, I change my name to Nasalala, the image would be generated and changed for me without you, the admin, doing anything?
Or would you like to create each image for each member yourself?

Yes, that would be perfect! Although, could I choose the colours of the names?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 19, 2009, 05:18:23 PM
Quote from: Kat on July 19, 2009, 12:33:34 PM
We did this on our forum, by doing it with the "Censored words" feature.

We added some smileys and made them hidden.

Say you wanted an image named "Didds.gif" to replace the word "Didds". We made a smiley with the ciode ":didds:" and, in "Censored words", replace "Didds" with ":didds:", which will show the smiley graphic, whenever the name is entered.

No need to add code for custom themes, that way. :)

That is quite a good idea! Very inventive! I will use it if I find no other way :) Thanks ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 20, 2009, 06:07:52 AM
Any success? :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 20, 2009, 07:03:49 PM
:( Anyone there :(  :'(
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 01:06:24 PM
Nas, you there? :(
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 21, 2009, 01:11:31 PM
/me comes back, says "So much easier to use censored words feature" and slithers back out...
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 02:20:09 PM
Lmao :P Ok, how do I do it though? I know how to censor words, but how do I make an image appear when that word is used?
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 21, 2009, 02:22:08 PM
Create hidden smileys.

If you install a smiley file called didds.gif and use the code :didds:, then go to censored words and tell it to replace didds with ":didds:", you're laughing.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 06:01:36 PM
How do I install a hidden smiley? :D  ???
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 21, 2009, 06:08:33 PM
When you add it, or edit it, you'll see "Location". "Hidden" is one of the options. That just means that it won't appear on post/reply pages, or the popup.
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 21, 2009, 06:32:20 PM
I tried this didn't work when I change my display name it just stays as the word noob. I made a hidden smiley called noob. code for it is :noob: censored word was noob which will change the word to :noob:
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 06:33:26 PM
Ok :) But how do I add an individual smiley? Sorry for bothering you :P
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 21, 2009, 06:35:09 PM
Admin>Smileys>Add Smiley

Oddly enough. ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 21, 2009, 06:35:22 PM
Quote from: t2noob on July 21, 2009, 06:32:20 PM
I tried this didn't work when I change my display name it just stays as the word noob. I made a hidden smiley called noob. code for it is :noob: censored word was noob which will change the word to :noob:

Sorry to be blunt, but you must've done something wrong.  :)

That only replaces the name in posts, not in titles and stuff.
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 21, 2009, 06:37:14 PM
can you tell me how to do it exactly?!
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 06:41:25 PM
Yeahh post it here please, just so I fully understand :P
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 06:42:53 PM
Ohhh I use SMF 2.0 RC1.....I don't see Add Smiley.... :( Is this SMF 1 only? :(
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 21, 2009, 06:45:02 PM
Even if i change it to the smiley code I just get this.
Edit :In the posts it works so If i were to add noob to this post it changes the noob word to a picture or the smiley code :noob: I want it to change the Title to a picture. How can you say that using censored words would work ?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 21, 2009, 07:05:52 PM
Yeah I want what he said.... ;D
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 04:17:23 AM
Yeah, so I'm using SMF 2.0 RC1.... and I don't see an option to install a smiley..... any help? :(
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 07:12:08 AM
Quote from: Didds on July 21, 2009, 06:42:53 PM
Ohhh I use SMF 2.0 RC1.....I don't see Add Smiley.... :( Is this SMF 1 only? :(

There must be!

I'll check-out the doc site and see if I can find it.

Quote from: t2noob on July 21, 2009, 06:45:02 PMI want it to change the Title to a picture. How can you say that using censored words would work ?

Quote from: Kat on July 21, 2009, 06:35:22 PM

That only replaces the name in posts, not in titles and stuff.
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 07:13:04 AM
<------------------- You want a pic in there?

Surely, that's what an avatar is?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 08:35:36 AM
He want's what I want. Where your name appears as an image. There is a code for it on SMF for Free, but I want one for SMF 2.0 RC1 :(
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 22, 2009, 01:19:39 PM
didds can you point me towards the direction of that code please?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 02:40:31 PM
Sorry, I can't find it :( But if you search the SMFforFree site you will find it ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 03:49:18 PM
Sorry, Didds. I thought you just meant in posts.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 03:55:06 PM
:( That is a very good idea though :P Maybe, there is some way to do it, by using the usernames that are reserved feature?
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 04:00:14 PM
Personally, I don't really see the point, as there's an avatar there, anyway.

Maybe Nas'll come back and figure something, ay?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 04:12:49 PM
Hopefully :( I had colourful names on an SMFforFREE forum, and it really helps make the forum look more colourful :)
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 04:18:43 PM
Not sure this is what you mean...

But, if you go to Admin>membergroups and click on a group, you'll see "Color in online list:". Change the Hex value, for that, and each membergroup will have the colour you set, there.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 04:44:05 PM
Noo I wanted images like these (I made these for the other forum)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName.png&hash=07d67313b90d1f2f5cab4ed0640ae3d574ac3218)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName2.png&hash=f7ba036df3bdfa39f092750439347fd592f096e7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FMianame.png&hash=3ec6786dbcb9bf99b19529c6619805cde79db04e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FTylername.png&hash=e3409ee24f2d1cbe5aadc1e497e03b0b105952c7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2Fshortyname.png&hash=fecc228b4dc29d67400e529c573d6849804a8114)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FZiiiiiiiinname.png&hash=5bcf78165bcc3392449ed810fde7b729ebab018b)
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 05:08:43 PM
I think the hassle might be that the name, above the avatar, is a clickable link to your profile.

I guess a bit of coding could sort that, though.

Let's wait and see what Nas says.

He's done some damned good mods, has Nas.

I guess another problem would be that new members wouldn't have an image, so no image would be shown.

Unless you have a default image, to start with.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 05:22:41 PM
Well what I was thinking is that I have to manually put the image there for anyone that wants it, with a shop mod. So if someone buys it, I make them the image. And if someone doesn't buy it, their normal name is shown. :D
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 22, 2009, 05:30:00 PM
I hope Nas likes a challenge... (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fevilgrin.gif&hash=c771cc265f50bd12a96a927a5db6d86562853950)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 22, 2009, 05:52:43 PM
Me too! :D
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 22, 2009, 06:45:36 PM
Yeah Kat Next time read the Post and Understand it before you give an answer. You had me and Didds very excited. I mean If you would have read the post you would have seen that he wanted an image in the Title to replace their username.
Title: Re: [Request] MOD to change Username to image :)
Post by: gbsothere on July 22, 2009, 06:59:47 PM
Yeah, Kat.    (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereikeepmystuff.com%2Fsmf%2FSmileys%2Fclassic%2FBat_stick_fighter.gif&hash=efd09a74444ff704ff793bae385d52a482c5a9de)




(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereikeepmystuff.com%2Fsmf%2FSmileys%2Fclassic%2Fbiggrin.gif&hash=28a6e4ade3150a60df00f57af26fbf164eabf0f9)

Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 23, 2009, 07:02:32 AM
t2noob obviously read a totally different post, to me, gb...
Title: Re: [Request] MOD to change Username to image :)
Post by: gbsothere on July 23, 2009, 07:28:36 AM
If you're going to extend yourself to try to be nice around here, you may need to borrow this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2Fmayi.gif&hash=237319260351d6db9e0e6991e22e30c7e8d0735a)




(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereikeepmystuff.com%2Fsmf%2FSmileys%2Fclassic%2Flol_2.gif&hash=82c56e4a1c937a2cef3e237965cecc93387023d5)
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 23, 2009, 07:35:04 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2FTroll007.gif&hash=bee44452a89cbdea6186619f46701527f613c951)
Title: Re: [Request] MOD to change Username to image :)
Post by: gbsothere on July 23, 2009, 07:50:59 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereikeepmystuff.com%2Fsmf%2FSmileys%2Fclassic%2Fcoffeescreen.gif&hash=3f181c589a54d3787b61c7ff770cfc4b87aefb6d)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 23, 2009, 10:22:02 AM
Where is Nas? :(
Title: Re: [Request] MOD to change Username to image :)
Post by: Arantor on July 25, 2009, 07:01:09 AM
How exactly would you like this to look? It's possible to make it generate the images automatically but I'd need to know how you want them to look, after that it's a minor theme mod.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 11:31:59 AM
Well if it's easier I would prefer to make the images myself :D
Here's how I want them to be (Go there and look at their names) thelandingforum.com/

I made all their names manually. Which is easier to do? Manual or automatic? If it's automatic, would I be able to customize how they images come out? If so that would be preferable :P
Title: Re: [Request] MOD to change Username to image :)
Post by: kat on July 25, 2009, 11:34:38 AM
Quote from: Didds on July 25, 2009, 11:31:59 AMHere's how I want them to be (Go there and look at their names) thelandingforum.com

You'll need to enable guest-viewing...
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 11:38:56 AM
Ohhh lol I don't have admin privileges on it :P
They're like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName.png&hash=07d67313b90d1f2f5cab4ed0640ae3d574ac3218)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName2.png&hash=f7ba036df3bdfa39f092750439347fd592f096e7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FMianame.png&hash=3ec6786dbcb9bf99b19529c6619805cde79db04e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FTylername.png&hash=e3409ee24f2d1cbe5aadc1e497e03b0b105952c7)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2Fshortyname.png&hash=fecc228b4dc29d67400e529c573d6849804a8114)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FZiiiiiiiinname.png&hash=5bcf78165bcc3392449ed810fde7b729ebab018b)
Title: Re: [Request] MOD to change Username to image :)
Post by: Arantor on July 25, 2009, 11:52:59 AM
Hmmm.

If it's done manually, every time a user wants to change their name you'll have to do a new image. If it's done automatically, well, how much customisation would you want? If done automatically this may well be a mod just for you.
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 25, 2009, 12:48:49 PM
I've been on vacation. :)
It'd be easy to generate them automatically, but as Arantor mentioned, we'd need to know how much you need to customize each name.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 01:14:03 PM
All I'd need to customize would be the actual name and the colour :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 25, 2009, 01:14:26 PM
Would the users be able to choose color them selfs?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 01:19:47 PM
Yeah, that would be good :) Or they would have to tell me what colour they want. If there was an option to have both that would be good  ;D
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 25, 2009, 01:20:55 PM
So a summary:

When users change (or set for the first time) their username, they can choose a color. A image is then generated (Using a font set by you), and replaces their username in posts?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 01:23:20 PM
Yess, but what do you mean by "username in posts"? I want their username across the entire forum to be the image.... ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 25, 2009, 01:25:05 PM
Okey, that works aswell. ;) I'll start working on this, tonight or tomorrow morning. :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 25, 2009, 01:26:38 PM
Okay thanks a lot  :D :D
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 26, 2009, 05:13:31 AM
Progress is doing great. I'm currently weoking on the settings for admins (Choose font etc). Then I'll just create the setting where users can choose their color, and finish of by adding a nicer touch to the image. ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 26, 2009, 08:06:05 AM
:) Thanks so much :D
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 26, 2009, 01:55:04 PM
Here's an early beta of the mod (Attached at bottom). Please note that all features are not added in this version - Also, this version is only for SMF 1.1.x (I usually start by doing 2.0, and then do 1.1.x, but this time I did it the other way).
I'll update this beta to 2.0 tonight.

Even though this is a beta it works perfectly fine, though as mentioned some features are missing - Mainly the option for members to choose color.









Username Images 1.0 Beta 1
Displays a bar in posts and/or profiles, showing how active the user is.
Link to Mod (http://www.simplemachines.org/community/index.php?topic=325248.0) | Development topic (http://www.simplemachines.org/community/index.php?topic=325248.0)

Author: Nas (http://custom.simplemachines.org/mods/index.php?action=profile;u=143954)
Type: New feature (http://custom.simplemachines.org/mods/index.php?action=search;type=1)
Available since: July 26 2009
Latest version: 1.0 Beta 1
Compatible with: Beta is compatible with 1.1.x only. 2.0 version under development.
Available languages: (https://www.simplemachines.org/site_images/lang/english.gif)



UNDER DEVELOPMENT
Please not that this mod is not yet finished. Though it works perfectly fine on a frsh installation of SMF, not all features are added and there are a few bugs.

What does it do?
Username Images replaces all usernames around the forum with an automaticly generated image.
Admins can choose font and size. Members can set their image color them selfs.

How does it work?
Username Images uses the GD module to generate a transparent text image using the settings set by admin, and the color choosen by each member.
The image is used in certain key locations such as board index, message index, posts, profiles and more.

How to use
To use Username Images, download the package from the SMF customization site (http://www.simplemachines.org/community/index.php?topic=325248.0), and install it via your Package Manger (http://docs.simplemachines.org/index.php?topic=95).
Then head over to the settings page* and make sure everything is set as you want it to.
Usernames all around the forum will now be changed to images, and users can select their own personal color through their profile.

* = Settings are located in
Admin > Features & settings (1.1.x)


Support & comments
If you have a problem with this mod, want to comment, or have any question, please post to the modification development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0) and I will reply as soon as possible.

Other information
Original idea
o Requested by Didds (http://www.simplemachines.org/community/index.php?action=profile;u=178420) in [Request] MOD to change Username to image :) (http://www.simplemachines.org/community/index.php?topic=325248.0).
Translation of this mod
o I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0).
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language fiels will occur while this modification is still in beta.
Credits
o Thanks ccbtimewiz and Robbo for helping me out when I killed my servers using the wrong code. :P

Changelog
1.0 Beta 1 | July 26 2009
$ Development starts and Beta 1 is released.





Changelog legend
+ New feature
- Feature removal
! Bugfix
> New language
< Removed language
* New version support
$ Initial release / Big update

Versionnames
Format: $.o.x.!
Example: 3.2.4.1

$ New version
o New features added
x Bugfix
! Small bugfix / New version support


Passed versions of this mod
None.

Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 26, 2009, 02:49:55 PM
oooo I'm so excited! I use 2.0 so I'll have to wait till you've finished it to use it :P Thanks so much for this :D
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 08:35:20 AM
Here's a version for 2.0. Remember to backup the affected files before installing!








Username Images 1.0 Beta 1.1
Replaces usernames around the forum with a automaticly generated text image.
Link to Mod (http://www.simplemachines.org/community/index.php?topic=325248.0) | Development topic (http://www.simplemachines.org/community/index.php?topic=325248.0)

Author: Nas (http://custom.simplemachines.org/mods/index.php?action=profile;u=143954)
Type: New feature (http://custom.simplemachines.org/mods/index.php?action=search;type=1)
Available since: July 26 2009
Latest version: 1.0 Beta 1.1
Compatible with: 1.1.x, 2.0 RC1.2
Available languages: (https://www.simplemachines.org/site_images/lang/english.gif) (https://www.simplemachines.org/site_images/lang/swedish.gif)



UNDER DEVELOPMENT
Please not that this mod is not yet finished. Though it works perfectly fine on a frsh installation of SMF, not all features are added and there are a few bugs.

What does it do?
Username Images replaces all usernames around the forum with an automaticly generated image.
Admins can choose font and size. Members can set their image color them selfs.

How does it work?
Username Images uses the GD module to generate a transparent text image using the settings set by admin, and the color choosen by each member.
The image is used in certain key locations such as board index, message index, posts, profiles and more.

How to use
To use Username Images, download the package from the SMF customization site (http://www.simplemachines.org/community/index.php?topic=325248.0), and install it via your Package Manger (http://docs.simplemachines.org/index.php?topic=95).
Then head over to the settings page* and make sure everything is set as you want it to.
Usernames all around the forum will now be changed to images, and users can select their own personal color through their profile.

* = Settings are located in
Admin > Features & settings (1.1.x)
Admin > Modifications > General (2.0)


Support & comments
If you have a problem with this mod, want to comment, or have any question, please post to the modification development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0) and I will reply as soon as possible.

Other information
Original idea
o Requested by Didds (http://www.simplemachines.org/community/index.php?action=profile;u=178420) in [Request] MOD to change Username to image :) (http://www.simplemachines.org/community/index.php?topic=325248.0).
Translation of this mod
o I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0).
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language fiels will occur while this modification is still in beta.
Credits
o Thanks ccbtimewiz and Robbo for helping me out when I killed my servers using the wrong code. :P

Changelog
1.0 Beta 1.1 | July 27 2009
! A bug in generateUserImage.php caused by the font setting should now be fixed.
> Swedish lanugage is added.
* Support for SMF 2.0 is added.
1.0 Beta 1 | July 26 2009
$ Development starts and Beta 1 is released.





Changelog legend
+ New feature
- Feature removal
! Bugfix
> New language
< Removed language
* New version support
$ Initial release / Big update

Versionnames
Format: $.o.x.!
Example: 3.2.4.1

$ New version
o New features added
x Bugfix
! Small bugfix / New version support


Passed versions of this mod
1.0 Beta 1

Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 27, 2009, 09:33:56 AM
I tried to install it but it said "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

:( I'm using SMF 2.0 RC1.... :(
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 09:39:37 AM
You should upgrade to SMF 2.0 RC1.2. I only added that version to the installation as the erlier versions has got security issues.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 27, 2009, 12:05:58 PM
Ok, but when I try to upgrade, I get this message:

An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.


Can you walk me through how to do it?
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 12:08:26 PM
You might want to make a manual upgrade instead.
First from RC1 to RC1-1: http://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_1.0.17_1.1.9_2.0-RC1-1.zip;smf_version=2.0%20RC1

And then from RC1-1 to RC1.2: http://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_1.0.18_1.1.10-2.0-RC1.2.zip;smf_version=2.0%20RC1-1
Title: Re: [Request] MOD to change Username to image :)
Post by: CesarManara on July 27, 2009, 12:22:52 PM
Hi Nas, i want to use this Mod, but i'am using portuguse_brazilian langague.
So i need the modifications parse.
Can u get me this?
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 12:25:05 PM
CesarManara, this is what you need to translate and add to Modifications.portuguese.php:

// Username Images modification by Nas
$txt['ui_font'] = 'Font <div class="smalltext">The font used in the username images. The fonts listed are the default fonts in SMF.';
$txt['ui_width'] = 'Image width <div class="smalltext">The width of the username images.';
$txt['ui_height'] = 'Image height <div class="smalltext">The height of the username images.';
$txt['ui_fontsize'] = 'Font size <div class="smalltext">The font size used in the username images.';
$txt['ui_useshadows'] = 'Use shadows <div class="smalltext">Enable this to add a shadow to each username image.';
$txt['ui_defaultcolor'] = 'Default color <div class="smalltext">This color will be used if an user has not set any color themself. (Hex color code, <b>without leading <i>#</i></b>)';
$txt['ui_forgottb'] = 'Forgottb';
$txt['ui_kimbalt'] = 'Kimbalt';
$txt['ui_screenge'] = 'Screenge';
$txt['ui_walshes'] = 'Walshes';
$txt['ui_venusris'] = 'Venusris';
// Username Images modification by Nas


Also, feel free to hand the translation over to me and I can add it to the default package. :)
Title: Re: [Request] MOD to change Username to image :)
Post by: CesarManara on July 27, 2009, 12:45:07 PM
$txt['ui_forgottb'] = 'Forgottb';
$txt['ui_kimbalt'] = 'Kimbalt';
$txt['ui_screenge'] = 'Screenge';
$txt['ui_walshes'] = 'Walshes';
$txt['ui_venusris'] = 'Venusris';

These are names? Don't know how to translate.
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 12:45:35 PM
Those are font names and does not require any translation at all. :)
Title: Re: [Request] MOD to change Username to image :)
Post by: CesarManara on July 27, 2009, 12:46:46 PM
So:

Modifications.portuguese_brazilian.php
// Username Images modification by Nas
$txt['ui_font'] = 'Fonte <div class="smalltext">A fonte usada nas imagens dos nomes dos usuários. As fontes listadas são as padrão do SMF.';
$txt['ui_width'] = 'Largura da imagem <div class="smalltext">A largura da imagem do nome dos usuários.';
$txt['ui_height'] = 'Altura da imagem <div class="smalltext">A altura da imagem do nome dos usuários.';
$txt['ui_fontsize'] = 'Tamanho da fonte <div class="smalltext">O tamanho da fonte da imagem do nome dos usuários.';
$txt['ui_useshadows'] = 'Usar sombras <div class="smalltext">Habilite isto para adicionar sombreamento nas imagens.';
$txt['ui_defaultcolor'] = 'Cor padrão <div class="smalltext">Esta cor vai ser usada se o usuário não escolher uma cor. (Código Hex, <b>Sem usar o prefixo <i>#</i></b>)';
$txt['ui_forgottb'] = 'Forgottb';
$txt['ui_kimbalt'] = 'Kimbalt';
$txt['ui_screenge'] = 'Screenge';
$txt['ui_walshes'] = 'Walshes';
$txt['ui_venusris'] = 'Venusris';
// Username Images modification by Nas
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 12:47:56 PM
That's correct. Would you like me to include this translation in the package in the next update? :)
Title: Re: [Request] MOD to change Username to image :)
Post by: CesarManara on July 27, 2009, 12:52:00 PM
Quote from: Nas on July 27, 2009, 12:47:56 PM
That's correct. Would you like me to include this translation in the package in the next update? :)

Yeah. this will be a nice thing.

But i'am getting erros when install the mod =/
Will edit here with the errors.

Edit: the red things are Error.

Edit2: I've translated another mod by you.
http://www.simplemachines.org/community/index.php?topic=321247.msg2175427#msg2175427
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 27, 2009, 04:23:12 PM
CesarManara, that must be because of other mods conflicting.




I added this tonight:
http://www.forentadatorerna.se/index.php?action=projects

It a WIP, but feel free to sign up and report bugs or reuqest features for this, and my other mods.
To report/request, log in and click on "Report issue" while viewing a project.:)
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 28, 2009, 01:50:08 PM
Can you make it so I can use the parser with this mod?
I was trying to see so I can edit as necessary to use with my mod but I got this error when I used the parser
Note: If a file does not exist in your theme, it doesn't matter (as the file from the Default theme will be used).

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 252: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE4 0x6E 0x64 0x73 in /home/dragonfl/public_html/resourcez/PackageParser/index.php on line 450

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: $txt['ui_font'] = 'Typsnitt <div class="smalltext">Det tyspnitt som anv�nds i an in /home/dragonfl/public_html/resourcez/PackageParser/index.php on line 450

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/dragonfl/public_html/resourcez/PackageParser/index.php on line 450

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/dragonfl/public_html/resourcez/PackageParser/index.php:450 Stack trace: #0 /home/dragonfl/public_html/resourcez/PackageParser/index.php(450): SimpleXMLElement->__construct('<?xml version="...') #1 /home/dragonfl/public_html/resourcez/PackageParser/index.php(419): parseModificationXML('/tmp/install1.1...', Object(SimpleXMLElement), 'theme') #2 /home/dragonfl/public_html/resourcez/PackageParser/index.php(94): parsePackageInfoXML('/tmp/package-in...', 'install', 'theme') #3 /home/dragonfl/public_html/resourcez/PackageParser/index.php(777): parseArchive() #4 {main} thrown in /home/dragonfl/public_html/resourcez/PackageParser/index.php on line 450
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 28, 2009, 02:17:36 PM
Here are the manual installation inctructions for SMF 1.1.x. I'll post the edits for 2.0 in a bit.
Please backup all affected files and your database before follwoing this, incase I made a misstake in the guide.





Manual installation of Username Images

SMF 1.1.x



./Sources/BoardIndex.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . $row_board['modRealName'] . '</a>'
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . generateUsernameImage($row_board['modRealName']) . '</a>'




Code (Find) Select
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : $row_board['realName']) : $txt[470],
Code (Replace with) Select
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . generateUsernameImage($row_board['realName']). '</a>' : $row_board['realName']) : $txt[470],




Code (Find) Select
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

Code (Replace with) Select
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . generateUsernameImage($row['realName']) . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . generateUsernameImage($row['realName']) . '</a>';









./Sources/MessageIndex.php

Code (Find) Select
'username' => $row_board['posterName'] != '' ? $row_board['posterName'] : $txt[470],
'name' => $row_board['realName'],
'href' => !empty($row_board['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] : '',
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . $row_board['realName'] . '</a>' : $row_board['realName']) : $txt[470],

Code (Replace with) Select
'username' => generateUsernameImage($row_board['posterName']) != '' ? generateUsernameImage($row_board['posterName']) : $txt[470],
'name' => generateUsernameImage($row_board['realName']),
'href' => !empty($row_board['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] : '',
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MEMBER'] . '">' . generateUsernameImage($row_board['realName']) . '</a>' : generateUsernameImage($row_board['realName'])) : $txt[470],
),





Code (Find) Select
'name' => $row_board['modRealName'],
'href' => $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . $row_board['modRealName'] . '</a>'
);
$context['boards'][$row_board['ID_BOARD']]['link_moderators'][] = '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . $row_board['modRealName'] . '</a>';

Code (Replace) Select
'name' => generateUsernameImage($row_board['modRealName']),
'href' => $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . generateUsernameImage($row_board['modRealName']) . '</a>'
);
$context['boards'][$row_board['ID_BOARD']]['link_moderators'][] = '<a href="' . $scripturl . '?action=profile;u=' . $row_board['ID_MODERATOR'] . '" title="' . $txt[62] . '">' . generateUsernameImage($row_board['modRealName']) . '</a>';





Code (Find) Select
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

Code (Replace with) Select
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . generateUsernameImage($row['realName']) . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . generateUsernameImage($row['realName']) . '</a>';





Code (Find) Select
'username' => $row['memberName'],
Code (Replace with) Select
'username' => generateUsernameImage($row['memberName']),




Code (Find) Select
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . $row['firstDisplayName'] . '</a>' : $row['firstDisplayName']
),

Code (Replace with) Select
'member' => array(
'username' => generateUsernameImage($row['firstMemberName']),
'name' => generateUsernameImage($row['firstDisplayName']),
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . generateUsernameImage($row['firstDisplayName']) . '</a>' : generateUsernameImage($row['firstDisplayName'])
),





Code (Find) Select
'member' => array(
'username' => $row['lastMemberName'],
'name' => $row['lastDisplayName'],
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => !empty($row['lastID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . $row['lastDisplayName'] . '</a>' : $row['lastDisplayName']
),

Code (Replace with) Select
'member' => array(
'username' => generateUsernameImage($row['lastMemberName']),
'name' => generateUsernameImage($row['lastDisplayName']),
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => !empty($row['lastID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . generateUsernameImage($row['lastDisplayName']) . '</a>' : generateUsernameImage($row['lastDisplayName'])
),









./Sources/Subs.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>',
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . generateUsernameImage($modSettings['latestRealName']) . '</a>',




Code (Add to end of file (Before ?>)) Select
// Turn a regular username into an image (Username Image Mod by Nas)
function generateUsernameImage($username)
{
global $boardurl, $db_prefix, $modSettings;

$request = db_query("
SELECT nameColor
FROM {$db_prefix}members
WHERE realName = '$username'
LIMIT 1", __FILE__, __LINE__);

$row = mysql_fetch_assoc($request);

    mysql_free_result($request);

return '<img src="' . $boardurl. '/generateUserImage.php?username=' . $username . ';color=' . $row['nameColor'] . '" alt="' . $username . '" border="0" />';

sleep(1);
}









./Sources/Display.php

Code (Find) Select
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

Code (Replace with) Select
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . generateUsernameImage($row['realName']) . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . generateUsernameImage($row['realName']) . '</a>';





Code (Find) Select
'name' => $row['realName'],
Code (Replace with) Select
'name' => generateUsernameImage($row['realName']),







./Sources/Load.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . generateUsernameImage($profile['realName']) . '</a>',




Code (Find) Select
'blurb' => &$profile['personalText'],
Code (Add below this line) Select
'nameColor' => &$profile['nameColor'],




Code (Find) Select
mem.signature, mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName,
Code (Replace with) Select
mem.signature, mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName, mem.nameColor,




Code (Find) Select
mem.realName, mem.emailAddress, mem.hideEmail, mem.dateRegistered, mem.websiteTitle, mem.websiteUrl,
Code (Replace with) Select
mem.realName, mem.emailAddress, mem.hideEmail, mem.dateRegistered, mem.websiteTitle, mem.websiteUrl, mem.nameColor,








./Sources/ModSettings.php

Code (Find) Select
// Basic stuff, user languages, titles, flash, permissions...
Code (Add below line) Select
// The Username Image modification by Nas.
array('select', 'ui_font', array(&$txt['ui_forgottb'], &$txt['ui_kimbalt'], &$txt['ui_screenge'], &$txt['ui_walshes'], &$txt['ui_venusris'])),
array('int', 'ui_fontsize'),
array('text', 'ui_defaultcolor'),
array('int', 'ui_width'),
array('int', 'ui_height'),
array('check', 'ui_useshadows'),
'',







./Sources/Profile.php

Code (Find) Select
'gender' => array('name' => empty($user_profile[$memID]['gender']) ? '' : ($user_profile[$memID]['gender'] == 2 ? 'f' : 'm')),
Code (Add below line) Select
'nameColor' => empty($user_profile[$memID]['nameColor']) ? '' : $user_profile[$memID]['nameColor'],




Code (Find) Select
'signature', 'personalText', 'avatar',
Code (Replace with) Select
'signature', 'personalText', 'avatar', 'nameColor',




Code (Find) Select
'blurb' => !isset($_POST['personalText']) ? '' : str_replace(array('<', '>', '&amp;#039;'), array('&lt;', '&gt;', '&#039;'), stripslashes($_POST['personalText'])),
Code (Add below line) Select
'nameColor' => !isset($_POST['nameColor']) ? '' : $_POST['nameColor'],







./Themes/{your_theme}/index.template.php

Code (Find) Select
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
Code (Replace with) Select
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', generateUsernameImage($context['user']['name']) , '</b></span>







./Themes/default/Profile.template.php

Code (Find) Select
', $txt['summary'], ' - ', $context['member']['name'], '
Code (Replace with) Select
', $txt['summary'], ' - ', generateUsernameImage($context['member']['name']), '




Code (Find) Select
<td>', $context['member']['name'], '</td>
Code (Replace with) Select
<td>', generateUsernameImage($context['member']['name']), '</td>




Code (Find) Select
// Personal text...
echo '
<tr>
<td width="40%"><b>', $txt[228], ': </b></td>
<td><input type="text" name="personalText" size="50" maxlength="50" value="', $context['member']['blurb'], '" /></td>
</tr>
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>';

Code (Replace with) Select
// Personal text...
echo '
<tr>
<td width="40%"><b>', $txt[228], ': </b></td>
<td><input type="text" name="personalText" size="50" maxlength="50" value="', $context['member']['blurb'], '" /></td>
</tr>';

// Let them choose their username color.
echo '
<tr>
<td width="40%"><b>', $txt['ui_namecolor'], ': </b><div class="smalltext">', $txt['ui_namecolor_desc'], '</div></td>
<td><input type="text" name="nameColor" size="6" maxlength="6" value="', $context['member']['nameColor'], '" /></td>
</tr>
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>';









./Themes/default/Who.template.php

Code (Find) Select
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';
Code (Replace with) Select
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '">' . generateUsernameImage($member['name']) . '</a>', '</span>';







./Themes/default/Admin.template.php

Code (Find) Select
<b>', $txt['hello_guest'], ' ', $context['user']['name'], '!</b>
Code (Replace with) Select
<b>', $txt['hello_guest'], ' ', generateUsernameImage($context['user']['name']), '</b>







./Themes/default/languages/Modifications.english.php

Code (Add to the end of the file (Before ?>)) Select
// Username Images modification by Nas
//Admin settings
$txt['ui_font'] = 'Font <div class="smalltext">The font used in the username images. The fonts listed are the default fonts in SMF.</div>';
$txt['ui_width'] = 'Image width <div class="smalltext">The width of the username images.</div>';
$txt['ui_height'] = 'Image height <div class="smalltext">The height of the username images.</div>';
$txt['ui_fontsize'] = 'Font size <div class="smalltext">The font size used in the username images.</div>';
$txt['ui_useshadows'] = 'Use shadows <div class="smalltext">Enable this to add a shadow to each username image.</div>';
$txt['ui_defaultcolor'] = 'Default color <div class="smalltext">This color will be used if an user has not set any color themself. (Hex color code, <b>without leading <i>#</i></b>)</div>';

// Fonts
$txt['ui_forgottb'] = 'Forgottb';
$txt['ui_kimbalt'] = 'Kimbalt';
$txt['ui_screenge'] = 'Screenge';
$txt['ui_walshes'] = 'Walshes';
$txt['ui_venusris'] = 'Venusris';

// Others
$txt['ui_namecolor'] = 'Username color';
$txt['ui_namecolor_desc'] = 'Your username image will have this color. Leave empty for default. (Hex color code, <b>without leading <i>#</i></b>)';
// Username Images modification by Nas









Move the included file generateUserImage.php to your SMF root directory.








Run the included file dbModification_1.1.x.php






Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 28, 2009, 02:39:07 PM
Here are the insturctions for SMF 2.0. Again, make backups, please!





Manual installation of Username Images

SMF 2.0



./Sources/Subs-BoardIndex.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . $row_board['mod_real_name'] . '</a>'
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_moderator'] . '" title="' . $txt['board_moderator'] . '">' . generateUsernameImage($row_board['mod_real_name']) . '</a>'




Code (Find) Select
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . $row_board['real_name'] . '</a>' : $row_board['real_name']) : $txt['not_applicable'],
Code (Replace with) Select
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . generateUsernameImage($row_board['real_name']) . '</a>' : generateUsernameImage($row_board['real_name'])) : $txt['not_applicable'],








./Sources/MessageIndex.php

Code (Find) Select
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

Code (Replace with) Select
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . generateUsernameImage($row['real_name']) . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . generateUsernameImage($row['real_name']) . '</a>';





Code (Find) Select
$context['view_members'][$row['log_time'] . $row['member_name']] = array(
'id' => $row['id_member'],
'username' => $row['member_name'],
'name' => $row['real_name'],

Code (Replace with) Select
$context['view_members'][$row['log_time'] . $row['member_name']] = array(
'id' => $row['id_member'],
'username' => generateUsernameImage($row['member_name']),
'name' => generateUsernameImage($row['real_name']),





Code (Find) Select
'member' => array(
'username' => $row['first_member_name'],
'name' => $row['first_display_name'],
'id' => $row['first_id_member'],
'href' => !empty($row['first_id_member']) ? $scripturl . '?action=profile;u=' . $row['first_id_member'] : '',
'link' => !empty($row['first_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['first_id_member'] . '" title="' . $txt['profile_of'] . ' ' . $row['first_display_name'] . '">' . $row['first_display_name'] . '</a>' : $row['first_display_name']
),

Code (Replace with) Select
'member' => array(
'username' => generateUsernameImage($row['first_member_name']),
'name' => generateUsernameImage($row['first_display_name']),
'id' => $row['first_id_member'],
'href' => !empty($row['first_id_member']) ? $scripturl . '?action=profile;u=' . $row['first_id_member'] : '',
'link' => !empty($row['first_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['first_id_member'] . '" title="' . $txt['profile_of'] . ' ' . $row['first_display_name'] . '">' . generateUsernameImage($row['first_display_name']) . '</a>' : generateUsernameImage($row['first_display_name'])
),





Code (Find) Select
'member' => array(
'username' => $row['last_member_name'],
'name' => $row['last_display_name'],
'id' => $row['last_id_member'],
'href' => !empty($row['last_id_member']) ? $scripturl . '?action=profile;u=' . $row['last_id_member'] : '',
'link' => !empty($row['last_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['last_id_member'] . '">' . $row['last_display_name'] . '</a>' : $row['last_display_name']
),

Code (Replace with) Select
'member' => array(
'username' => generateUsernameImage($row['last_member_name']),
'name' => generateUsernameImage($row['last_display_name']),
'id' => $row['last_id_member'],
'href' => !empty($row['last_id_member']) ? $scripturl . '?action=profile;u=' . $row['last_id_member'] : '',
'link' => !empty($row['last_id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['last_id_member'] . '">' . generateUsernameImage($row['last_display_name']) . '</a>' : generateUsernameImage($row['last_display_name'])
),










./Sources/Subs.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>',
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . generateUsernameImage($modSettings['latestRealName']) . '</a>',




Code (Add to the end of the file (Before ?)) Select
// Turn a regular username into an image (Username Image Mod by Nas)
function generateUsernameImage($username)
{
global $boardurl, $db_prefix, $smcFunc, $modSettings;

$request = $smcFunc['db_query']('', '
SELECT nameColor
FROM {db_prefix}members
WHERE real_name = {string:username}',
array(
'username' => $username,
)
);

$row = $smcFunc['db_fetch_assoc']($request);

    $smcFunc['db_free_result']($request);

return '<img src="' . $boardurl. '/generateUserImage.php?username=' . $username . ';color=' . $row['nameColor'] . '" alt="' . $username . '" border="0" />';

sleep(1);
}










./Sources/Display.php

Code (Find) Select
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

Code (Replace with) Select
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . generateUsernameImage($row['real_name']) . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . generateUsernameImage($row['real_name']) . '</a>';









./Sources/Load.php

Code (Find) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $profile['real_name'] . '">' . $profile['real_name'] . '</a>',
Code (Replace with) Select
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $profile['real_name'] . '">' . generateUsernameImage($profile['real_name']) . '</a>',




Code (Find) Select
'blurb' => $profile['personal_text'],
Code (Add below line) Select
'blurb' => $profile['nameColor'],




Code (Find) Select
mem.signature, mem.personal_text, mem.location, mem.gender, mem.avatar, mem.id_member, mem.member_name,
Code (Replace with) Select
mem.signature, mem.personal_text, mem.location, mem.gender, mem.avatar, mem.id_member, mem.member_name, mem.nameColor,




Code (Find) Select
mem.real_name, mem.email_address, mem.hide_email, mem.date_registered, mem.website_title, mem.website_url,
Code (Replace with) Select
mem.real_name, mem.email_address, mem.hide_email, mem.date_registered, mem.website_title, mem.website_url, mem.nameColor,








./Sources/ManageSettings.php

Code (Find) Select
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
Code (Add below this line) Select
// The Username Image modification by Nas.
array('select', 'ui_font', array(&$txt['ui_forgottb'], &$txt['ui_kimbalt'], &$txt['ui_screenge'], &$txt['ui_walshes'], &$txt['ui_venusris'])),
array('int', 'ui_fontsize'),
array('text', 'ui_defaultcolor'),
array('int', 'ui_width'),
array('int', 'ui_height'),
array('check', 'ui_useshadows'),
'',









./Sources/Profile-Modify.php

Code (Find) Select
'avatar_choice', 'personal_text', 'hr',
Code (Replace with) Select
'avatar_choice', 'personal_text', 'hr', 'nameColor',





Code (Find) Select
'personal_text' => array(
'type' => 'text',
'label' => $txt['personal_text'],
'log_change' => true,
'input_attr' => array('maxlength="50"'),
'size' => 50,
'permission' => 'profile_extra',
),

Code (Replace with) Select
'nameColor' => array(
'type' => 'text',
'label' => $txt['ui_namecolor'],
'subtext' => $txt['ui_namecolor_desc'],
'log_change' => false,
'input_attr' => array('maxlength="6"'),
'size' => 6,
'permission' => 'profile_extra',
),









./Sources/Subs-MembersOnline.php

Code (Find) Select
// Some basic color coding...
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

Code (Replace with) Select
// Some basic color coding...
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . generateUsernameImage($row['real_name']). '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . generateUsernameImage($row['real_name']) . '</a>';









./Themes/{your_theme}/index.template.php

Code (Find) Select
<li id="name">', $txt['hello_member_ndt'], ' <em>', $context['user']['name'], '</em></li>';
Code (Replace with) Select
<li id="name">', $txt['hello_member_ndt'], ' <em>', generateUsernameImage($context['user']['name']), '</em></li>';








./Themes/default/Profile.template.php

Code (Find) Select
<h4>', $context['member']['name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4>
Code (Replace with) Select
<h4>', generateUsernameImage($context['member']['name']), ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4>








./Themes/default/Who.template.php

Code (Find) Select
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';
Code (Replace with) Select
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . generateUsernameImage($member['name']) . '</a>', '</span>';








./Themes/default/Admin.template.php

Code (Find) Select
<b>', $txt['hello_guest'], ' ', $context['user']['name'], '!</b>
Code (Replace with) Select
<b>', $txt['hello_guest'], ' ', generateUsernameImage($context['user']['name']), '</b>








./Themes/default/ModerationCenter.template.php

Code (Find) Select
<b>', $txt['hello_guest'], ' ', $context['user']['name'], '!</b>
Code (Replace with) Select
<b>', $txt['hello_guest'], ' ', generateUsernameImage($context['user']['name']), '</b>








./Themes/default/languages/Modifications.english.php

Code (Add to the end of the file (Before ?>)) Select
// Username Images modification by Nas
//Admin settings
$txt['ui_font'] = 'Font <div class="smalltext">The font used in the username images. The fonts listed are the default fonts in SMF.</div>';
$txt['ui_width'] = 'Image width <div class="smalltext">The width of the username images.</div>';
$txt['ui_height'] = 'Image height <div class="smalltext">The height of the username images.</div>';
$txt['ui_fontsize'] = 'Font size <div class="smalltext">The font size used in the username images.</div>';
$txt['ui_useshadows'] = 'Use shadows <div class="smalltext">Enable this to add a shadow to each username image.</div>';
$txt['ui_defaultcolor'] = 'Default color <div class="smalltext">This color will be used if an user has not set any color themself. (Hex color code, <b>without leading <i>#</i></b>)</div>';

// Fonts
$txt['ui_forgottb'] = 'Forgottb';
$txt['ui_kimbalt'] = 'Kimbalt';
$txt['ui_screenge'] = 'Screenge';
$txt['ui_walshes'] = 'Walshes';
$txt['ui_venusris'] = 'Venusris';

// Others
$txt['ui_namecolor'] = 'Username color';
$txt['ui_namecolor_desc'] = 'Your username image will have this color. Leave empty for default. (Hex color code, <b>without leading <i>#</i></b>)';
// Username Images modification by Nas









Move the included file generateUserImage.php to your SMF root directory.








Run the included file dbModification_2.0.php







Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 29, 2009, 09:36:02 AM
Beta 2 is ready and attached. As usual, please backup before installing! If you find a bug or want to request a feature, please post a file here (http://www.forentadatorerna.se/) (No registration required).








Username Images 1.0 Beta 2
Replaces usernames around the forum with a automaticly generated text image.
Link to Mod (http://www.simplemachines.org/community/index.php?topic=325248.0) | Development topic (http://www.simplemachines.org/community/index.php?topic=325248.0) | Bugreports / Feature requests (http://www.forentadatorerna.se/)

Author: Nas (http://custom.simplemachines.org/mods/index.php?action=profile;u=143954)
Type: New feature (http://custom.simplemachines.org/mods/index.php?action=search;type=1)
Available since: July 26 2009
Latest version: 1.0 Beta 2
Compatible with: 1.1.x, 2.0 RC1.2
Available languages: (https://www.simplemachines.org/site_images/lang/english.gif) (https://www.simplemachines.org/site_images/lang/swedish.gif) (https://www.simplemachines.org/site_images/lang/portuguese_brazilian.gif)



UNDER DEVELOPMENT
Please not that this mod is not yet finished. Though it works perfectly fine on a frsh installation of SMF, not all features are added and there are a few bugs.

What does it do?
Username Images replaces all usernames around the forum with an automaticly generated image.
Admins can choose font and size. Members can set their image color them selfs.

How does it work?
Username Images uses the GD module to generate a transparent text image using the settings set by admin, and the color choosen by each member.
The image is used in certain key locations such as board index, message index, posts, profiles and more.

How to use
To use Username Images, download the package from the SMF customization site (http://www.simplemachines.org/community/index.php?topic=325248.0), and install it via your Package Manger (http://docs.simplemachines.org/index.php?topic=95).
Then head over to the settings page* and make sure everything is set as you want it to.
Usernames all around the forum will now be changed to images, and users can select their own personal color through their profile.

* = Settings are located in
Admin > Features & settings (1.1.x)
Admin > Modifications > General (2.0)


Support & comments
If you have a problem with this mod, want to comment, or have any question, please post to the modification development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0) and I will reply as soon as possible.

Other information
Original idea
o Requested by Didds (http://www.simplemachines.org/community/index.php?action=profile;u=178420) in [Request] MOD to change Username to image :) (http://www.simplemachines.org/community/index.php?topic=325248.0).
Translation of this mod
o I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the development topic (http://www.simplemachines.org/community/index.php?action=post;topic=325248.0).
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
Please note that repeat changes to the language fiels will occur while this modification is still in beta.
Credits
o Thanks ccbtimewiz and Robbo for helping me out when I killed my servers using the wrong code. :P

Changelog
1.0 Beta 2 | July 29 2009
! An unnoticed parse error in MessageIndex.php fixed. (SMF 1.1.x)
! Images were not displayed in user online at the board index. (SMF 2.0)
! A bad query killed the forum.
! A typo hid three of the fonts in the ACP.
+ Users can now choose their own color through their profiles.
> Portugueze_brazilian lanugage is added. Thanks to CesarMana.
1.0 Beta 1.1 | July 27 2009
! A bug in generateUserImage.php caused by the font setting should now be fixed.
> Swedish lanugage is added.
* Support for SMF 2.0 is added.
1.0 Beta 1 | July 26 2009
$ Development starts and Beta 1 is released.





Changelog legend
+ New feature
- Feature removal
! Bugfix
> New language
< Removed language
* New version support
$ Initial release / Big update

Versionnames
Format: $.o.x.!
Example: 3.2.4.1

$ New version
o New features added
x Bugfix
! Small bugfix / New version support


Passed versions of this mod
1.0 Beta 1.1
1.0 Beta 1

Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on July 29, 2009, 10:27:48 AM
Cooooool :)

Still haven't been able to get FTP access yet, so I still can't use it :( But I'm excited for it :D
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 29, 2009, 12:26:38 PM
Is there a  way to add a font style to the mod?
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 29, 2009, 12:32:13 PM
Quote from: t2noob on July 29, 2009, 12:26:38 PM
Is there a  way to add a font style to the mod?

Yes. Add the .ttf (TrueType font) to ./Themes/default/fonts/.
For example ./Themes/default/fonts/Myfont.ttf

Then open ./Sources/ManageSettings,php (SMF 2.0) or ./Sources/ModSettings.php (SMF 1.1.x).
Find:

array('select', 'ui_font', array(&$txt['ui_forgottb'], &$txt['ui_kimbalt'], &$txt['ui_screenge'], &$txt['ui_walshes'], &$txt['ui_venusris'])),

Add your font there, for example:

array('select', 'ui_font', array(&$txt['ui_forgottb'], &$txt['ui_kimbalt'], &$txt['ui_screenge'], &$txt['ui_walshes'], &$txt['ui_venusris'], &$txt['ui_myfont'])),

Notice $txt['ui_myfont']

Then go to ./Themes/default/languages/Modifications.english.php and add your font there. For example:

$txt['ui_myfont'] = 'Myfont';

Note that the value MUST be the same as the fontname (Without ".ttf").

Finally, go to generateUserImage.php. Find:

// The available fonts. (These are the default SMF fonts)
$fonts = array(
'0' => $txt['ui_forgottb'],
'1' => $txt['ui_kimbalt'],
'2' => $txt['ui_screenge'],
'3' => $txt['ui_walshes'],
'4' => $txt['ui_venusris'],
);


Add your font there. For example:

// The available fonts. (These are the default SMF fonts)
$fonts = array(
'0' => $txt['ui_forgottb'],
'1' => $txt['ui_kimbalt'],
'2' => $txt['ui_screenge'],
'3' => $txt['ui_walshes'],
'4' => $txt['ui_venusris'],
'5' => $txt['ui_myfont'],
);


Notice '5' => $txt['ui_myfont'],

You can now choose your new font through your ACP. :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on July 29, 2009, 12:49:24 PM
The manual installation instructsions has been updated.
SMF 1.1x (http://www.simplemachines.org/community/index.php?topic=325248.msg2181226#msg2181226)
SMF 2.0 (http://www.simplemachines.org/community/index.php?topic=325248.msg2181272#msg2181272)
Title: Re: [Request] MOD to change Username to image :)
Post by: t2noob on July 29, 2009, 11:15:05 PM
awesome thx
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on October 31, 2009, 07:27:42 PM
I really appreciate the work Nas put into this, but it wasn't exactly what I was looking for, so if anyone else thinks they could make a mod that converts your name from text to a simple image such as (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FRevampedBanner-1.png&hash=ad6035d90d241f4ecd655e4624446cccaab6c61a) or (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName.png&hash=07d67313b90d1f2f5cab4ed0640ae3d574ac3218) it would be greatly appreciated :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Arantor on October 31, 2009, 07:29:03 PM
Neither of those images is 'simple' to make programmatically.

If you would like it changed in style, please post in the mod's support topic though.
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on November 01, 2009, 04:26:59 AM
You can't really generate images as that, which I told you a few weeks ago.
You'd have to make one yourself for each member and assign it to them, which would be useless IMO.
Title: Re: [Request] MOD to change Username to image :)
Post by: ttuu on November 03, 2009, 06:09:20 AM
its not support in hebrew.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on November 13, 2009, 12:17:10 PM
Quote from: Nas on November 01, 2009, 04:26:59 AM
You can't really generate images as that, which I told you a few weeks ago.
You'd have to make one yourself for each member and assign it to them, which would be useless IMO.

Well that was kinda what I wanted in the first place... as they could then purchase these names if they desired from the forum shop... then i would make it for them :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on November 13, 2009, 12:22:19 PM
Then you should have said so in the first place, when I asked you what the mod was supposed to do.
If you want them to purchase them from the shop, then that's something you'd have to ask the author of your shop mod about.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on November 13, 2009, 12:40:49 PM
Ok, sorry I didn't make it clear in the first place :( Maybe I could just put a topic up where people could just send me a PM asking for the names...
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on November 18, 2009, 05:02:22 PM
Any more help? :)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on November 21, 2009, 07:36:59 PM
 :o :( No help?
Title: Re: [Request] MOD to change Username to image :)
Post by: Yahmez on November 22, 2009, 12:38:57 AM
Quote from: Didds on October 31, 2009, 07:27:42 PM
I really appreciate the work Nas put into this, but it wasn't exactly what I was looking for, so if anyone else thinks they could make a mod that converts your name from text to a simple image such as (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FRevampedBanner-1.png&hash=ad6035d90d241f4ecd655e4624446cccaab6c61a) or (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FAndrewName.png&hash=07d67313b90d1f2f5cab4ed0640ae3d574ac3218) it would be greatly appreciated :)
I can't help make a mod for that, but I believe you can accomplish it with ImageMagick.
http://tuxtweaks.com/2009/06/create-text-images-with-imagemagick/

convert -size 460×85 xc:transparent -font Bookman-Demi -pointsize 72 -draw "text 25,60 'TuxTweaks'" -channel RGBA -gaussian 0×6 -fill black -stroke blue -draw "text 20,55 'TuxTweaks'" fuzzy-tweaks.png

becomes this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftuxtweaks.com%2Fwp-content%2Fuploads%2F2009%2F06%2Ffuzzy-tweaks.png&hash=4cc857c5cbf834db5cf0ce3a5afe3147ea664bbb)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on November 29, 2009, 06:39:16 PM
It's a broken image :o
Title: Re: [Request] MOD to change Username to image :)
Post by: Yahmez on November 29, 2009, 11:20:57 PM
Try the link instead  ;)
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on December 03, 2009, 06:42:43 PM
Well, it doesn't make it like how I want it, but thanks for taking the time to look anyway :)

What I really want, is to be able to make the names myself, on Photoshop. So whoever requests one will get one. Then I would upload it to the site and then a mod would be used to replace their names (written) with the ones I created (picture such as (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi422.photobucket.com%2Falbums%2Fpp309%2Fdidds_bucket%2FRevampedBanner-1.png&hash=ad6035d90d241f4ecd655e4624446cccaab6c61a).
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on December 06, 2009, 01:44:04 PM
Any help?
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on December 14, 2009, 10:24:57 AM
Still none?
Title: Re: [Request] MOD to change Username to image :)
Post by: Arantor on December 14, 2009, 10:35:58 AM
It would seem not. It's not particularly easy to do, nor do efficiently, and in any case it seems like it's going to be pretty specific to your forum, not a mod that could be generally used.
Title: Re: [Request] MOD to change Username to image :)
Post by: Didds on December 14, 2009, 06:09:49 PM
Oh ok, thanks anyway
Title: Re: [Request] MOD to change Username to image :)
Post by: Joker™ on December 25, 2009, 09:17:09 AM
Merry X-MAS to everyone


http://www.simplemachines.org/community/index.php?topic=325248.msg2181272#msg2181272

Does this work work on SMF2.0 RC2 also ???

as modifications is nice looking so im bit excited for it .....

Title: Re: [Request] MOD to change Username to image :)
Post by: Marcus Forsberg on December 25, 2009, 04:08:47 PM
Hello sid2varum.

Best way to find out would be backuping your forum and applying the modification. Chances are it will indeed work, perhaps with a few edits requiring change. However, if big edits are required to make it work, I'm afraid I won't help. I've left this mod to its faith.
Title: Re: [Request] MOD to change Username to image :)
Post by: NfCClan on December 28, 2009, 06:24:17 AM
Sorry to beat a dead horse but, I was just thinking, not knowing much about the server side of ImageMagic and the other programing picture thingys, but wouldn't it put the image that it generated into a folder? like pictures/created/booo.png? or something like that? so couldn't you, if you wanted to allow your members to buy a custom picture for their name, couldn't you just replace the picture that the mod made with one of your own?

Quick Edit: I was actually reading through this cos I was hoping it would work for the member group titles... so that I could change the "Full Member" rank text title to a picture for people who have actual ranks like the Admins and all that...
Title: Re: [Request] MOD to change Username to image :)
Post by: Joker™ on December 28, 2009, 07:51:58 AM
Quote from: Nas on December 25, 2009, 04:08:47 PM
Hello sid2varum.

Best way to find out would be backuping your forum and applying the modification. Chances are it will indeed work, perhaps with a few edits requiring change. However, if big edits are required to make it work, I'm afraid I won't help. I've left this mod to its faith.

i've downloaded ur package >> Username_Images_Beta2.zip  and tried to install it on RC2

the error was

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


if possible can u tell how to put tags behind names ..... like in vb we can put images behind names directly... is it possible in smf also ?

thanx for ur time in advance bro