[Request] MOD to change Username to image :)

Started by Didds, July 19, 2009, 12:10:12 PM

Previous topic - Next topic

Marcus Forsberg

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. :)

Marcus Forsberg

The manual installation instructsions has been updated.
SMF 1.1x
SMF 2.0


Didds

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 or it would be greatly appreciated :)
[/center]

Arantor

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.
Holder of controversial views, all of which my own.


Marcus Forsberg

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.

ttuu


Didds

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 :)
[/center]

Marcus Forsberg

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.

Didds

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...
[/center]

Didds

[/center]

Didds

[/center]

Yahmez

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 or 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:

Didds

[/center]

Yahmez


Didds

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 .
[/center]

Didds

[/center]

Didds

[/center]

Arantor

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.
Holder of controversial views, all of which my own.


Didds

[/center]

Advertisement: