51
wanikoo
Re: some weird code in newbb1.x
  • 2005/3/9 11:08

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


And...this code is also weird.
foreach (array('forum''topic_id''post_id''order''pid') as $getint) {
    ${
$getint} = isset($HTTP_POST_VARS[$getint]) ? intval($HTTP_POST_VARS[$getint]) : 0;
}
$order = isset($order) ? intval($order) : '';

As you know, 'order' has string-value like "ASC", "DESC" not integer value..in newbb module.
So this code can cause some trouble.

I think this code should be like this!
foreach (array('order''etc') as $getstr) {
    ${
$getstr} = isset($_POST[$getstr]) ? addslashes(trim($_POST[$getstr])) : '';
}
foreach (array(
'order''etc') as $getstr) {
    ${
$getstr} = isset($_GET[$getstr]) ? addslashes(trim($_GET[$getstr])) : '';
}
$order = isset($_GET['order']) ? addslashes(trim($_GET['order'])) : '';

$order = isset($_POST['order']) ? addslashes(trim($_POST['order'])) : '';



52
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/8 12:14

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

Hisoka wrote:
I have just two little suggestions (two nasty things i saw with the last version).
When we use a popup to send PM, there are two scrollbars.
The one horizontal, is not beautiful at all, and not useful too.
(there is one, horizontal, with the popup to find partner, which is not beautiful too)
Then, when we read PM, if the user hasn't put any signature,
we always have "Download to check", which is not beautiful too.

Very thanks for your suggestion!!
I will try to make your suggestion realized in the next version!!

Umm..
btw....
Quite a long time....No upgrade^^;;
(As I mentioned before, I had been a little busy in my new project.)
anyway...
I think it's the right time to rechallenge this PM-hack.

Here is my upgrade plan!
I plan to upgrade/add these to this PM-hack.
-Preview Mode in pmlite.php and pmgrouplite.php
(Yeah...it's necessary^^)
-Code refinement
( As you know, some codes of this PM-hack are a little messy..so I will refine them.)
-function of form type selection
(yeah... Wysiwyg Form^^.. I plan to borrow some codes of newbb2.0.x )
-Advanced Viewmode(HTML View etc) for PMs written with Wysiwyg Form
(Umm...basically I will disable HTML in viewing PMs.
but... instead...I plan to provide HTMLView button which leads user to a popup window for advanced view(html enabled). )
-Templates which are file-based!! No Insert into DB.
( Yeah...no insert into DB..just file-based! )
-etc ( improvement of design...)


PS: Umm...
some people suggested function of file-attachment.
but...I have no plan to add it to this PM-hack at this point...
because I don't think it's security-safe..(^^considering my skill.)

From wanikoo ( wani@wanisys.net )



53
wanikoo
some weird code in newbb/post.php
  • 2005/2/24 22:20

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Umm...
Today,
I added spaw editor and koivi editor to my newbb(Ver1.0 Not 2.x).
btw, during this job, I found some weird code.
( newbb/post.php )
// prevent hacking of nohtml value
        
if (!empty($HTTP_POST_VARS['nohtml']) && $forumdata['allow_html']) {
            
$forumpost->setNohtml(0);
        } else {
            
$forumpost->setNohtml(1);
        }

Is this intentional to prevent to any hacking or just a mistake??
anyway....this prevents all allow_html posts regardless of the value of nohtml
I think this code should be like this! ( 0 -> 1, 1-> 0 )
// prevent hacking of nohtml value
        
if (!empty($HTTP_POST_VARS['nohtml']) && $forumdata['allow_html']) {
            
$forumpost->setNohtml(1);
        } else {
            
$forumpost->setNohtml(0);
        }

Or ( just delete ! in !empty)
// prevent hacking of nohtml value
        
if (empty($HTTP_POST_VARS['nohtml']) && $forumdata['allow_html']) {
            
$forumpost->setNohtml(0);
        } else {
            
$forumpost->setNohtml(1);
        }

Umm..
I think the latter is reasonable.



54
wanikoo
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/2/16 10:24

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

The_Linguist wrote:
Thank-you. I've been looking for a CMS with a Korean language pack for sometime.

You're welcome^^
I am happy this is helpful to you!

Quote:

Okay, I installed XOOPS without any problems
and then in the preferences page I changed the default language to Koreanutf8
and nothing happened, my site still displays in English.

Umm...
this language pack is basically for the Korean and people familiar with Korean Language.
so...
It provides full Korean environment.
(I mean it sends registration mail and even notification mail in Korean.)
anyway.....
If you want to install this lang-pack correctly...
You should select korean(in case of EUC-KR version) or koreanutf(in case of UTF-8 Version) as the language used for Install-wizard.
I mean...
(1) Download XOOPS Core file at xoops.org.
(2) Download Korean language pack.
(3) Decompress(unpack) both.
(4) Copy/Overwrite files and directories of Korean lang pack ...to XOOPS Core file system.
(5) Start Install-Wizard and select korean or koreanutf as the language for Install-Wizard.

*bumpI really need an answer to this question.

Very sorry for my late reply...
but I wrote like this above.
---------------------
If you're interested in XOOPS Korean Version,
Please Visit this Project Page!!
---------------------
I don't monitor this thread on daily base anymore.
If you have any question and suggestion on XOOPS Korean,
please visit XOOPS korean project page...and leave your message at its forum.

Project Name:
XOOPS Korean Version
Project URL:
http://dev.xoops.org/modules/xfmod/project/?group_id=1189

from wanikoo



55
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/2/3 22:15

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Not official Upgrade...just update for only..Korean Users.
So...If you already downloaded Ver4.2 and aren't user of XOOPS Korean,you don't have to download this newly.

Umm...
Recently...
I've started a new project to make XOOPS Korean version and Korean language files of famous modules.
so...this upgrade is just for XOOPS Korean.
--change---------
korean(EUC-KR) language file added.
Korean(UTF-8) language file added.
pdfpmsg4koreanutf.php, koreanutf.php added for XOOPS Korean(UTF-8 Version).
-----------------

Demo:

http://kjw0815.codns.com/wanisys/japanese/xoops/html/modules/news/

Downloads:
-Stable Version => Ver2.85(default)
http://www.wanisys.net/data/wanipmhack.zip
-Test Version => Ver4.2(+pmconfig+GroupPM+etc)
http://www.wanisys.net/data/wanipmhack42.zip
-DB-toolkit for DB-novice(only for New install/uninstall)
http://www.wanisys.net/data/wanipmhack_dbtoolkit42.zip

Quote:

irmtfan wrote:
wanikoo do you accept new features or working on imvironment ?
- set a time limit to prevent send pm after pm in a very short time.
some people click on send several times and send 3-4 pms with same content

Umm...
thesedays....a little busy in my new project.
but...I will try to realize your suggestion in the next version.

From wanikoo ( wani@wanisys.net )



56
wanikoo
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/2/1 12:17

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


I have started a new project on XOOPS Korean version
at Official XOOPS Development Site(http://dev.xoops.org/ )

Project Name:
XOOPS Korean Version
Project URL:
http://dev.xoops.org/modules/xfmod/project/?group_id=1189

So...
If you're interested in XOOPS Korean Version,
Please Visit this Project Page!!

From wanikoo



57
wanikoo
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/1/30 15:05

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Yeah^^ another release!!

Korean language pack(UTF-8 Version) for XOOPS 2.0.x Available!

XOOPS Korean language pack(UTF-8 Version) for XOOPS 2.x has been released by XOOPS Korean Unofficial Site.

You can download the file at:
((Korean language pack(UTF-8 Version) for XOOPS 2.0.x ))
http://www.wanisys.net/data/xoops-2.0.9-lang-kr-utf8diff.zip
((Korean language pack(EUC-KR) for XOOPS 2.x ))
http://www.wanisys.net/data/xoops-2.0.9-lang-kr-euckrdiff.zip

###Demo ( XOOPS Korean Unofficial Site --;; just started )##
-- XOOPS Korean (UTF-8 Version)
http://www.wanisys.net/xoops/koreanutf/index.php
-- XOOPS Korean (EUC-KR Version)
http://www.wanisys.net/xoops/korean/index.php

And
<<Plan of other release>>
-Korean language files of famous XOOPS modules.(EUC-KR Version and UTF-8 Version)

From wanikoo ( wani@wanisys.net )



58
wanikoo
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/1/29 16:40

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

sim_suin wrote:
It's nice work for me.
I have waited for Korean language pack for long.
Thanks, wanikoo.

You're welcome^^;;
Quote:

takao wrote:
Thanks no problem, wanikoo

Don't mention it^^;;

Umm...
And
I'm scheduled to release Korean language pack(UTF-8 Version) for XOOPS 2.x tomorrow.



59
wanikoo
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/1/29 16:28

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


headlinerenderer.php added to this Korean language pack!!
( html/modules/xoopsheadline/language/korean/headlinerenderer.php )

As you(familiar with Korea) know,
most Korean sites generally use EUC-KR encoding as the encoding method of RSS/XML Newsfeed.
so if you don't customize convertFromUtf8(), convertToUtf8(), Xoopsheadline module can't display Korean RSS/XML Newsfeed properly.
I think this file can solve such trouble.
(as you know, iconv module needed if you don't use PHP5.)
Read this link =>http://www.php.net/manual/en/ref.iconv.php

if (function_exists('iconv')) {
    class 
XoopsHeadlineRendererLocal extends XoopsHeadlineRenderer
    
{
        function 
convertFromUtf8(&$value$key)
        {
            
$value is_string($value) ? @iconv("UTF-8","EUC-KR",$value): $value;
        }
        function &
convertToUtf8(&$xmlfile)
        {
            if (
preg_match("/^<?xml .* encoding=(['"]?)(euc-kr|euckr)\1/i", $xmlfile)) {
                
$xmlfile = @iconv("UHC", "UTF-8",preg_replace("encoding=(['"]?)(euc-kr|euckr)\1/i", ' encoding="utf-8"', $xmlfile));
            }
            return $xmlfile;
        }
    }
}


If you have never seen this message before,

please redownload this language pack!

http://www.wanisys.net/data/xoops-2.0.9-lang-kr-euckrdiff.zip

Demo ( XOOPS Korean Unofficial Site --;; just started ):
http://www.wanisys.net/xoops/korean/index.php

Newsfeed Demo( Yahoo Korea Newsfeed ):
http://kjw0815.codns.com/wanisys/korean/xoops/html/modules/xoopsheadline/index.php?id=2

From wanikoo ( wani@wanisys.net )



60
wanikoo
Korean language pack for XOOPS 2.0.x Available!
  • 2005/1/28 22:18

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


XOOPS Korean language pack(EUC-KR) for XOOPS 2.x has been released by XOOPS Korean Unofficial Site.

You can download the file at:

http://www.wanisys.net/data/xoops-2.0.9-lang-kr-euckrdiff.zip

Demo ( XOOPS Korean Unofficial Site --;; just started ):
http://www.wanisys.net/xoops/korean/index.php

And
<<Plan of other release>>
-Korean language pack(UTF-8 Version) for XOOPS 2.x
-Korean language files of famous XOOPS modules.(EUC-KR Version and UTF-8 Version)

From wanikoo ( wani@wanisys.net )




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 12 »



Login

Who's Online

232 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits