miniBB ® 

miniBB

® 

Demo

A place to try it out in every way⇒ miniBB.com
 · Start · Polls · Register · Search · Statistics · Manual ·
Anything miniBB Demo / Anything /  
 

PREVIEW - malá úprava náhledu

 
Author ATP

Partaker Starter 

#1 · Posted: 29 May 2006 23:08 
Asi jsem neobjevil Ameriku, ale přece to sem hodím (krajanům se omlouvám za svou neangličtinu a ostatní ať si trhnou) :

for corect CZECH fonts in Prewiev one small modify in addon_preview2.php:
--------------------------------
<meta http-equiv="content-type" content="text/html;charset=iso-8859-2">
<?php
if(isset($_POST['prevForm']) and trim($_POST['postText'])!=''){
require($pathToFiles.'bb_func_txt.php');

$logged_admin=($user_id==1?1:0);
$disbbcode=(isset($_POST['disbbcode']) and $_POST['disbbcode']==1?1:0);
$topicTitle2=stripslashes(textFilter($_POST['topicTitle'],$topic_max_l ength,$post_word_maxlength,0,1,0,0));
$postText2=stripslashes(textFilter($_POST['postText'],$post_text_maxle ngth,$post_word_maxlength,1,$disbbcode,1,$logged_admin));

$tpl=makeUp('addon_preview2');
if($topicTitle2=='') $tpl=preg_replace("#<!--topic_title-->(.+?)<!--/topic_title-->#s",'',$ tpl);
echo ParseTpl($tpl);
exit;
}
elseif(isset($_POST['prevForm']) and trim($_POST['postText'])==''){
echo '';
exit;
}

?>

--------
p.s. Moc tomu nerozumím, ale když už jsem tam tu možnost náhledu dal a celá stránka funguje na ISO8859-2, tak se mě při zvolení náhledu místo české diakritiky zobrazovaly kosočtverce apod., protože preview byl v UTF-8. Možná jsem do hlavičky přidal zbytečně moc, ale funguje mě to ZDE.
Na lamu to snad není až tak blbej poznatek
Mimochodem, tady se český znaky v náhledu taky nezobrazujou korektně

Jo, a anglicky neumím vůbec ...

Author hulibaban

Partaker Starter 

#2 · Posted: 26 Jun 2006 17:23 
ěščřžýáíůúť

nevím, ale mně se normálně v náhledu zobrazí. tedy zde na minibbtest...

Anything miniBB Demo / Anything /
 PREVIEW - malá úprava náhledu

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.

 

Online now: Guests - 1
Members - 0
Max. ever online: 72 [7 Sep 2023 21:51]
Guests - 72 / Members - 0
 
miniBB Demo Powered by Bulletin Board Software miniBB ® Contacts


  ⇑