xoops forums

Forum Index


Board index » All Posts (birdseed)




birdseed

Just popping in
Posted on: 2006/7/26 10:12
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#11

Re: Looking for Glossary module

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


birdseed

Just popping in
Posted on: 2006/7/26 8:22
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#12

Re: Looking for Glossary module

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


birdseed

Just popping in
Posted on: 2006/7/24 9:18
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#13

Re: Module creation / verify if a user is connected

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


birdseed

Just popping in
Posted on: 2006/7/19 22:06
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#14

Re: Setting a different link for each user

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


birdseed

Just popping in
Posted on: 2006/7/19 22:00
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#15

Re: Recommended versions of PHP and MySQL

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


birdseed

Just popping in
Posted on: 2006/7/14 8:57
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#16

Re: i have a problem with my xoops chat do i need a database

Hi

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

greetings
birdseed


birdseed

Just popping in
Posted on: 2006/7/13 16:50
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#17

Re: Database connection question

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


birdseed

Just popping in
Posted on: 2006/7/13 16:47
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#18

Re: Module development - AddElement

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


birdseed

Just popping in
Posted on: 2006/7/10 22:33
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#19

Re: Xoops PowerTools a Java Project

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


birdseed

Just popping in
Posted on: 2006/7/10 19:59
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#20

Re: Xoops PowerTools a Java Project

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 »