Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Development > Topic : AEF 1.0.3 Unicode Version

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team

1


Threaded Mode | Print  

 AEF 1.0.3 Unicode Version, And IE PNG transparency fix (23 Replies, Read 10810 times)
nts1986
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hi all :)

I am Nick from Georgia.

I modify your excellent script, for using unicode.

I add to setup/index.php utf-8 support

PHP Code

 mysql_query("SET NAMES utf8");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION='utf8_general_ci'"); 




old code in setup/index.php
PHP Code

 //Try to connect to MySQL

        
$conn = @mysql_connect($server$user$password);

        

        if(!empty(
$conn)){

        

            if(!(@
mysql_select_db($database$conn))){

            

                 
$error[] = 'The MySQL Database could not be selected .';

            

            }



        }else{

        

            
$error[] = 'The MySQL Connection could not be establ ished.';

                 

        } 





new code in setup/index.php


PHP Code

 //Try to connect to MySQL

        
$conn = @mysql_connect($server$user$password);

        

        if(!empty(
$conn)){

        

            if(!(@
mysql_select_db($database$conn))){

            

                 
$error[] = 'The MySQL Database could not be selected .';

            

            }  ;else {

                 
mysql_query("SET NAMES utf8");

                 
mysql_query("SET CHARACTER SET utf8");

                 
mysql_query("SET COLLATION_CONNECTION='utf8_general_ci'");

            }



        }else{

        

            
$error[] = 'The MySQL Connection could not be establ ished.';

                 

        } 





and this code also add in main index.php file.

I open all php files in this script and add charset "utf-8" to all htmlentities function.


example old code:
PHP Code

 inputsec(htmlentities(trim($_POST['ad_email']), ENT_QUOTES)); 




example new code:
PHP Code

 inputsec(htmlentities(trim($_POST['ad_email']), ENT_QUOTES"utf-8")); 




also change charset to themes/default/hf_theme.php file.

old html code:
Code
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


new html code:
Code
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />




Guys you are using png images, but this png images have one little problem and this problem is png transparency in IE 5.5 and IE 6.0.

for resolve this problem I add png.js file in root directory.

png.js files code is:
Code
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters))
{
  for(var i=0; i<document.images.length; i++)
  {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
        var imgID = (img.id) ? "id='" + img.id + "' " : ""
        var imgClass = (img.className) ? "class='" + img.className + "' " : ""
        var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
        var imgStyle = "display:inline-block;" + img.style.cssText
        if (img.align == "left") imgStyle = "float:left;" + imgStyle
        if (img.align == "right") imgStyle = "float:right;" + imgStyle
        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
        var strNewHTML = "<span " + imgID + imgClass + imgTitle
        + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
        + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
        + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
        img.outerHTML = strNewHTML
        i = i-1
      }
  }
}


and in themes/default/hf_theme.php file in header tag for using png.js add this code:
Code
<script defer type="text/javascript" src="png.js"></script>



There is download link for this modified version:

http://rapidshare.com/files/54471247/AEF_1.0.3__Unicode_Version. zip.html


Guys please add this problem fixs in new version of AEF :)

vbulletin now using utf-8 for default encoding :)


Thanks.


Edited by nts1986 : September 9, 2007, 2:39 pm
IP: --   

AEF 1.0.3 Unicode Version
cheating98
Group: Member
Post Group: Working Newbie
Posts: 84
Status:
cool

can you upload it here?

-----------------------
i love me!
IP: --   

AEF 1.0.3 Unicode Version
nts1986
Group: Member
Post Group: Newbie
Posts: 8
Status:
there is rapid link:
http://rapidshare.com/files/54471247/AEF_1.0.3__Unicode_Version. zip.html

and now also is added to attachment :)


Edited by nts1986 : September 9, 2007, 2:45 pm
IP: --   

AEF 1.0.3 Unicode Version
cheating98
Group: Member
Post Group: Working Newbie
Posts: 84
Status:
thanks.

what is the difference of the unicode version and the regular?

-----------------------
i love me!
IP: --   

AEF 1.0.3 Unicode Version
nts1986
Group: Member
Post Group: Newbie
Posts: 8
Status:
different is non latin characters support.

for example unicode have many non latin language support, example Russian, Japanes, Georgian and more....

http://www.google.com/search?q=unicode+vs+non-unicode&source id=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enGE227GE227&aq=t
IP: --   

AEF 1.0.3 Unicode Version
jlhaslip
Group: Support
Post Group: Super Member
Posts: 1949
Status:

Local / private text here
Perfect timing since the Forum will 'soon' be working on Language packs for non-Latin languages. We have had enquiries from many members about the Language translations, and the png issue is good, too.
Thank you for this contribution and how about kicking in some time to assist the development furture? We are few and the tasks are many.  :??:


-----------------------
Board Image
IP: --   

AEF 1.0.3 Unicode Version
nts1986
Group: Member
Post Group: Newbie
Posts: 8
Status:
Quote From : jlhaslip September 9, 2007, 4:04 pm
Perfect timing since the Forum will 'soon' be working on Language packs for non-Latin languages. We have had enquiries from many members about the Language translations, and the png issue is good, too.
Thank you for this contribution and how about kicking in some time to assist the development furture? We are few and the tasks are many.  :??:

