11
birdseed
Re: Looking for Glossary module
  • 2006/7/26 10:12

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

You shound turn off the "glossary-in-glossary" Function for the dictionary which highlights dictionary words in the dictionary text. This gives a complexity of

n * k

where n is the number of displayed items per page and k is the number of glossary items. Its easy to show that this will crash your server if the number of words in the glossary grows to a number > 1000.

greetings
birdseed



12
birdseed
Re: Looking for Glossary module
  • 2006/7/26 8:22

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Wordbook works, but its internal structure is crap. There are a lot of unnecessary sql queries. Better take dictionary by Peter Nagl.

greetings
birdseed



13
birdseed
Re: Module creation / verify if a user is connected
  • 2006/7/24 9:18

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


if(empty($xoopsUser)) {
// not logged in
} else {
// logged in
}



14
birdseed
Re: Setting a different link for each user
  • 2006/7/19 22:06

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

What is supposed to happen if I enter www.foobar.de/fooscript.html?foouser

?

Can't follow you.

EDIT: Or do you just want to create a link in that style? thats a custom XOOPS block with


<a href="www.foobar.de/fooscript.html?<?= $xoopsUser->getVar("uname") ?>


greetings
birdseed



15
birdseed
Re: Recommended versions of PHP and MySQL
  • 2006/7/19 22:00

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi DaveL,

I use fedora core 5 for XOOPS development (xoops 2.2.4) @home. Almost everythings works fine, I had some problems in my own modules, but not the core. mysql5 has more sql2003 compliance. Some module queries won't work. One examples is the scope of Variables in SQL statements which is narrower in MySQL 5.

Consider this hack in class/errorhandler.php

function handleError($error)
    {
        
// BIRDSEEDMUSIC HACK: nervige Reference-Meldungen von php 4.4 ignorieren
        
if ($error['errstr'] == "Only variables should be assigned by reference"
        
|| $error['errstr'] == "Only variable references should be returned by reference") {
            return;
        }
        if ((
$error['errno'] & error_reporting()) != $error['errno']) {
            return;
        }
        
$this->_errors[] = $error;
        if (
$error['errno'] == E_USER_ERROR) {
            
$this->_isFatal true;
            exit();
        }
    }


It keeps you from the mass of reference error messages in XOOPS 2.2.4.

Best php Version for XOOPS is 4.3.x.

greetigs
birdseedmusic



16
birdseed
Re: i have a problem with my xoops chat do i need a database
  • 2006/7/14 8:57

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

you need a MySQL database for xoops, with or without chat.

greetings
birdseed



17
birdseed
Re: Database connection question
  • 2006/7/13 16:50

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

No this is not possible, only that way...

$sourceConn = new XoopsMySQLDatabaseSafe();
        
$sourceConn->setLogger(XoopsLogger::instance());
        
$sourceConn->setPrefix($prefix);
        
$sourceConn->conn mysql_connect($host$username$password);
        if (
$sourceConn->conn) {
            if (!
mysql_select_db($database)) {
                
$messages[] = "Datenbank " $database " konnte nicht ausgew&auml;hlt werden.";
            }


a bit ugly...

greetings
MK



18
birdseed
Re: Module development - AddElement
  • 2006/7/13 16:47

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Some ways to write secure code:

- turn off register_globals
- assign $_POST and $_GET Variables at the beginning of the script to the variables with whom you wanna work
- Let your objects inherit from XoopsObject (uh I'm afraid they changed it do xo something in 2.0.14.)
- use $ts->addSlashes($postVariable) before inserting the content of textboxes to sql strings (sql injection)
- praise that there is no D.O.S Attack (denial-of-service). The main weak point in XOOPS is the search function (oops, I should keep that secretly )
- use insert/update/delete SQL statements only in POST Request, this is pseudo-safe, but it works for non-professional users

greetings
MK



19
birdseed
Re: Xoops PowerTools a Java Project
  • 2006/7/10 22:33

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Quote:

* Putting a file hack it will say wich files are needed they are modified and it will say wich exists or not. Also with a simple click the source code will be modified automatic.
* The new files will be uploaded automatically in ftp and old will be renamed so they will exist as a backup.
* It will even have the possibility of deinstallation of hack even if the old files do not exist.
* It will remember wich files you have modified so after 6 months when you will want to upgrade XOOPS to know what to make.
* It might export and it creates files hack from files of code php so as to you create easily yours hack having only it modifies the code, and a click in the program.


Hacks are called hacks because they have an unstructured nature. Your hack declaration system makes sense if everybody uses it. I'm not convinced that this will be the case.
At my site, i disallowed ftp access and introduced cvs upload for source code and the XOOPS image manager for media upload.
All the features can be done by implementing a cvs. cvs is a well-known and stable (did i really say stable? ;) ) technology for source control.

Quote:

The precedents were the operations of application with regard to hacks. Now will exist also other functions wich will optimise with regard to as generally speaking xoops. These will be:
* Possibility of export in csv the names and email the users so as to they can be used from independent program as thunderbird, outlook etc.


..a typical client side application...
Quote:

* image Checking, will look at if exist all the pictures (links) that are reported in the database, if some does not exist it will be recorded.
* Link Checking, will take a table and a field that we will put in and it will check if all links that exist and aren't dead(here are required powerful regular expressions).


We did that for AMS. Can be easily done on the server

Quote:

* Cleaning/Optimizing the database.
* Backup of base of data in form that would not spoil the data. (If you tryed to make a backup with phpmyadmin and utf-8 you know what I mean.
* Reconstruction of table templates which faces problems after a lot of upgrades.
* Automatic reproduction of files of language so if you do not have all modules translated it won't be needed to make it manually.
* Export of text of files of language so with a copy paste of the text in certain translational tool, the text will be translated and later again with copy paste are created the certain files of language automatically (perhaps with some errors).
* Facility in the use of pictures, with few clicks change all icons that XOOPS and its modules use, that it is very difficult to make it manually. Of course it will upload the new pictures.
* Creation of themes of pictures ready to use that will become as I reported before. These will be the operations that will make my application. Also I should report that the application will have multilanguage support because I make it as XOOPS with language files.


In germany we say "eierlegende Wollmilchsau"... I`m missing a clear concept what the software should do. Why not focus on one thing and do it perfectly?

greetings
bsm



20
birdseed
Re: Xoops PowerTools a Java Project
  • 2006/7/10 19:59

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Mhh...
I'm not conviced by the usability of such a tool. Better to tell you now than telling you later.

The whole thing should be implemented as a XOOPS module, server side, with php. There is no reason to do this on a client. I see that you want to improve your java skills, but the problem is that administration should be done on the server to be acessible from anywhere, not only on a client with jdk 1.5. and your packages.

greetings
vbm




TopTop
« 1 (2) 3 4 5 »



Login

Who's Online

303 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 303


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