Posted: Wed Nov 09, 2005 3:04 am Post subject: Re: Special caracters
Hi,
there is any posibility to convert Gallery2 to ISO-8859-2 ?
I couldn't convert my php-nuke website, because it's too big,
and I couldn't switch it off for a few days...
Joined: Mar 28, 2005 Posts: 10 Location: Hackensack, NJ
Posted: Mon Dec 12, 2005 10:21 pm Post subject: Re: Special caracters
i have a gallery integrated with phpnuke. i have a work around for the utf-8 issue. the gallery module is running in single column layout - so no text from the phpnuke gets mangled. However when i included a the gallery imageblock in the site - some of the special characters in the pages started coming up funny. i did a simple workaround for this. thought i will share with all of you. I created a webservice for generating the image block and then in the image block code accessed the webservice
copy and save the following as block-Random_Image.php or whatever you want to name it and place inside blocks folder for the nuke.
Code: ›
<?php
/************************************************************************/
/* Random Image from Gallery 2 */
/* =========================== */
/* */
/* When you dont want to recreate the utf-8 converted nuke database */
/* you can use this with the createthumb webservice to handle the thumb */
/* creation without funny characters appearing on your nuke page */
/* */
/* Author: Anoop John */
/* http://www.zyxware.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-Random_Image.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.html");
die();
}
now copy the following and place it in a file named
<createthumb_filename.php>
Code: ›
<?php
/**
* Gallery 2 webservice to create thumbnail without converting the nuke database
* for handling the utf-8 issues.
* @author Anoop John <http://www.zyxware.com>
*/
i am blindly setting the user as admin. perhaps there are security issues with this. dari perhaps you could extend this idea. anyway to reduce any security issues make sure you replace <createthumb_filename.php> with an obscure name and you should be pretty safe.
Posted: Thu Mar 09, 2006 8:36 am Post subject: Re: Special caracters
I was replying to anoopjohn. I tried his 2 php files from above, but wasn't able to pull a pic into the block.
When I use the G2 ImageBlock I get ??? marks in my forums. I use Gallery2 without any side blocks in PHPNuke, so the Gallery pages are fine and don't mangle any other code. I only have the issue when I put the G2 block on the site.
Posted: Tue Jun 27, 2006 11:57 am Post subject: Re: Special caracters
Hello,
for users having troubles yet consider checking httpd.conf file from Apache and add this line if it not exist:
AddCharset UTF-8 .utf8
Check too in this file if exist the line:
AddDefaultCharset on
and change to:
AddDefaultCharset off
I am converting my whole phpnuke ISO-8859-1 charset to UTF-8 reading HOWTO included in integration package and opening in ms notepad all lang-*.php language files and saving as... UTF-8 codification.
I hope it can help someone.
Can someone help me whith this [nukedgallery.net] issue?
Posted: Mon Oct 27, 2008 9:16 am Post subject: Re: Special caracters
dari wrote: › try changing the encoding scheme at the top of:
nuke-root/language/lang-<yourlanguage>.php
You will need to change:
define("_CHARSET","ISO-8859-1");
to
define("_CHARSET","UTF-8");
thanks a lot
türkçe karakter problemi olanlar bunu yapsa yeterli oluyor. bende şu an hatasız çalışıyor. 7.6+3.2 sistem
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