Why not? :)
IP: --   

AEF 1.0.3 Unicode Version
jlhaslip
Group: Support
Post Group: Super Member
Posts: 1949
Status:

Local / private text here
Quote From : nts1986 September 9, 2007, 4:11 pm
Quote From : jlhaslip September 9, 2007, 4:04 pm
Perfect timing since the Forum will 'soon' be working on Language packs for non-Latin languages. We have had enquiries from many members about the Language translations, and the png issue is good, too.
Thank you for this contribution and how about kicking in some time to assist the development furture? We are few and the tasks are many.  :??:

Why not? :)


Kindly send your request by PM to Pulkit.
And welcome to the AEF Forums...  ;-D


-----------------------
Board Image
IP: --   

AEF 1.0.3 Unicode Version
nts1986
Group: Member
Post Group: Newbie
Posts: 8
Status:
Quote From : jlhaslip September 9, 2007, 4:40 pm

Kindly send your request by PM to Pulkit.
And welcome to the AEF Forums...  ;-D

Ok  :nerd:

Thanks  :angel:
IP: --   

AEF 1.0.3 Unicode Version
elwizard
Group: Member
Post Group: Super Member
Posts: 630
Status:

Very busy - Developing...
Ty very much! I'll take a look. ;)

-----------------------
RETIRED DEVELOPER

IP: --   

AEF 1.0.3 Unicode Version
elwizard
Group: Member
Post Group: Super Member
Posts: 630
Status:

Very busy - Developing...
Every day, group is doing bigger ;) jlhashlip, althrough in coding MKP + AEf integration, i will take a look to lang functions:
What do you thing about?
- dir languages/ has all langs, for all board.
- every lang has a its dir, as i.e.:
  English/
  Spanish/
  Arabic/
  French/
  Deutch/
....
- in every subdir, there are a diferent files in php.
  each file are for one detailed area or important file.
  For i.e:
  - lang_admin.php
  - lang_ posts.php
  - lang_main.php
  ...

-----------------------
RETIRED DEVELOPER

IP: --   

AEF 1.0.3 Unicode Version
jlhaslip
Group: Support
Post Group: Super Member
Posts: 1949
Status:

Local / private text here
Quote From : elwizard September 13, 2007, 7:17 pm
Every day, group is doing bigger ;) jlhashlip, althrough in coding MKP + AEf integration, i will take a look to lang functions:
What do you thing about?
- dir languages/ has all langs, for all board.
- every lang has a its dir, as i.e.:
  English/
  Spanish/
  Arabic/
  French/
  Deutch/
....
- in every subdir, there are a diferent files in php.
  each file are for one detailed area or important file.
  For i.e:
  - lang_admin.php
  - lang_ posts.php
  - lang_main.php
  ...
Look in the aef directory structure. There is a languages folder there
already with an english.php file containing the following defined
element:
Code
$lang['name'] = 'English';


I can see this file containing all the pieces for the translations in a multidimensional array like:
Code

$lang['name'] = 'English';
$lang['name'] ['var1']= 'phrase';
$lang['name'] ['var2']=  'phrase';
$lang['name'] ['var2']['var1']=  'phrase';
$lang['name'] ['var2']['var2']= ' 'phrase';

where
the second element might be 'main', 'admin', 'user', etc and the third
element might be 'user-name', etc. better to discuss this with pulkit
and / or others, since I can see several methods, each having their own
advantages (and faults), so I will defer this decision to others.

Similarly, I see advantages to using the folder structure you propose, but again, I defer this decision to the Coding Team.
:)

-----------------------
Board Image
IP: --   

AEF 1.0.3 Unicode Version
pulkit
Group: Administrator
Post Group: Super Member
Posts: 2396
Status:
Well we planned to have it right from the beginning but now its very necessary

-----------------------
Board Image

AEF now featuring in Softaculous - Auto Installer : http://www.softaculous.com
Rate for AEF - http://www.softaculous.com/softwares/forums/AEF
IP: --   

AEF 1.0.3 Unicode Version
elwizard
Group: Member
Post Group: Super Member
Posts: 630
Status:

Very busy - Developing...
All forum langs in one file?
That can be a problem for a forum load...
All the rest of forums that i meet uses various files in order to avoid this.
Admins decide anyway. ;)

-----------------------
RETIRED DEVELOPER

IP: --   

AEF 1.0.3 Unicode Version
dyrer
Group: Member
Post Group: Newbie
Posts: 10
Status:

Macedonia 3000 years Hellenic History
I have test  this unicode version with Greek characters and works 70% correct
Most of the Greek words are accented and when are accented forum shows ?
If you fix that i can make a translation for Greek users
Take care


-----------------------
My Personal Blog
News, tips and my digital life
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Members who read this topic
, Joshy, ngaycuoithang2, seaf2, omar, hinneni, yaniv_z9, andras, Atlantis, SirArthur, ahmed_farouk, Naceira, Mobile785, cobland, unknowdata, VasiliyRS, REDSEW, XemiX, tautvys92, simonbalol, floria, chris3538, usp45compact, sathishraja2, BeeBe


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is November 21, 2019, 7:52 am.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.188