On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Cyrillic name in quote button

UserPost

10:30 pm
25 Sep 2008


Truden

Member

posts 53

1

I was having problem with the ahah files displaying Cyrillic, but now the problem comes on normal page.

<p>Ð�иколай написа:</p>', 1);”

The above is part of the generated source code for the quote button on my forum. The bad symbols are supposed to be Николай, and this is the name which I inserted in the sf-admin panel to be shown for admin. (Instead of admin it shows Николай)Can you advise me how to fix this.

One more thing which is very much possible to have been already answered in the forums: After a user logs off, he/she is recognized as logged off user by name, (Welcome back Truden. Log in if you want to post) but the forum does not show the post buttons for this user. After I clean the cookies, the user becomes anonymous and the buttons appear again.

Thank You

11:43 pm
25 Sep 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

Hi Truden

I'm sorry but I suspect the same as I suspected before and this just convinces me. Somehow your site is not picking up the charset that should be set in your wp-config.php file. We have had no other reports of this. You really do need to check this setting.

As to the post buttons this is not a bug it is a 'feature' that was much requested. If you are a member then you should log in to make posts so no, the post button does not show but a login button does in its place. This is to deter a member posting as guest when they should continue to post as a logged in member.

11:46 am
26 Sep 2008


Truden

Member

posts 53

3

I know that the problem is in my server settings, Andy.

My reuest was to help me find the place (function) where the name for admin is pulled off from and I'll try to fix it.
But now I think that it is much better to fix the problem globally by changing my server settings.
The reason I didn't do it until now is that it will affect Truden Web Site which has hundreds of MB Cyrillic DB and the work around is quite difficult and unstable.

Any way, Thank You for your quick respond.

12:18 pm
26 Sep 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

Yes - sorry I didn't answer that did I? That data is in the sfmembers table - find your entry and look at the displayname column.

Surely setting the right charset wont had a negative effect will it?

2:55 pm
26 Sep 2008


Truden

Member

posts 53

5

Thanks again.

It won't work if I change the table collation.

My name is properly displayed on the side where is my gravatar.
Obviously in the quote button is used different way to display the same name and it appears wrong.
So the only way to fix it is to find way to display the name in the quote button in the same way it is displayed on top of my avatar.

I see that you use sfjquotePost() to display the name and I guess that this way of pulling the name from the DB makes it to be displayed without charset applied to it.

Once again I asure you that any server which is set to charset different than UTF-8 will have my problem with non latin letters.
But don't waist your time with me. I'll fix it Smile


5:15 pm
26 Sep 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

6

I wasnlt talkign about your database… I was talking about the charset sertting in wp-config.php which is what will be used in all request headers….

6:36 pm
26 Sep 2008


Truden

Member

posts 53

7

Something happened and my post wasn't taken.

Sorry if it appears two times.
So, my solution to the problem is:

forum/sf-topiccomponents.php, line 455:

$intro = '&lt;p&gt;'.htmlentities($username).' '.__(”said:”, “sforum”).'&lt;/p&gt;';

I changed it to:

$intro = '&lt;p&gt;'.$username.' '.__(”said:”, “sforum”).'&lt;/p&gt;';


Tell me if that is VERY wrong Laughing

10:43 pm
26 Sep 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

Not very… no!

10:55 pm
26 Sep 2008


Truden

Member

posts 53

9

Oh, thanks Andy Laughing

I was afraid not to open my door for the hackers.
Thanks for your time and excuse me for taking that much from it.

Cheers.



Reply to Topic: Cyrillic name in quote button

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 10 + 12        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

11 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)