miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual | miniBB Mobile
Specific miniBB Support Forums / Specific /   

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

Author piccolo
Registered
#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
CEO
#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 Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Enrich your miniBB-forums content,
creating public files storage with the File Bank add-on!
Files Bank for miniBB