Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SoLoGHoST on June 11, 2009, 05:51:40 AM

Title: Signature Image Rotator
Post by: SoLoGHoST on June 11, 2009, 05:51:40 AM
LINK TO MOD (http://custom.simplemachines.org/mods/index.php?mod=1851)

Languages Supported: (http://dream-portal.net/images/languages/english.gif) (http://dream-portal.net/images/languages/russian.gif) (http://dream-portal.net/images/languages/polish.gif)
SIGNATURE IMAGE ROTATOR 2.1
Gives your members the ability to add multiple images, within their profile, generating a URL for them to use for their signature, or even their avatar.

Detailed Description:
Gives your users the ability to have a rotating signature image, uploading their own images. You know, like the one's you see when users post in a topic and you reload the page and it's a completely different signature image.  How do they do that you may have asked yourself.  Well, it's a piece of cake that you can now offer to the members of your choice at your simplemachinesforums.  Users upload (via their profile) as many images as the Admin allows (in settings) and then adds the generated url path, to the Signature area.  This will generate a random signature image, on every post by that user, based from the one's they uploaded in their profile.  They can add as many images as you specify (0 = unlimited image uploads) and/or delete images that they created based on the permissions you allow for that group.  They can also add the generated URL as their AVATAR URL as well, and anything else that requires an image url.  Deleting a user account on SMF also deletes all of their Signature Images and the URL automatically.  ALL images Uploaded gets converted to either .PNG, .JPG, or, in the case of animated GIFs that do not exceed the Max Width and Max Height, No conversion is necessary and will remain in .GIF format so as to not take up too much space on your server.

After installing this package, there are 2 places that need to be enabled before it will work...
1. You will be redirected to the first page after installation, located at:  Admin -> Features & Options -> Signatures
2. Then you will need to go to Admin -> Members -> Permissions and make sure Allow Access, and Add are selected for all User Groups that you wish to allow access to this feature.  If you want to allow deletion of own images, you can place a checkmark in here also.  If, at any time you don't want these user groups adding and/or deleting images from their own signature image urls, then you can disable this feature for this group by unchecking it.

IMPORTANT:  Disabling the Signature Image Rotator does not disable the Image URL that has already been  generated.  So if you want to disable the URL's that have already been generated you'll need to go inside that users Profile -> Forum Profile and click on the Delete All Images Button, then "Yes", which will delete all of the images and the directory URL of where the images are stored (this will completely disable the image URL and will not work ever again).

Uninstalling this MOD will completely remove Signature Image Rotator, thus rendering all image urls ineffective and the sigs folder will be completely removed as well as all images within it.
Title: Re: Signature Image Rotator
Post by: Sevgiformu.com on June 11, 2009, 07:16:40 AM
Your Mod very nice thank you

yours mod 1.1.x ? pls
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 11, 2009, 07:20:15 AM
I know, I know.  Not 100% familiar with 1.1.x versions of SMF, but will give it a try.

Thank You!
Title: Re: Signature Image Rotator
Post by: Sevgiformu.com on June 11, 2009, 08:27:22 AM
Thank you my teacher I would try this:)

If you do broadcast

are amazing
Title: Re: Signature Image Rotator
Post by: Nibogo on June 11, 2009, 04:36:21 PM
Nice mod, thanks
Title: Re: Signature Image Rotator
Post by: Robin1989 on June 11, 2009, 07:05:43 PM
thans so much sologhost - i made a request for this type of mod ages ago and it has finally come true - thankyou so much
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 11, 2009, 08:55:17 PM
Thanks for your feedback, glad you guys like it!  Was pulling out my hair a few times on this one ;)  But overall was a ton of fun creating it, just seems that this type of MOD should've been created a long time ago as sooo many people are always bugging me on how to create a Signature Image that gets randomly displayed.  Better late than never as I always say.
Title: Re: Signature Image Rotator
Post by: LHW on June 11, 2009, 11:04:22 PM
I wrote a javascript to do this years ago, and still use it on my site...I'll definitely be looking at this as a User-Controlled replacement.  Thanks!
Title: Re: Signature Image Rotator
Post by: drhamza on June 12, 2009, 01:51:18 PM
magnificent mod, thanks a lot :D
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 12, 2009, 05:25:27 PM
I'm sorry, I can't understand what you are trying to say.  I know that you want a 1.1.8 version of this MOD, but as far the teacher goes, I'm not sure what you are trying to say by this.

Like I said, will consider the 1.1.x version, but this will take time, so please have some patience.

Thank You.
Title: Re: Signature Image Rotator
Post by: Sevgiformu.com on June 12, 2009, 05:48:10 PM
   
Thanks I'll wait patiently for a total interest
Title: Re: Signature Image Rotator
Post by: mary16 on June 15, 2009, 11:33:53 AM
Will this work in 1.1.9?

This would be so cool for my group
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 15, 2009, 01:42:52 PM
Sorry, only compatible with SMF 2.0.x versions atm.  Am working on the 1.1.x versions, but not ready for 1.1.x as of yet.
Title: Re: Signature Image Rotator
Post by: pinoypetfinder on June 21, 2009, 07:49:50 PM
Quote from: Php Coder Turkish on June 12, 2009, 05:48:10 PM
   
Thanks I'll wait patiently for a total interest

me too  ;D
Title: Re: Signature Image Rotator
Post by: Sudhakar Arjunan on June 23, 2009, 02:57:29 PM
Great work , will try now.

Will it reflect on all users box.

So as i have learnt, i could fix only for some membergroup and delete if not required for each user.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 23, 2009, 04:16:38 PM
Hello A.SK, Hopefully this answers your question:

You have, by default, in Permissions, these Usergroups:  Guest, Regular Members, Administrator (has all permissions), Global Moderator, Moderator.

While clicking the modify link to the right of each of these usergroups listed in there, excluding the Guest usergroup (Guests are not permitted to have any access for this option since this is related to a users profile and guests do not have a profile, so you will not see any options in here for guests).

You will see these options to choose from underneath the Signature Image Rotator header:

Allow Access
Can Add own images
Can Delete own images
Bypass image count limits
Administrate Signature Images

