SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Nao 尚

Quote from: dimdom on October 30, 2008, 01:01:09 PM
Well, yes, I agree with you.. but, the encoding used in coppermine sql was wrong from the begining (latin1_swedish_ci) insted of the correct utf8_general_ci collation.
It's not the character set... It's the collation, which is only used for sorting text-type fields, if I remember correctly.

QuoteI am trying to find a way to import this data to the new sql tables  (added by SMG) in smf database (utf8_general_ci collation) and SMG to display them correctlly like in coppermine...
I'm afraid I can't help much -- My own gallery is Coppermine-based, I did all of the testing, and it worked great... And I use accents (even though they're just French accents, they're still actual UTF code...)

QuoteI guess that it I have to change something in characters encoding in one of SMGs phps...
You may want to check whether $txt['lang_character_set'] and the character set global settings are set... Basically, I updated the CPG converter a couple of hours ago, following your remark, and the only thing I did was to use the default SMF settings for character sets ($context['character_set'] and $context['utf8'] as a boolean.) I don't know if it would help, using that instead...
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.


dimdom


Nao 尚

Quote from: dimdom on October 30, 2008, 01:25:11 PM
OK, i have just import albums only.

As you can see the (my) problem is still there.
Obviously it's still here, I never said the code was uploaded ;D

Anyway, just look for the conv_char($text) function around line 744, and replace with:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv($context['character_set'], $text, 'UTF-8') : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Nao 尚

Another thing... Is your Coppermine gallery located in the same database as your SMG gallery?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

dimdom

Quote from: Nao 尚 on October 30, 2008, 01:30:16 PM
Another thing... Is your Coppermine gallery located in the same database as your SMG gallery?

No it is in another database. To be able to import i had to add the user in SMF database as a second user for CPG database.



Sorry, again the same errors (after adding the code).

Nao 尚

Try to import your CPG tables to your SMF database. If you have enough room. It might help in the conversion process... (It's probably the reason for your issue actually.)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

dimdom


Nao 尚

Quote from: Nao 尚 on October 30, 2008, 01:27:51 PM
Anyway, just look for the conv_char($text) function around line 744, and replace with:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv($context['character_set'], $text, 'UTF-8') : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}


I inverted parameters, sorry. I meant this:

function conv_char($text)
{
global $context;
return !empty($context['utf8']) ? $text : (function_exists('iconv') ? iconv('UTF-8', $context['character_set'], $text) : (function_exists('mb_convert_encoding') ? mb_convert_encoding($text, $context['character_set'], 'UTF-8') : utf8_decode($text)));
}


It won't change anything for you, though ;)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Ehemm

finally i decided to upgrade from 1.02 to 1.5 rc.1 and works fine.
but the problem is only about the way to sorting recent items and random items which is sort with vertical way.
how to setting with column and width like 1.0.2 version ? thanks anyway

Ehemm

i'm using opera, recent item and random item sort with vertical way  >:(

but when i'm using mozilla and IE, they look normal  :D

only issue about browser that you use ......  :-X

add :

case closed ... only set the skin opera to standard and fix the problem :)

dimdom

Another bug (I guess)...

In Album settings, it can not store/save the permissions in (Privacy -->MemberGroups)

...and Nao, I did add the tables in SMF, but nothing changed...)

Nao 尚

@Ehemm> What Opera skin..?

Quote from: dimdom on October 30, 2008, 06:51:30 PM
Another bug (I guess)...

In Album settings, it can not store/save the permissions in (Privacy -->MemberGroups)
Dragooon has been working on it yesterday or today, I don't remember... Maybe he fixed that already.

Quote...and Nao, I did add the tables in SMF, but nothing changed...)
Ah, bugger... Well, I'm not sure I can help more. Did you update your script with my piece of code?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

ernest

did the "Regenerate thumbnails and previews" worked in 1.5b rc1?

ericzad

Dragooon,

Cheers! Worked perfectly 1.1.6. VERY nice to have the mass upload, HUGE TIME SAVER!!!

Thanks

Nao 尚

I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

tyhgdgh

There are 1 unapproved item(s), Click here to view them

how do i fix this, its like permanent!
there is nothing to even approve!

Dragooon


crustybum

Weird, everything has been ok, then for some reason today the icons say sorry you are not allowed to view this file.Make sure you are connected to the server.  ??

I have the latest upgrade 1.5beta RC1

Dragooon


Advertisement: