Bug fix for v.1.3 (sorry)

  • 27 Replies
  • 22470 Views
*

hijacker83

Re: Bug fix for v.1.3 (sorry)
« Reply #15 on: January 24, 2006, 09:35:34 pm »
all data write on chat.php  not on sql

like
<?php
$msg = array (
  0 =>
  array (
    'pseudo' => 'HiJacKeR83',
    'texte' => '&thorn;ey diycektim',
    'date' => 1138040166,
  ),
  1 =>
  array (
    'pseudo' => 'HiJacKeR83',
    'texte' => 'hi there',
    'date' => 1138040895,
in chat.php file
the "&thorn;" is character "ş" but its seem in shout box like ""
« Last Edit: January 24, 2006, 09:40:56 pm by hijacker83 »

*

Offline Lupin

  • *****
  • 10,985
  • +0/-0
    • http://www.btiteam.org
Re: Bug fix for v.1.3 (sorry)
« Reply #16 on: January 25, 2006, 08:55:15 am »
do you use right charset?
Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.

*

hijacker83

Re: Bug fix for v.1.3 (sorry)
« Reply #17 on: January 25, 2006, 03:28:43 pm »
well.. then i writing turkish charset windows-1254 in php file like
$validcharset=array(
"ISO-8859-1",
"ISO-8859-15",
"UTF-8",
"cp866",
"cp1251",
"cp1252",
"KOI8-R",
"BIG5",
"GB2312",
"BIG5-HKSCS",
"Shift_JIS",
"EUC-JP",
"windows-1254");
if (in_array($GLOBALS["charset"],$validcharset))
i get this error:
Warning: htmlentities() [function.htmlentities]: charset `windows-1254' not supported, assuming iso-8859-1 in C:\Program Files\xampp\htdocs\tursoft\blocks\shoutbox_block.php on line 158

edit: i fixed it!
find this:
Code: [Select]
// [font=Arial]Text[/font]
    $s = preg_replace(
        "/\[font=([a-zA-Z ,]+)\]((\s|.)+?)\[\/font\]/i",
        "<font face=\"\\1\">\\2</font>", $s);

    // Linebreaks
    $s = nl2br($s);
after add this
Code: [Select]
$s = str_replace("&yacute;","ı", $s);      $s = str_replace("&eth;","ğ", $s);      $s = str_replace("&thorn;","ş", $s);it is unusual method not for crycillic. here i replace
"&yacute;" with "ı"
"&eth;" with "ğ"
"&thorn;" with "ş"
because in chat.php file character ş  writing like &thorn; and character ğ writing like &eth;
« Last Edit: January 25, 2006, 03:56:45 pm by hijacker83 »

*

Offline Lupin

  • *****
  • 10,985
  • +0/-0
    • http://www.btiteam.org
Re: Bug fix for v.1.3 (sorry)
« Reply #18 on: January 26, 2006, 08:51:55 am »
the $validcharset array is because only those specified in this array are allowed with htmlentities (php doc), your method is ok, but you can use array:
Code: [Select]
$s = str_replace(array("&yacute;","&eth;","&thorn;"),array("ı","ğ","ş"), $s);so the job is done only in single pass ;)
Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.

*

uaewebguru

Re: Bug fix for v.1.3 (sorry)
« Reply #19 on: February 17, 2006, 10:17:04 pm »
Hi,

I need help about the member's account edit >>> the only thing that i am getting is change from validating to member  !!

how can i edit other member's details ?

like their country info , or user name ? coz sometimes people mistakingly register with spelling mistakes!

Regards,

UAEWebGuru

*

Offline Lupin

  • *****
  • 10,985
  • +0/-0
    • http://www.btiteam.org
Re: Bug fix for v.1.3 (sorry)
« Reply #20 on: February 18, 2006, 08:35:10 am »
Hi,

I need help about the member's account edit >>> the only thing that i am getting is change from validating to member  !!

how can i edit other member's details ?

like their country info , or user name ? coz sometimes people mistakingly register with spelling mistakes!

Regards,

UAEWebGuru

directly in database users table
Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.

*

locutius

Re: Bug fix for v.1.3 (sorry)
« Reply #21 on: February 23, 2006, 03:53:07 am »
Hi,

I need help about the member's account edit >>> the only thing that i am getting is change from validating to member  !!

how can i edit other member's details ?

like their country info , or user name ? coz sometimes people mistakingly register with spelling mistakes!

Regards,

UAEWebGuru

directly in database users table

using phpMyAdmin

*

hijacker83

Re: Bug fix for v.1.3 (sorry)
« Reply #22 on: March 05, 2006, 09:51:11 am »
hi everyone.
upthere i was changed shoutbox with code
Quote
$s = str_replace("&yacute;","ı", $s);      $s = str_replace("&eth;","ğ", $s);      $s = str_replace("&thorn;","ş", $s);
for turkish char display

i want to change torrents.php file too with same method. but i cant.
http://img228.imageshack.us/img228/6148/adsz6ro.jpg
Bug fix for v.1.3 (sorry)


here again i have a charachter problem. how can i add str_replace code in torrents.php and where is exactly?
thanks for help
« Last Edit: March 05, 2006, 09:52:52 am by hijacker83 »

*

AcerExtensa

Re: Bug fix for v.1.3 (sorry)
« Reply #23 on: March 07, 2006, 01:07:42 am »
Where was a problem in Cyrilic this editing torrents, i solve it with deleting the red word bellow:

edit.php

35            $fname=htmlentities($_POST["name"]);   



Sorry for my English......  :-X

*

Offline Lupin

  • *****
  • 10,985
  • +0/-0
    • http://www.btiteam.org
Re: Bug fix for v.1.3 (sorry)
« Reply #24 on: March 07, 2006, 09:04:38 am »
you're right, but this can give you security problems...
Please don't PM me about question already asked in forum!

Help or support requested using PM will be billed 50 euros/hour, minimum 1 hour; support on forum is free.

*

NINJA

Re: Bug fix for v.1.3 (sorry)
« Reply #25 on: March 16, 2006, 06:33:12 pm »
do i just overwrite the existing files with those in this fix ?

*

MarbolanGos

Re: Bug fix for v.1.3 (sorry)
« Reply #26 on: March 16, 2006, 07:24:00 pm »
if it's a new install you can overwrite.

If you have installed before should save the files to overwrite (be careful of hacks)

*

miskotes

Re: Bug fix for v.1.3 (sorry)
« Reply #27 on: October 08, 2006, 03:53:42 am »
BTIT Chat is still a flat version that's why you have a character problem.
Has to go over MySQL then it will support charactars upon encoding...

P.S. Maybe set encoding in your html header for UTF-8 as:
Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

I beleive that is in include/functions.php

Best of luck...

 


Powered by EzPortal