Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Anders
Worker
Worker



Joined: Jun 16, 2004
Posts: 159
Location: Sweden

PostPosted: Tue Sep 16, 2014 2:32 pm Reply with quote

that looks like this
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Wed Sep 17, 2014 12:15 pm Reply with quote

Tested with php 5.3.x, 5.4.x and 5.5.x - all without this issue.

I'm not sure if it could help you but you can try to test this one. Make a back of this file before you are start to change it!!!!

open modules/Forums/viewforum.php

find:

php Code:
$template->assign_vars(array(

'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_row['forum_name'],


change it to:

php Code:
$template->assign_vars(array(

'FORUM_ID' => $forum_id,
#'FORUM_NAME' => $forum_row['forum_name'],
'FORUM_NAME' => htmlspecialchars($forum_row['forum_name'], ENT_QUOTES, _CHARSET),


find:

php Code:
'TOPIC_TITLE' => $topic_title,


change it to:

php Code:
'TOPIC_TITLE' => htmlspecialchars($topic_title, ENT_QUOTES, _CHARSET),


Compare it on this URL: [ Only registered users can see links on this board! Get registered or login! ]
Try to cange the title of the topic with another specialchars instead only ö, maybe with "é äü ß" etc.

_________________
Github: RavenNuke 
View user's profile Send private message
Anders







PostPosted: Wed Sep 17, 2014 12:30 pm Reply with quote

Ok take a look and thats after code changes so its still same
 
Anders







PostPosted: Wed Sep 17, 2014 12:34 pm Reply with quote

and in forum Management its look like it should after save

é äü ß Å ä Ö and on index é äü ß Ã… Ä Ö
 
neralex







PostPosted: Wed Sep 17, 2014 1:30 pm Reply with quote

Tested with php 5.3.x, 5.4.x and 5.5.x - all without this issue. I'm out here.
 
Anders







PostPosted: Wed Sep 17, 2014 2:16 pm Reply with quote

have talking to host so now its just to wait and see....thx for help
 
Anders







PostPosted: Fri Nov 21, 2014 9:59 am Reply with quote

Hi i did solve it.... in modules/forum/language/lang_english was

Code:
$lang['ENCODING'] = 'utf-8';


i did change this to

Code:
$lang['ENCODING'] = 'iso-8859-1';


And that did do the trick
 
neralex







PostPosted: Fri Nov 21, 2014 12:42 pm Reply with quote

Why do you have it changed before to utf-8? the default setting in the download package is the ISO encoding.
 
Anders







PostPosted: Fri Nov 21, 2014 2:00 pm Reply with quote

Then i think you should open your eyes again and download the distro and have one more look
orginal says in modules/forum/language/lang-english/lang_main.php

Quote:
$lang['ENCODING'] = 'utf-8';
 
neralex







PostPosted: Fri Nov 21, 2014 2:38 pm Reply with quote

Ok i have it mistaken with the lang-definition define('_CHARSET','ISO-8859-1'); but the strange thing is, $lang['ENCODING'] isn't in use with all themes. The related tpl-files are still exist but all are not in use. But that would be explain some issues that i got few years ago. I will play with it. Thanks for the info!
 
Anders







PostPosted: Fri Nov 21, 2014 2:49 pm Reply with quote

Ok cool it did take me some time to find this darn thing
hehe today i did compair german and english forum lang before you said it did work for you....its bad i not find this b4...so i did go over to phpbb3 with portal...but now i maybe change back when the darn Å Ä Ö works lol
 
neralex







PostPosted: Fri Nov 21, 2014 2:56 pm Reply with quote

Which theme you are using?
 
Anders







PostPosted: Fri Nov 21, 2014 3:00 pm Reply with quote

fisube
 
neralex







PostPosted: Fri Nov 21, 2014 3:06 pm Reply with quote

I don't get this issue on my own web server and also not on my local wamp server. I have it tested with all themes in the package. There is all fine.

So it must be a issue on "your" side. Maybe through restrictions or settings by your current webhosting company.
 
Anders







PostPosted: Fri Nov 21, 2014 3:15 pm Reply with quote

Probly webhost but it works now..so iam happy
 
Anders







PostPosted: Sat Nov 22, 2014 10:55 am Reply with quote

have notise some problem when saving code with out bom and with utf-8 i use notepad ++...
 
neralex







PostPosted: Sun Nov 23, 2014 5:53 am Reply with quote

If you want use umlauts in HTML you should type it with the related html code for the specialchar:

ä = ä Ä = Ä
ü = ü Ü = Ü
ö = ö Ö = Ö
[ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©