1
benlau
Re: Tinyeditor 1.0 RC1 error
  • 2007/7/19 7:46

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


I am using XOOPS 2.0.16 + TinyEditor 1.0 Final and got the problem that the Folder Icon could not be shown. The apache log show the same error:

[Thu Jul 19 16:01:55 2007] [error] [client 127.0.0.1File does not exist: /www/modules/tinyeditor/editor/plugins/xrmanager/editor_plugin.js


I am quite confused that what should I do in order to solve or find out the solution?

Thanks for any hits.



2
benlau
[newbb] Database structure was not altered by upgrade from 1.0 to 2.2
  • 2005/12/14 3:40

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi all,

Currently, I just upgraded a site from 2.0.7 to 2.2.3. Most of the modules work except the newbb - All the forum disappeared ,and fail to create any new forum by complain "database error".

I found that the database structure was not altered during upgrade. (e.g. the field of parent_forum is not present in bb_forums). I have tried to upgrade the module in the admin page again, but the database structure remains no changes.

In reading the source,I found the following codes in modules/newbb/include/module.php

function xoops_module_pre_update_newbb(&$module)
{
    
$oldversion $module->getVar('version');
    
$oldconfig $module->getVar('hasconfig');
    
// NewBB 1.0 -- no config
    
if (empty($oldconfig)) {

                
$result $GLOBALS['xoopsDB']->queryF("CREATE TABLE ".$GLOBALS['xoopsDB']->prefix("bb_archive")."(
                        `topic_id` tinyint(8) NOT NULL default '0',
                        `post_id` tinyint(8) NOT NULL default '0',
                        `post_text` text NOT NULL
                        ) TYPE=MyISAM"
);


And then followed by a list of functions to alter the database sturcture. I am quite wonder why it need to check is empty of 'hasconfig' before to alter tables?

By modify the if-statement to a alway-truth condition, I finally got a workable newbb2. But this method is quite ugly... do it have any standard way to solve similiar kind of problem?

Thanks



3
benlau
Why only two modules are bundled with 2.2.3?
  • 2005/12/3 17:21

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi,

I just installed 2.2.3 and find that only two modules are bundled in the release. It is quite strange. I think it makes trouble for beginner. As they may not what kind of modules should be chosen for their needs. They must spents extra time in searching the modules repository or forum.

Is that any special reason to remove those modules?



4
benlau
Re: Any event registration module available?
  • 2005/8/14 5:45

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


I just find this module - Event Guide. It looks quite good, and suitable for my needs. :)



5
benlau
Any event registration module available?
  • 2004/8/7 16:37

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi all,

I need an event registration module in my site. So that users may register for any events that hold by my organization. I did search this site for any available module. But seem that only the Event Signup Module could perform the task. Unfortunately, it doesn't work with my site(running 2.0.6). So I would like to know any other similar modules that could perform the task?

Thanks for any advise!



6
benlau
Re: Static content with comment module
  • 2004/6/27 4:49

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Thanks for reply. But can it allow to write PHP code inside?

That is part of the codes for my static content page.
(well... i think it is not "static".
I just follow the faq :http://wiki.xoops.org/wakka.php?wakka=XoopsStaticContent )

$links = $xoopsDB->query("select lid,cid,title from ".$xoopsDB->prefix("mylinks_links")." where cid=$CID");

$URL= $xoopsConfig['xoops_url'];

while (list($lid,$cid,$title) = $xoopsDB->fetchRow($links)){
echo <<< END
<a href="$URL/modules/mylinks/singlelink.php?cid=$cid&lid=$lid">$title</a><br>
END;





7
benlau
Static content with comment module
  • 2004/6/26 9:06

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi all,

Is it possible to create a static content page with the comment dialog attached at the bottom of the page(user may submit their comment for the static page)? and How?

I am writting a static content page but part of its content are fetched from mylinks module(dynamic). So I can't use another content management module as they don't permiss to embed PHP code inside.

Thanks for any help.



8
benlau
Re: File uploader - strange code
  • 2004/4/26 4:53

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


ohohohohoho. I made a mistake there. I have extraced $HTTP_POST_FILES. The code work fine if register_global has turned on.



9
benlau
File uploader - strange code
  • 2004/4/26 4:49

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


Hi,

I am not sure is it the right group to ask the question. If you think it is better to ask in another group , i can repost it.

I got the file uploader module(1.1) from that page.

https://xoops.org/modules/news/article.php?storyid=1364

However, I found that it doesn't work in my system. By the result of reading the code , I know the reasons:

- It need register_global to turn on. (Hmm... but i think it is recommended to turn off..)
- the line of move_uploaded_file() in index.php is wrong.

The original line:
: if (!move_uploaded_file($userfile, "$destination/$userfile_name")

My modification:
: if (!move_uploaded_file($userfile['tmp_name'], "$destination/$userfile_name"))

I am quite confused with that module.. I want to patch it to work in my system(the system admin may not be agree to turn on register_global)

For the first problem , should it be rewrite to work in register_global off?

The last one... It is quite strange. According to the description of move_uploaded_file , the first argument should be the "name of the file". It don't accept an array.
But why the module work fine in somebody's system..




10
benlau
Re: NetProject
  • 2004/4/25 12:30

  • benlau

  • Just popping in

  • Posts: 29

  • Since: 2004/3/7 1


ic, I will be waiting for it. :)

Thanks you for all the developers.




TopTop
(1) 2 3 »



Login

Who's Online

202 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits