miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

How to 1stpage news addon with "Umlaute" -- GERMAN

 
Author piccolo
Partaker
#1 | Posted: 9 Nov 2007 11:00 
I found a Problem within the 1stpagenews addon.
If there are "umlaute" (like in German) in the post it will be not properly displayed
you have to add the following codelines:

Here you add the Umlaute in the array:

$umlaute = array('ä', 'ö', 'ü','Ä','Ö','Ü','ß');
$htmlcode = array('ä', 'ö', 'ü','Ä','Ö','Ü','&szlig');

paste the lines above, under the following line:

$keepNext=$tid;

AND:

after that line:
$topics[$tid]['post_text']=substr(strip_tags(str_replace('<br />', "\n", $res[1])), 0, $maxTxtLength);

you have to paste this:

$topics[$tid]['post_text']=substr(strip_tags(str_replace($umlaute, $htmlcode, $res[1])), 0, $maxTxtLength);

Now it should work!

best regards

Christian Jehle

Author Paul
Lead Developer 
#2 | Posted: 12 Nov 2007 04:23 
Before I move this to the proper thread, could you please repost $htmlcode values separating & and the symbol meaning with space, because miniBB interprets such symbols as the sign in whole.

I also could mention that such symbols could be improperly displayed on the page because your forums and the website pages have different encoding. It must be the same encoding then you have better chances everything to be displayed in order...

Specific miniBB Support Forums / Specific /
 How to 1stpage news addon with "Umlaute" -- GERMAN
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