close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

bullet

Thread began 3/18/2011 3:50 am by PeterL | Last modified 3/24/2011 2:55 pm by Jason Byrnes | 1458 views | 9 replies |

PeterL

bullet

Hi,

i am using PowerCMS 2.00 and until now i did not have this problem;
if i paste a bullet or use in the editor menu the 'special character' and choose a bullet i get really weird results (se attachement)

Can anyone help me with this issue ?

Sign in to reply to this post

Jason ByrnesWebAssist

is this the way it shows in the Power CMS Admin? or in the page you are outputting the PCMS content to?


if it is on the output pager, make sure the page is using the UTF-8 character set:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Sign in to reply to this post

PeterL

it shows in the output; in the admin i can see the bulletsI

and yes, it is utf8

Peter

Sign in to reply to this post

Jason ByrnesWebAssist

in the connections/PowerCMSConnection.php file, try changing:

php:
$PowerCMSConnection = mysql_pconnect($hostname_PowerCMSConnection, $username_PowerCMSConnection, $password_PowerCMSConnection) or trigger_error(mysql_error(),E_USER_ERROR);



to:

php:
$PowerCMSConnection = mysql_pconnect($hostname_PowerCMSConnection, $username_PowerCMSConnection, $password_PowerCMSConnection) or trigger_error(mysql_error(),E_USER_ERROR); 

mysql_set_charset('utf8',$PowerCMSConnection);
Sign in to reply to this post

PeterL

Jason, that did not solve the problem.

in Firefox i get the bullets but in al other browsers i don't

Peter

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a link where i can see the problem please.

Sign in to reply to this post

PeterL

sure: maaskurkvloeren.com/

i used dashes so far. The upper 4 items show the problem at the moment.
Thanks Jason, for your efforts.

Peter

Sign in to reply to this post

Jason ByrnesWebAssist

at line 1 of the admin/contents_insert.php and contents_update.php pages, add the following code:


php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST") {
    foreach(
$_POST as $key => $val) {
        
$_POST[$key] = str_replace("•","&bull;",$val);
    }
}
?>




this will convert the bullet to the html entity, make sure to edit any content areas that use the bullet to have the content in the db updated.

Sign in to reply to this post

PeterL

Jason,

this solved the problem!
But why?? Is this a problem with PowerCMS?

Thanks a lot!

Peter

Sign in to reply to this post

Jason ByrnesWebAssist

in the admin_cms/contents_insert.php page and the contents_update.php page, the following line:

$CKEditor_config["entities"] = false;

should be set to true:
$CKEditor_config["entities"] = true;

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...