News:

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

Main Menu

Signature Image Rotator

Started by SoLoGHoST, June 11, 2009, 05:51:40 AM

Previous topic - Next topic

SoLoGHoST

Thanks :), will update later on tonight since I'm with my daughter now.

SoLoGHoST

@ Bugo, is it possible to have both UTF-8 and non UTF-8 within the same xml file?

I think I did something wrong when transferring them over to their respective files for this package.  Can you please take a look at the files I have attached.  Seems that the regular Russian Language (non utf-8 strings) are not translating correctly, as I get a ton of weird characters.

Files attached, thanks :)

Bugo

Quote from: SoLoGHoST on November 26, 2010, 03:04:48 AM
@ Bugo, is it possible to have both UTF-8 and non UTF-8 within the same xml file?
Bad idea, big problem with russian ANSI :(

Norv

You can't have both utf8 characters and non-utf8 characters in the same file. The file itself (thus all characters in it) is encoded with an encoding, so all characters in it are read by any application, be it editor or browser or PHP or whatever, according that particular encoding. If it's wrong, it will read more/less bytes for every character and map those bytes to a character according to the encoding of the file; if the encoding is not appropriate, what it managed to read will form another character. ("garbage").
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

SoLoGHoST

#104
Thanks for that bit of information Norv, doesn't seem to effect the english language though.  I'll need to have 6 files for this MOD besides SigRotator.russian.php and SigRotator.russian-utf8.php.

russian_all.xml
russian_2.0.xml
russian_rc4.xml
russian_all-utf8.xml
russian_2.0-utf8.xml
russian_rc4-utf8.xml


russian_all.xml and russian_all-utf8.xml should contain the Modifications file edit.  The 4 files remaining should perform 1 edit to the ManageSettings file.  russian_2.0.xml and russian_2.0-utf8.xml should not contain the $txt['signature_allow_smileys'] variable, and russian_rc4.xml and russian_rc4-utf8.xml should contain the $txt['signature_allow_smileys'] variable.

Can you please do this Bugo?

Thank You :)

Norv

If the files themselves are UTF8, then characters will be written as UTF8. But there isn't much to affect for English, since English language characters and a few other characters, punctuation etc, (ISO-8859-1) have the same codes with UTF-8 first characters IIRC.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Bugo

Quote from: SoLoGHoST on November 26, 2010, 02:03:05 PM
russian_all.xml and russian_all-utf8.xml should contain the Modifications file edit.  The 4 files remaining should perform 1 edit to the ManageSettings file.  russian_2.0.xml and russian_2.0-utf8.xml should not contain the $txt['signature_allow_smileys'] variable, and russian_rc4.xml and russian_rc4-utf8.xml should contain the $txt['signature_allow_smileys'] variable.
Why? There's no sense because I have made 2 russian files already => http://www.simplemachines.org/community/index.php?topic=316832.msg2860676#msg2860676
If russian_2.0-utf8.xml should not or should contain any variable — what's the diff? :) If the text variable is used only in RC4, it doesn't appears in RC3, isn't it? :)

SoLoGHoST

Yeah, that's true that it doesn't appear in RC3, but, to me, makes more sense not to add anything that doesn't need to be added IMO.

Well, I'll go ahead and fix it myself, hopefully I get it right... argg.

Cheers :)

SoLoGHoST

Ok, just updated it with your translation Bugo.

Thanks very much :)

It's funny that my wife, whom I'm still separated from is Russian, yet I still have a difficult time understanding the language.  She was from Astrakhan (Southern Russia).  In any case, thanks for your help again.

Cheers :)

Robin1989

any further thoughts of adding a avatar rotator into this yet?

SoLoGHoST

The thought was to create one that would integrate into the current avatar upload option, but I am considering making this paid for, with the exception of a certain someone.  Although, this will have to wait until my focus is taken away from Dream Portal a bit.  Since we are in need of members for Dream Portal, and I don't have the ton of time I had all day like I had before, so I'll have to focus on 1 thing at a time nowadays...  and I spent too much time with Dream Portal to give up on it.

Looking for Dream Portal Team Members...

Robin1989