Allow Access is the same as enabled, or viewable to this usergroup.  Unchecking this option overrides all other options in there.  Please note, if you uncheck this option, this will not disable any image urls that have already been generated from showing the actual images.  So, if you want to disable images that have already been created for this usergroup, there is no way to do this, other than to go inside of this users profile yourself and Click on the "Delete All Images" button and then "YES" button to confirm this.  This will completely disable the image url from working for that user.

There is no way to make it so that specific users of the same usergroup do not have access to the Signature Image Rotator, however, you can create a new usergroup and allow/disallow only members from this usergroup access to the Signature Image Rotator, and you can set your "Regular Members" to not have access to the Signature Image Rotator by unchecking Allow Access for the permissions of the Regular Members in your Admin -> Permissions area.  Then you just move users you want to have access to the Signature Image Rotator to the usergroup that has "Allow Access", and "Can Add own images" checked.

Hopefully this answers your question on this.

More info on the other permissions, just in case:

Can Add own images ->  This must be checked, otherwise the Signature Image Rotator will not be viewable in the profile of users that have not uploaded any images yet.  That means only users who have uploaded images already within the Signature Image Rotator will be able to see the Signature Image Rotator in their profile, but will not be able to add anymore images to it whether or not they exhausted all images possible according to the image count limit that you set, or even if the permission was set to bypass the image count limit for that usergroup.

Can Delete own images -> This means that usergroups with this permission set will only be able to Delete their own images.  If this option is unchecked and users of that usergroup go within their profile -> Forum Profile area, they will not see an option to Delete any images that they uploaded, whether they uploaded images or haven't uploaded any images.  These user will not see any Delete options for their own images.

Bypass image count limits -> This means that users belonging to this usergroup will not be effected by the image count limit that you have set within Admin -> Configuration -> Features and Options -> Signatures and under Image Signature Settings, Maximum image count.  And such users for this usergroup will be able to upload an unlimited amount of images to their Signature Image Rotator in their profile.  Usually a good idea to allow this option for your Global Moderators, as these users are dedicated members to your forum and should have this ability over others.  Can also setup a specific usergroup for this purpose also if needed.

Administrate Signature Images -> Very important to note in here that users of this usergroup which has the ability to Administrate Signature Images will only be allowed permission to Delete other users Images within their profile.  If such a usergroup does not have permission to view, and/or make changes to other members profiles, they will not be able to do this.  Again, a good idea to give permission to your Global Moderators for this.  Just in case a user uploads a picture that is deemed inappropriate, spam, not permitted, so that the Global Moderator can delete this pic from within that users images within that users profile and perhaps issue a warning, or even Delete all of the pics.  However, this will not disallow that same user from being able to make more images with a different image url.  This is where the Admin comes in and moves that user to a different usergroup that doesn't Allow Access to the Signature Image Rotator (if need be).  Users of a usergroup that has Administrate Signature Images enabled, will NOT be able to Add Images to any other members profile of signature images.  ONLY the Administrator(s) have this ability to add images to other members Signature Image Rotator list of images within their profile.

Well, that's all folks!!  Anymore questions on this, please give a shout.

Solomon

Title: Re: Signature Image Rotator
Post by: Sakae on June 23, 2009, 07:49:59 PM
Very good MOD!

But I'm experiencing problems showing the image. See: http://www.tigrelog.com.br/index.php?sigrotator=mysig;sig=22961245800413;name=2296 (or access my forum http://www.tigrelog.com.br using l: simple p: machines and check)

What am I doing wrong?

A imagem "http://www.tigrelog.com.br/index.php?sigrotator=mysig;sig=22961245800413;name=2296" contém erros e não pode ser exibida.

Translating: "The image ... contain erros and can't be displayed".
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 23, 2009, 09:08:15 PM
I can not access the Signature Image Rotator with that username:  simple and password:  machines.  So in order for me to check this, you will need to Allow Access and "Can Add own images" to the Signature Image Rotator for this usergroup, and also make sure it is enabled in the Admin -> Features and Options -> Signature area.  Please setup the permissions so that I can test this properly with that username and password. 

As a 1st step in attempting to fix your problem, you can try changing the default filename from User Id to something else.

But like I said, best that I test this for you, so please adjust the permissions and reply back here when you are done doing so.

EDIT:  Just tested the image link again, and it is working fine now, so don't understand what the problem was a second ago, perhaps you know, as the problem seems to be gone now.  Just tested in Internet Explorer and doesn't show the image, but Firefox displays it fine.  Can you try changing from User Id for image filenames to something else.  And also, again, fix the permissions so that I can test this with the username:  simple and password: machines as you suggested.

Thanks :)
Title: Re: Signature Image Rotator
Post by: Sakae on June 23, 2009, 11:03:32 PM
The strangest thing!!!!!!!

It works with ENGLISH language but not with PORTUGUESE_BRAZILIAN-UTF8.

I addded the strings on Modifications.portuguese_brazilian-utf8 and created SigRotator.portuguese_brazilian-utf8.php (based on english), but it doesn't work with my native language.....

See for yourself:

Use simple/machines: http://www.tigrelog.com.br/papo-de-bar/test-topic/ (IN ENGLISH, WORKING)
Use solo/ghost: http://www.tigrelog.com.br/papo-de-bar/test-topic/ (IN PORTUGUESE BRAZILIAN, NOT WORKING).

To change solo/ghost to ENGLISH (and see it working), go in it's profile: http://www.tigrelog.com.br/index.php?action=perfil;area=account;u=2997 and change the "Portuguese Brazilian" option (Idioma preferido).
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 23, 2009, 11:40:28 PM
Ok, I'm not sure what's going on here, as I don't fully understand the differences between English and other languages and how they work in SMF.  However, you are free to have a go with it and please let me know if you manage to get it working with other languages as well.  Again, I would start off by changing the Default Image filename option in Admin -> Configuration -> Features and Options -> Signature to something else instead of User Id.  Try using username instead, or untitled.  Than delete all images in your account and start over by adding images again.  You should be presented with a new Image URL that will show the new name instead of just numbers for your name.  Please let me know if this fixes your problem, ok?  If not then it has something to do with something else.

Like I said, I work in English Only, so I create MODs for the English language only, however, I try to make my MODS compatible as much as possible with other languages.  Although, I am not able to test this, so I am going off of just theory and experience.  However, not exactly familiar with how SMF works with other languages.

Let me know how you make out, k?  And sorry for your issue with this.  If there are other users using a different language on SMF and are having issues as well, please let me know of this in here.  Also, if you are not having issues with another language, please let me know in any case as this could help the development of a future version that deals with these issues.

Thank You,
Solomon
Title: Re: Signature Image Rotator
Post by: Robin1989 on July 14, 2009, 09:08:36 AM
hey i think there may be a problem with uploading gif's as when any of our members upload an animated gif sig to it it seems to break the animation. is this a known issue and is there a fix for it
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on July 14, 2009, 09:28:22 AM
Thanks, yeah, this is a known issue.  Since we are sizing images down to the dimensions you specify(Recreating the images), this would be very difficult to extract each frame from an animated gif, resizing each frame accordingly, than rebuilding the animated gif file from the resized images (making sure we get all frame images in the animated gif, how many loops, time delay between each frame, rgb values, and plot it all back into the new resized image all while keeping the transparency the same.  Since shrinking images down will have an effect on the transparent color that is set and could look very ugly).  And then we face the main problem: The gd2 library does not support animated gifs.  To get around this, we could either use ImageMagick, or (what I prefer, since it captures all users) a class could be used to extract each framed image, and info based on the hex values and bytes in the animated gif, starting the extraction from the header of each frame.  Ofcourse, this is extremely involved as you can see!  Otherwise, could just resize the image according to <img> width and height attributes, though may not look good, in some browsers, if the animated gif is extremely large.

However, the use of animated gif displaying is supported.  You can do this yourself, manually, by just grabbing the animated gifs and inputting them into the correct folder within the sigs folder (located in your SMF Root Folder).  In order to know which folder belongs to which user, TIP:  The user's id is the first number(s) before the first _ in the name of the folder.  So if you are the Administrator (Site Creator/Owner), this folder name would begin with 1_ or 01_.  You can place any named file in this folder (yep, shouldn't matter on the name of the file, should still display, just make sure you get the right folder).  So just grab your animated gif or someone else's and just get the users id value (will be the u=#, where # = users id value, when hovering your mouse over a username on your forum), look for the folder in the sigs folder that matches ##_ and upload the animated gif to this folder, and there ya go.  Should work fine.  Plan on fixing this in the future, but for now, this is how you can do it.

EDIT:  Please download version 1.5 if you want Animated GIF Support.  However if the animated gif exceeds the max width and/or max height dimensions that you have set within the Admin Settings for the Signature Image Rotator, it will resize the animated gif down, only keeping the 1st frame and discarding all others.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on July 23, 2009, 04:16:38 AM
Now Available Signature Image Rotator v1.5 which supports the use of animated gifs.  If the animated gif being uploaded is bigger than the allowed (Admin Set) dimensions than it will only retain the first frame of the animated gif file.

Thanks and ENJOY! :)
Title: Re: Signature Image Rotator
Post by: cieplutki on August 14, 2009, 04:09:08 PM
hi all
polish translation it's on attachment
great job wit this mod
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on August 14, 2009, 04:53:55 PM
Thanks cieplutki, will add it to the package soon :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on September 07, 2009, 05:29:55 PM
For Those of you who are interested in an SMF 1.1.x compatible version of this MOD (as I know some of you have replied to this MOD support thread asking for this):

I have decided not to do this, unless there are atleast 10 people willing to pay for this.  Price set at 20 US Dollars.  If still interested, you may reply to this message, letting me know if you are willing to pay for this MOD if made compatible with SMF 1.1.x versions.  Please note, you are not doing me any favors by either saying yes or no in your reply to this.  As I have no desire to wanna code this MOD for SMF 1.1.x versions anyways.  Well, just wanted to throw this out there so you know where I stand with this!
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on September 15, 2009, 12:11:57 AM
Quote from: cieplutki on August 14, 2009, 04:09:08 PM
hi all
polish translation it's on attachment
great job wit this mod
Hello, just getting around to adding this and is added within the new download, however, if you would be willing to translate the following into polish as well that would be great...

Modifications.english.php

// Begin Signature Image Rotator strings
$txt['sig_rotator_title'] = 'Signature Image Rotator';
$txt['sig_rotator_curr_images'] = 'Current Images: ';
$txt['sig_rotator_url'] = '<b>Code to use for your Signatures</b><div class="smalltext">You\'ll need to insert this into the Signature box manually. You may also use this url on any other site.</div>';
$txt['sig_rotator_add_image'] = 'Add Image: ';
$txt['sig_rotator_upload'] = 'Upload';
$txt['sig_rotator_delete'] = 'Delete';
$txt['sig_rotator_deleteall'] = 'Delete All Images';
$txt['sig_rotator_max_images'] = 'Max images: ';
$txt['sig_rotator_images_remaining'] = '; images remaining: ';
$txt['sig_rotator_if_exceeds'] = 'If image dimensions exceed ';
$txt['sig_rotator_max_width'] = 'a Width of ';
$txt['sig_rotator_max_height'] = 'a Height of ';
$txt['sig_rotator_supported_images'] = 'Supported Formats: (png, gif, jpg, jpeg, bmp, wbmp)';
$txt['sig_rotator_max_resize'] = ', it will be resized.<br/>';

$txt['sigrotator_sigs'] = '<b>Image Signature Settings</b>';
// Used for the Header for the Default Signature Settings...
$txt['sig_norm_settings'] = '<b>Normal Signature Settings</b>';
$txt['signature_rotate_images_enable'] = '<span style="padding-left: 8px;">Enable Signature Image Rotator</span>';
$txt['signature_rotate_max_images'] = '<span style="padding-left: 8px;">Maximum image count</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_rotate_max_image_width'] = '<span style="padding-left: 8px;">Maximum width of images (pixels)</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_rotate_max_image_height'] = '<span style="padding-left: 8px;">Maximum height of images (pixels)</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_rotate_prefix'] = '<span style="padding-left: 8px;">Default Image filename</span><br/><span class="smalltext" style="padding-left: 8px;">Gets changed to letters, numbers, &amp; underscores only</span>';
$txt['signature_rotate_prefix_forumname'] = 'Forum Name';
$txt['signature_rotate_prefix_username'] = 'Username';
$txt['signature_rotate_prefix_userid'] = 'User Id';
$txt['signature_rotate_prefix_untitled'] = 'Untitled';
$txt['permissiongroup_sigrotator'] = 'Signature Image Rotator';
$txt['permissiongroup_simple_sigrotator'] = 'Signature Image Rotator';
$txt['permissionname_sigrotator_images_enabled'] = 'Allow Access';
$txt['permissionhelp_sigrotator_images_enabled'] = 'Makes the Signature Image Rotator in the users Profile->Forum Profile viewable.<br/><br/><b>Important</b>:  This does not disable any already created Signature Images and/or URL\'s.  To do this, just go to the users profile and delete their Signature Images manually.';
$txt['permissionname_sigrotator_images_add'] = 'Can Add own Images';
$txt['permissionhelp_sigrotator_images_add'] = 'Allows the user to Add their own images to the Signature Image Rotator via their profile.';
$txt['permissionname_sigrotator_images_delete'] = 'Can Delete own Images';
$txt['permissionhelp_sigrotator_images_delete'] = 'Allows the user to Delete their own images in the Signature Image Rotator via their profile.';
$txt['permissionname_sigrotator_images_nolimit'] = 'Bypass image count limits';
$txt['permissionhelp_sigrotator_images_nolimit'] = 'Allows users to upload an unlimited amount of signature images regardless of what the maximum image count is set at.';
$txt['permissionname_sigrotator_images_admin'] = 'Administrate Signature Images';
$txt['permissionhelp_sigrotator_images_admin'] = 'Allows the user to only Delete other member Signature images from within their profiles.';
// End Signature Image Rotator strings


ManageSettings.english.php
$txt['signature_settings_warning'] = 'Note that settings are not applied to existing Normal Signature Settings by default. Click <a href="' . $scripturl . '?action=admin;area=featuresettings;sa=sig;apply;sesc=%1$s">here</a> to apply rules to all existing Normal Signature Settings.';
$txt['signature_enable'] = '<span style="padding-left: 8px;">Enable signatures</span>';
$txt['signature_max_length'] = '<span style="padding-left: 8px;">Maximum allowed characters</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_max_lines'] = '<span style="padding-left: 8px;">Maximum amount of lines</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_max_images'] = '<span style="padding-left: 8px;">Maximum [img] tags count</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max - excludes smileys)</span>';
$txt['signature_max_smileys'] = '<span style="padding-left: 8px;">Maximum smiley count</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_max_image_width'] = '<span style="padding-left: 8px;">Maximum width of [img] tags (pixels)</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_max_image_height'] = '<span style="padding-left: 8px;">Maximum height of [img] tags (pixels)</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max)</span>';
$txt['signature_max_font_size'] = '<span style="padding-left: 8px;">Maximum font size allowed in signatures</span><br/><span class="smalltext" style="padding-left: 8px;">(0 for no max, in pixels)</span>';
$txt['signature_bbc'] = '<span style="padding-left: 8px;">Enabled BBC tags</span>';


Thanks and hopefully you see this topic.

Cheers :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 12, 2009, 12:39:47 PM
Mod just updated to support SMF 2.0 RC2.
Title: Re: Signature Image Rotator
Post by: watchhorse on November 27, 2009, 02:47:44 PM
Is the modification in the "$themedir/Profile.template.php" correct?
It screw-up the layout of de profile on my forum ???
Title: Re: Signature Image Rotator
Post by: Robin1989 on December 08, 2009, 08:54:27 PM
any news on a version of this for the avatar as well as that would be sick especially if you could link combinations together so that it would show avi1 and sig1 at the same time in a post or if you wanted avi1 and sig2 to load at the same time it would do that
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 09, 2009, 03:25:46 AM
Quote from: Robin1989 on December 08, 2009, 08:54:27 PM
any news on a version of this for the avatar as well as that would be sick especially if you could link combinations together so that it would show avi1 and sig1 at the same time in a post or if you wanted avi1 and sig2 to load at the same time it would do that
Sorry, I have been busy coding for Dream Portal as it's too much fun and a definite challenge (which I love), though thanks for following up on this.  I'll be honest, I haven't actually did any work on the Avatar Image Rotator yet, however, this is so simple, it will probably only take me a day to do.  But, I'm having too much fun with Dream Portal currently.  So will have to wait.

Quote from: watchhorse on November 27, 2009, 02:47:44 PM
Is the modification in the "$themedir/Profile.template.php" correct?
It screw-up the layout of de profile on my forum ???
Do you have a link or an image that I can see??  Also, what version of SMF do you have installed??  Also, strange that I haven't seen this post earlier as it should've come up when I clicked on the Replies link (everyday here at SMF), but didn't :(  So I am so sorry for taking this long to get with you on this.
Title: Re: Signature Image Rotator
Post by: Reiuji on December 14, 2009, 01:52:32 PM
Quote from: SoLoGHoST on December 09, 2009, 03:25:46 AM
Do you have a link or an image that I can see??  Also, what version of SMF do you have installed??  Also, strange that I haven't seen this post earlier as it should've come up when I clicked on the Replies link (everyday here at SMF), but didn't :(  So I am so sorry for taking this long to get with you on this.
Hey... installed the mod too and it messes up my profile layout also. Used to work wonders on SMF 2.0 RC 1-2 though. I've upgraded to SMF 2.0 RC 2 and I got the newer version of the mod.

Ver: SMF 2.0 RC 2
Theme: Bright Forest Theme v2.1
Browser: Firefox 3.5.5
Mods:
Screenshots of what happens:

http://img264.imageshack.us/img264/8039/sigrotatorlayout.png
http://img130.imageshack.us/img130/5284/sigrotatorlayout2.png

2nd screenshot is me just using the zoom on Firefox so i can show the entire layout...
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 14, 2009, 03:40:30 PM
Ok, am seeing the problem, funny as this didn't happen before.  Will fix and re-up.  Cheers :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 14, 2009, 04:18:27 PM
Ok, issue fixed in Signature Image Rotator Version 1.7, just now updated.

Cheers :)
Title: Re: Signature Image Rotator
Post by: live627 on December 14, 2009, 06:06:55 PM
I have some advice for you. The <code> tag is deprecated in the 2.0 branch. The <database> tag is new for the new branch and works better, too. You don't need to change sigrotatorinstall.php at all.

In package-info.xml, find
<code>sigrotatorInstall.php</code>

And replace with
<database>sigrotatorInstall.php</database>

SMF tracks these database changes somehow so it can give the user an option to remove the database changes on uninstall.

Hope this helps.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 14, 2009, 06:42:25 PM
hmm, thanks live, didn't know about this.  Will update all my mods with it once I double check this.

Cheers :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 22, 2009, 07:14:57 AM
Quote from: yadorigi on December 14, 2009, 06:06:55 PM
I have some advice for you. The <code> tag is deprecated in the 2.0 branch. The <database> tag is new for the new branch and works better, too. You don't need to change sigrotatorinstall.php at all.

In package-info.xml, find
<code>sigrotatorInstall.php</code>

And replace with
<database>sigrotatorInstall.php</database>

SMF tracks these database changes somehow so it can give the user an option to remove the database changes on uninstall.

Hope this helps.
Ok, thanks live, though I don't like this tag at all.  Since if I forget to place a checkmark to uninstall database changes when uninstalling the mod, it will keep the tables there.  I can see a need for this type of tag for other mods, but just doesn't work for me.  If they don't uninstall the database changes, or forget to place a checkmark in this field when uninstalling, this will cause problems when and if they try to every install the mod again.  But could be that I'm using the wrong flag when installing the database tables/columns/etc.  Currently using 'ignore', maybe I should be using something else instead.

Well, Thanks anyways :)
Title: Re: Signature Image Rotator
Post by: Robin1989 on December 24, 2009, 02:39:55 PM
i was just thinking about this mod and had a thought of a new feature which is instead of having one overall limit for everyone be able to set the limit for each members group that way people can get more spaces as they contribute more to the forum
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 24, 2009, 04:04:33 PM
Well, there's the Bypass Image Count Limit within the Permissions for each member group.  So this could be used also for this.  Though being a member of this group will allow them to upload an unlimited amount of images.  Would be nice if one could input a number into a textbox for each permission, but they restrict this to just checkboxes only.  I see what you are saying though, will need to change a few things with SMF's show_settings template function in order to get the member groups to show for each limit as theirs currently no support for showing member groups within this template function :(
Title: Re: Signature Image Rotator
Post by: Robin1989 on December 25, 2009, 04:49:48 AM
yeh ive always wondered why smf did that as ive seen a few mods that would probably of benefited from been able to add text fields to the permissions settings
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 25, 2009, 04:57:44 AM
Just Numbers really is all it needs.  That would be awesome, if it had the ability to allow the Admin to enter a number (type int) to a textbox area.  Anyways, will have to go about it through the show_settings template function instead.  If you still want this feature I can do it, but I'm putting off everything until after the holidays.

Cheers and Happy Holidays :)
Title: Re: Signature Image Rotator
Post by: Robin1989 on December 25, 2009, 05:30:39 AM
thanks dude and happy holidays to you to
Title: Re: Signature Image Rotator
Post by: blokey on January 04, 2010, 03:01:51 PM
Dear Solo
2 things
Firstly I get this, no errors anywhere just this.

Error Occurred while processing your Signature image, please try again!

Secondly
In admin I see this with four options
Default Image filename

Forum name, user name, user id, untitled..
Me no understand!  At all!
Thanks
:'(
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 04, 2010, 06:20:34 PM
4 options = This is what the image name will be if a user tries to save the image.  This is the default filename for the image.  If you right click on the image and click save, this is the name that will be default for it to save as.

As for the other problem, can you be a bit more specific?  An error can occur for any number of reasons.  For example the file you are trying to upload is too big, the file format is not supported, the file timed out when uploading (usually because it is too big in filesize), and possibly other reasons.  Like I said, please be a bit more specific.  For example, What is the file format you are trying to upload?  What are your settings for upload_max_filesize, and post_max_size set at in your php.ini file?  Or do you even have access to your php.ini file?  How big is the filesize of the file you are uploading?
Title: Re: Signature Image Rotator
Post by: blokey on January 04, 2010, 06:26:48 PM
Hmmm no info screwed my forum up again,, can I get back to you on this?
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 04, 2010, 06:33:11 PM
yep, that's fine.
Title: Re: Signature Image Rotator
Post by: live627 on January 15, 2010, 06:23:26 PM
Here is the error I get when installing this mod.


Warning: file_get_contents(C:\wamp\www\smf\Packages\temp/Sources/Subs.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\wamp\www\smf\Packages\temp\sigrotatorInstall.php on line 30

Specs:
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 15, 2010, 06:56:17 PM
Ok, just updated and fixed this problem.

Cheers :)
Title: Re: Signature Image Rotator
Post by: tanshin on January 16, 2010, 12:25:50 PM
Hi there, I just started to have issues with this mod after it's been working fine. While images upload fine, the URLs that the mod makes aren't displaying the images.

It seems that the URLs are redirecting to the homepage of my forum...
http://smf.nintendoaddict.com/index.php?sigrotator=mysig;sig=11263662559;name=tanshin
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 16, 2010, 06:43:23 PM
Can you show me a better example?  I can't register on that site to test this out either, registration is disabled.  Are you sure you have Signature Image Rotator Installed?  Did you install any mods recently that may have caused a conflict with this mod?

Furthermore, is anyone else experiencing this problem?

Thanks :)
Title: Re: Signature Image Rotator
Post by: tanshin on January 16, 2010, 07:18:14 PM
Sorry, forgot I have that disabled (I'm developing our new forum and didn't want old members getting in). I'll turn it on for you.

My most recent mods installs were:
PortaMx v0.971
ssi_multiBoardNews

I just tried uninstalling the ssi mod, however nothing changed. Mod list is attached.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 16, 2010, 08:54:13 PM
If you ever uninstalled Signature Image Rotator and Reinstalled it, than your previous image urls will not work.  This may have been the case, not sure.  But, in any case, I registered on that site, but you need to give access to regular members for the Signature Image Rotator within the Permissions.  Please do this, and let me know, k?  Or either put me into a usergroup that has this permission.

Well, let me know when you are done doing this, k?

Cheers :)
Title: Re: Signature Image Rotator
Post by: tanshin on January 16, 2010, 09:03:36 PM
Sory about that again... just me being forgetful and stupid :P

While I did uninstall it and reinstall it, I did that after the problem started and tried using new URLs.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 16, 2010, 11:33:43 PM
Can you tell me, are you getting any errors in your error log?  Also, please make sure you have the SignatureImageRotator.php file within your Sources directory.  Check to make sure the file is being written to the sigs folder (which should be within your SMF Root).  Should be creating a folder for the sig images and all image files should be in there.  And furthermore, it would be very difficult for me to help you without FTP Access to the site, Admin Access to the forum, and phpMyAdmin access to the database for the forum.
Title: Re: Signature Image Rotator
Post by: tanshin on January 17, 2010, 09:37:26 AM
I found this error a few times:

Quotehttp://smf.nintendoaddict.com/index.php?action=admin;area=packages;sa=install2;package=SimplePortal_2.3.1.tar.gz;pid=0

2: file_get_contents(/homepages/5/d301581944/htdocs/smf/Packages/temp/index.php) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory

File: /homepages/5/d301581944/htdocs/smf/Packages/temp/install2.php
Line: 463

The file is in my sources directory. The sigs folder exists and is being written to (I see two images in there for you).

I'll contact you about accessing the database things, etc (I'll make some FTP accounts and such for you). I'll also raise your account level.

I'm very new to SMF so... it may take me a while to realize what you may need :P

EDIT: I sent you a PM with details about accessing everything.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 17, 2010, 02:08:38 PM
Ok, found the problem.  It's the dreaded Death-Grip that PortaMX has on your index.php file and sigrotator is no longer available in here.  I'll try and look into this later on, but PortaMX makes this very very difficult :(
Title: Re: Signature Image Rotator
Post by: tanshin on January 17, 2010, 03:15:52 PM
Ah, I had a feeling it was related to that (it was my latest install).

I can always try and find a different system from PortaMX and give that a shot temporarily.
Title: Re: Signature Image Rotator
Post by: ~DS~ on January 17, 2010, 03:19:14 PM
Quote from: tanshin on January 17, 2010, 03:15:52 PM
Ah, I had a feeling it was related to that (it was my latest install).

I can always try and find a different system from PortaMX and give that a shot temporarily.
I suggest giving SimplePortal a try. You won't be disappointed.
Title: Re: Signature Image Rotator
Post by: tanshin on January 17, 2010, 03:21:59 PM
I'm mainly just using it to have a script block only accessible to certain members :P

I uninstalled Porta and reinstalled the rotator, remade my set, however the links still do not appear to work. Is there something else I should do?

EDIT: Got it! I assumed uninstalling the update would uninstall the core version, however I had to remove both :P But it's working without Porta now, as you can see by my avatar.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 18, 2010, 12:25:03 AM
Great, glad it is working for you now :)

I'm actually planning on making an Avatar Image Rotator fairly soon as well.
You can go ahead and delete all accounts you made for me if you no longer need my help.

Cheers :)
Title: Re: Signature Image Rotator
Post by: ~DS~ on January 18, 2010, 12:36:17 AM
Quote from: SoLoGHoST on January 18, 2010, 12:25:03 AM
Great, glad it is working for you now :)

I'm actually planning on making an Avatar Image Rotator fairly soon as well.
You can go ahead and delete all accounts you made for me if you no longer need my help.

Cheers :)
Avatar Image Rotator? Damn, that's one hell of a mod. Does any other forum software do this?
Title: Re: Signature Image Rotator
Post by: tanshin on January 18, 2010, 08:06:59 AM
I only know of a script for Proboards, but for now this will do fine.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 18, 2010, 05:06:39 PM
Glad to see people being creative with this MOD though and actually using it for all that it was built for and more.

Cheers :)

@ Dismal Shadow - Not sure about other forum software.  By default, I would say no.  But this is just 1 of the many great joys of using php within forums, and if you ask me, this mod should be a standard option within SMF for Admins to be able to enable/disable for their members, IMO.  Especially at many many Graphics-Related forums where members do this often.

Cheers :)
Title: Re: Signature Image Rotator
Post by: tanshin on January 18, 2010, 05:11:02 PM
It's a great feature, and it's also one of the reasons why I didn't use PHPBB since there aren't any mods for this. I had to have some form of random image thing that worked with avatars because many people from our Proboards forum were using it.
Title: Re: Signature Image Rotator
Post by: geano on March 10, 2010, 12:23:25 PM
 :'( Darn, worked so well on RC2... Upgrading to 3--Trying to install into RC3 Emulate 2, despite everything ::) 
making (test failed)manual changes to admin template gets the install running...
then:
Quote
Table '.xxx .members' doesn't exist
File: /xxx........ /Packages/temp/sigrotatorInstall.php
Line: 157
Yeah, I know, I know.... patience, patience, gotta try it anyway!!!   Package was installed on RC2 previously... and I noted a comment (
Re: Signature Image Rotator (http://www.simplemachines.org/community/index.php?topic=316832.msg2416589#msg2416589) « Reply #36 on: December 22, 2009, 07:14:57 AM » (http://www.simplemachines.org/community/index.php?topic=316832.msg2416589#msg2416589)) previously about having trouble with db if previously installed and tried to install again.... anybody else tried this?
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on March 11, 2010, 07:11:34 PM
Hello geano, this will have to wait until the end of next week.  Should be a very simple edit.  Should get to it by the end of next week when I officially get a computer in order to deal with this.

Solomon
Title: Re: Signature Image Rotator
Post by: geano on March 12, 2010, 11:39:28 AM
Hi "Sol"... Thanks...
BTW the 'Ultimate PlayRoom" is absolutely awesome... .

Mike
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on April 01, 2010, 05:16:43 PM
Ok, Signature Image Rotator now updated to version 1.8!  Updated for SMF 2.0 RC3!

Cheers :)
Title: Re: Signature Image Rotator
Post by: ~DS~ on April 01, 2010, 05:19:43 PM
Any plans on the avatar rotator you were talking about? :P
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on April 01, 2010, 05:45:37 PM
Not really a priority for me right now.  Sorry.
Title: Re: Signature Image Rotator
Post by: tanshin on April 02, 2010, 10:00:45 AM
Quote from: Dismal Shadow on April 01, 2010, 05:19:43 PM
Any plans on the avatar rotator you were talking about? :P

You can do what I do. I just have the signature rotator set to a max of 100x100 (or whatever your avatar settings are) and use the link there in the avatar blank.

I use that link for my avatar here.
Title: Re: Signature Image Rotator
Post by: live627 on April 04, 2010, 01:00:55 AM
Quote from: ~DS~ on April 01, 2010, 05:19:43 PM
Any plans on the avatar rotator you were talking about? :P

I think ccbtimewiz made one?
Title: Re: Signature Image Rotator
Post by: ~DS~ on April 04, 2010, 01:06:07 AM
Quote from: live627 on April 04, 2010, 01:00:55 AM
Quote from: ~DS~ on April 01, 2010, 05:19:43 PM
Any plans on the avatar rotator you were talking about? :P

I think ccbtimewiz made one?
He did, it's a script, not even I know how to do it.
Title: Re: Signature Image Rotator
Post by: luismanson on April 09, 2010, 10:35:35 PM
GREAT mod, just a question
what would happen if i disable the IMG tag in "Normal Signature Settings" will this disable the use in imagen on all users BUT the ones with allowed to use this mod?
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on April 10, 2010, 12:07:23 PM
Hello, to answer you question, No, this won't disable the use of the Signature Image Rotator mod, since it doesn't hook into the actual signature box directly.  If you don't want people to have this ability you should uncheck this option in the Permissions section of SMF.  You will see Signature Image Rotator there.

Cheers :)
Title: Re: Signature Image Rotator
Post by: luismanson on April 10, 2010, 06:26:08 PM
actually i want to disable ALL images in signatures for all members and only allow them to a specific group, along with this rotator
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on April 11, 2010, 09:15:55 PM
Than you can do this in Permissions :)
Title: Re: Signature Image Rotator
Post by: luismanson on April 12, 2010, 08:33:10 AM
really? i have not found something so specific :(

thanks!
Title: Re: Signature Image Rotator
Post by: chinaren on July 07, 2010, 11:06:38 PM
Great mod!  


The only ~slight~ thing that I'd really like to see is the ability to link a URL to an image.  I tend to use my images as 'buttons' to link to my stories on my board, and so this wouldn't work for me in that respect. 


Otherwise:  Works well on my RC3 board.  Good job.  :)
Title: Re: Signature Image Rotator
Post by: OnlineFunCorner on August 31, 2010, 08:10:26 AM
Thanks
Its Work Great
But A Little Problem Which Nobody Mention There
--
Problem Is
--
In Signature Seetings
In Enabled BBC tags   >>    Select the tags allowed to be used
I unchecked url bbc
Now in signature field of profile nobody can use url bbc
As [url=www.test.com]pass[/url]           url     as small letters
But
But
when putting As [URL=www.test.com]pass[/URL]           URL     as capital letters
it allows using of url bbc in signature
--
COnclusion
When I Disable The Use Of Any BBC tag In Signature
Its Not Worked With Small Letters
But
It Works With Capital Letters
--
How To Remove This Problem Of Case-Sensitive
Thanks
Title: Re: Signature Image Rotator
Post by: OnlineFunCorner on August 31, 2010, 10:08:44 AM
I Got The Solution
It Was A BUG
After A Long & Difficult Search
May Be It Helps Somebody Else
---
http://dev.simplemachines.org/mantis/view.php?id=3848
---
Thanks To SMF Team
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on August 31, 2010, 12:12:34 PM
Hey Dr.IT, just want to note that this is an actual SMF Bug, as you have already linked to above, and doesn't relate at all to this mod.  Signature Image Rotator does not effect any of the BBC Tags and how they work within SMF.

Cheers :)
Title: Re: Signature Image Rotator
Post by: OnlineFunCorner on August 31, 2010, 12:45:40 PM
Thanks
I Realize It
Title: Re: Signature Image Rotator
Post by: MLM on October 28, 2010, 06:44:44 PM
Does this work on a custom theme?

I installed with no errors and enabled it. I put the code in my signature but get a broken image link..

They tell me to put this in my signature:
[img]http://www.madlittlemods.com/forums/index.php?sigrotator=mysig;sig=11288305008;name=MadLittleMods[/img]
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on October 30, 2010, 03:47:36 PM
Yes, this mod should work fine in custom themes.  Are you having problems with this mod in ONLY this theme?  Make sure you have images uploaded into the Signature image rotator also.  Also try changing the setting for this to different options, such as user id or username and Remove all images and try again.  Make sure that the PERMISSIONS are also set correctly for this as well.
Title: Re: Signature Image Rotator
Post by: MLM on October 30, 2010, 04:45:15 PM
I can set my images and it gives me the code to put in my signature but it doesn't work. I am the admin and so I have all of the permissions. I have not tried it on other themes..

I have tried change the username, etc setting with no luck

I am not sure about the theme thing..
Title: Re: Signature Image Rotator
Post by: MLM on November 07, 2010, 07:02:42 PM
anyone?
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 08, 2010, 12:44:02 AM
Well, you can try opening up SignatureImageRotator.php and there are many calls to the justDie(); function within the SigImageRotator() function.

You can begin removing these one at a time until it begins to work for you.

Note:  Removing these can cause security flaws in this mod.

Eventually, you should find the one that was causing the problem for you.

Good Luck, and if you find the one that was the problem, please post it up in here to let us know.

Cheers :)
Title: Re: Signature Image Rotator
Post by: SgtMic on November 22, 2010, 12:10:58 PM
Update for RC4?
Title: Re: Signature Image Rotator
Post by: GazOutEast on November 22, 2010, 01:40:29 PM
Echo SgtMic

Call for RC 4 version please
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 22, 2010, 04:13:11 PM
Done!
Title: Re: Signature Image Rotator
Post by: GazOutEast on November 22, 2010, 04:20:02 PM
Thanks, but .....

http://custom.simplemachines.org/mods/index.php?mod=1851 (http://custom.simplemachines.org/mods/index.php?mod=1851) is not showing the file for download - it's just blank

Edit - now it's showing

Thanks for that
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 22, 2010, 11:38:59 PM
Was a small glitch while uploading the file the 1st time, had to re-up it again.

Cheers :)
Title: Re: Signature Image Rotator
Post by: Bugo on November 23, 2010, 06:59:10 AM
I have found hardcoded text in package.

sigrotator.xml:
Line 401:

echo ' and/or ' . $txt['sig_rotator_max_height'] . '<b>' . $context['rotate_signature_limits']['max_image_height'] . '</b>px';

' and/or '

SigRotator.template.php:
Line 25:

<input type="submit" value="Yes" />&nbsp;&nbsp;&nbsp;<input type="button" value="Cancel" onClick="javascript:history.go(-1)" /></center>

"Yes" and "Cancel"

Please fix it ;)
Title: Re: Signature Image Rotator
Post by: SgtMic on November 23, 2010, 12:57:48 PM
Quote from: SoLoGHoST on November 22, 2010, 04:13:11 PM
Done!

Awesome!! Thanks.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 23, 2010, 02:59:12 PM
Thanks Bugo, you're the BEST!  Getting on it now.

Cheers :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 23, 2010, 03:47:46 PM
Ok, updated it with the hard-coded strings removed and placed into $txt variables.  Also restructured the language strings into their own files.

Cheers :)
Title: Re: Signature Image Rotator
Post by: Bugo on November 23, 2010, 04:14:50 PM
Thanks for cooperation :) Russian language files in attachments.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 23, 2010, 07:56:08 PM
Thank You very much!

Though in the russian.xml and russian-utf8.xml, you are missing this $txt variable for SMF 2.0 RC4 (which was an RC4 added option):

$txt['signature_allow_smileys'] = '<span style="padding-left: 8px;">Allow smileys in signatures</span>';

Should be just above $txt['signature_max_smileys'].  I like the concept of what you did actually, by placing it at the END, overwriting the current one's in there.  Actually never thought of that, and than applying the comment // Signature Image Rotator to it so that it knows how to remove it when uninstalled.  I like your style ;)

Anyways, I have separated these into separate language files if you noticed (english_2.0.xml, english_rc4.xml, and english_all.xml) simply because RC4 has that added string that also needs to be changed so that it has the <span style="padding-left: 8px;"></span> surrounding it.

Would be best to make that 1 edit it a separate file for RC4 IMO.  Perhaps you can just do what I did and supply 3 of regular and 3 utf, like this:  russian_rc4.xml, russian_all.xml, and russian_2.0.xml and just make them exactly like I have it, but I actually like the way you apply it to the END of the ManageSettings.[language].php file much better than the way I use the replace on it.  Will have to update my english files in the same manner.

Thanks
Title: Re: Signature Image Rotator
Post by: Bugo on November 24, 2010, 01:49:59 AM
Quote from: SoLoGHoST on November 23, 2010, 07:56:08 PM
Though in the russian.xml and russian-utf8.xml, you are missing this $txt variable for SMF 2.0 RC4
Added.
Quote from: SoLoGHoST on November 23, 2010, 07:56:08 PM
I like the concept of what you did actually, by placing it at the END, overwriting the current one's in there.  Actually never thought of that, and than applying the comment // Signature Image Rotator to it so that it knows how to remove it when uninstalled.  I like your style ;)
Ok. Do likewise :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 24, 2010, 04:16:36 PM
Thanks :), will update later on tonight since I'm with my daughter now.
Title: Re: Signature Image Rotator
Post by: 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?

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 :)
Title: Re: Signature Image Rotator
Post by: Bugo on November 26, 2010, 04:02:01 AM
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 :(
Title: Re: Signature Image Rotator
Post by: Norv on November 26, 2010, 11:49:40 AM
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").
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 26, 2010, 02:03:05 PM
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 :)
Title: Re: Signature Image Rotator
Post by: Norv on November 26, 2010, 02:36:14 PM
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.
Title: Re: Signature Image Rotator
Post by: Bugo on November 26, 2010, 04:12:10 PM
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? :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on November 27, 2010, 02:16:28 AM
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 :)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on December 01, 2010, 12:04:44 AM
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 :)
Title: Re: Signature Image Rotator
Post by: Robin1989 on January 27, 2011, 06:56:39 PM
any further thoughts of adding a avatar rotator into this yet?
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 28, 2011, 02:10:26 AM
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...
Title: Re: Signature Image Rotator
Post by: Robin1989 on January 30, 2011, 08:38:18 PM
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
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on January 31, 2011, 12:27:07 AM
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 :)
Title: Re: Signature Image Rotator
Post by: Robin1989 on January 31, 2011, 09:42:18 PM
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
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on February 04, 2011, 02:06:08 AM
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 :)
Title: Re: Signature Image Rotator
Post by: 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
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on February 17, 2011, 11:28:55 PM
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!
Title: Re: Signature Image Rotator
Post by: live627 on February 20, 2011, 05:18:35 PM
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
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on February 21, 2011, 01:56:40 AM
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 :)
Title: Re: Signature Image Rotator
Post by: live627 on February 21, 2011, 05:05:36 PM
Assuming their license allows forks. Mods published here implicitly inherit the SM license unless the author states otherwise.
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on February 23, 2011, 12:52:50 AM
Actually, I don't think it matters what the author states.  The license is inherited from SMF automatically!  So, it's like the Federal Law to a State Law conversion I suppose.  So, correct me if I'm wrong, but that makes it possible for you to fork any mods that are on the SMF Site, am I correct in assuming this??  Ofcourse, I believe the license for SMF is that all mods and their code on the SMF site belongs to SMF.  Could be wrong in this, but I believe I remember reading this in their license...

In any case, this is going off topic.  Thanks for helping out for this mod.
Title: Re: Signature Image Rotator
Post by: Deezel on February 23, 2011, 09:12:23 AM
Cheers and thanks guys.
Title: Re: Signature Image Rotator
Post by: Oscworth on June 15, 2011, 11:30:04 AM
Hi SoloGHost,

I know your a busy man working on the DreamPortal update but if you get some time would you mind updating this for smf2 gold  PLEASE!   ;)

Oscar....
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 15, 2011, 10:43:33 PM
This mod now updated and has been tested on all of the following SMF 2.0 platforms:  RC1-1, RC 1.2, RC2, RC3, RC4, RC5, and GOLD!

ENJOY

Also, for anyone who is interested, Dream Portal is looking for Team Members.  Hit us up and request to be any of the 9 open positions from the Join the Dream Page (after registering on the DP.net site).

Cheers :)
Title: Re: Signature Image Rotator
Post by: Deezel on June 16, 2011, 08:04:20 AM
Thanks SoLoGHoST!!!!!
Title: Re: Signature Image Rotator
Post by: Oscworth on June 16, 2011, 03:57:35 PM
Thanks very much SoLoGHoST you're a super star  8)
Title: Re: Signature Image Rotator
Post by: SoLoGHoST on June 17, 2011, 02:26:20 AM
Ahhh, shucks guys, it was nothing!