ahh ok - well just a show of support i would be happy to pay for this as my members really like it. when you do get time to work on it what would be nice would be being able to tie a avatar and sig together so that they match

SoLoGHoST

Quote from: Robin1989 on January 30, 2011, 08:38:18 PM
...what would be nice would be being able to tie a avatar and sig together so that they match

Can you elaborate a bit on this?  Not sure what you are talking about here.  A few thoughts run through my mind, but trying to be sure what you are saying here.  Please elaborate more on this.

Thanks :)

Robin1989

Well quite often a person will create a sig and avatar combo of the same theme or style so instead of having both random sig and random avatar where it might show sig1.png and ava5.png which would not match it would let you link your avatar to a sig so that it would show sig1.png and ava1.png etc etc

But have it so that the user has to link them as not all avatars will have a corresponding sig

SoLoGHoST

#114
Wow, I see, great idea.  Would not be able to use a path like that since paths are in the database, and not directly calling files for security reasons.  This is possible to link your avatar directly to your sig ofcourse using the URL option for the avatar.  Atleast with linking your avatar to your signature directly.  But I believe what you are getting at would be a AVATAR and SIGNATURE combo so that when a specific avatar shows, that signature will also show, so as to be a bit more personal and explicit in your message for that particular instance of that topic page load.  I do like this idea very much, since it makes the topic and your posts more UNIQUE and PERSONAL!  But why not go a bit further with this and even allow for Multiple Profiles?  Or to alternate these profiles in the same way that the Signature Image Rotator alternates images?  Perhaps these profiles can be selected within a select box within your Main profile page?

So, basically, IMO, a better approach for this would be to just create a whole new MOD called, Multiple Profiles or something along those lines.  Allow them to be random or selected.  Allow them to keep the same username (possibly could be a different username... hmmm), if same username and user info, than this MOD alone could automatically take the place of my sig rotator and also, automatically, provide an avatar rotator as well.

Anyways, just a thought.  Perhaps a request for this Multiple Profiles Mod is required in the Modules request board.  Ofcourse, this mod would open up a ton of security issues that would need to be addressed before it would ever be approved by SMF, i assume.

Good Luck :)

Deezel

Hey SoLoGHoST,
Upgraded to RC5 then tried to emulate to RC4 to install this mod and got this error.
QuoteTable 'deezelsh_pixelmansion.members' doesn't exist
File: /home/deezelsh/public_html/pixelmansion.com/Packages/temp/sigrotatorInstall.php
Line: 157

SoLoGHoST

#116
Honestly, I'm not sure that I'd like to offer support for any of my mods anymore.  I'd rather you guys figure out your own problems.  It's not a priority of mine to fix your problems with a mod that really isn't upgraded for that SMF version.  And honestly, the fact that there is like a different SMF 2.0 RC version every month or 2 (atleast it seems that way to me), makes me really not care to update my mods until SMF 2.0 IS FINAL!

Cheers, and I don't think I will be upgrading any of my mods until SMF 2.0 is FINAL (GOLD).  And that is a BIG IF... if I do plan on rejoining the SMF World after everything that has been going on!

live627

Quote from: deezel on February 16, 2011, 07:42:38 AM
Hey SoLoGHoST,
Upgraded to RC5 then tried to emulate to RC4 to install this mod and got this error.
QuoteTable 'deezelsh_pixelmansion.members' doesn't exist
File: /home/deezelsh/public_html/pixelmansion.com/Packages/temp/sigrotatorInstall.php
Line: 157
Quote from: deezel on February 16, 2011, 07:42:38 AM
Hey SoLoGHoST,
Upgraded to RC5 then tried to emulate to RC4 to install this mod and got this error.
QuoteTable 'deezelsh_pixelmansion.members' doesn't exist
File: /home/deezelsh/public_html/pixelmansion.com/Packages/temp/sigrotatorInstall.php
Line: 157
Edit sigrotatorInstall.php and replace RC4 with RC5

SoLoGHoST

There ya go.  Hey, I have an idea, why don't you take all of my mods and than you can support them.  Just make a Fork of them live627.  You don't need my permission.

Cheers :)

live627

Assuming their license allows forks. Mods published here implicitly inherit the SM license unless the author states otherwise.

Advertisement: