121
skalpa
Re: A suggested refactoring in core Xoops classes and XoopsObject
  • 2004/1/11 14:51

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Yes m8,

Thanks, and my apologies for the lack of answer (but we're quite busy at the mo and aren't answering to all posts even if we're reading them ).
Actually, I've already done something like this some time ago except that the additional data (id fieldname, table name...) was passed using additional constructor parameters and the queries autogenerated looping through the XoopsObject vars.
Extremely simplified, it looks like this:
function &get$id ) {
    
$tgt =& $this->create();
    
$vars implode","array_keys$tgt->vars ) );
    
$query "SELECT $vars FROM {$this->table} WHERE {$this->idfield}=$id";
    ......
}


But this hasn't been sent to the actual kernel as Kazu is experimenting a solution that would be more optimised (a bit like yours, except that all the data access code would be generated by the XOOPS kernel during module installation / object types registration, so modules writers don't even have to write the methods by themselves).
Also, there are some problems in the actual XoopsObject interface (i.e: the default format for getVar() should be 'n', etc...) and we're actually wondering if this wouldn't be best to offer a new / enhanced class instead of building on the actual XO layer.

But thanks again. I believe we'll be really back soon, and ideas like this are always welcome. So stay around, you may have others ones we hadn't already .

Skalpa.>



122
skalpa
Re: PHP Notices in class/smarty/plugins/resource.db.php
  • 2004/1/10 14:26

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It's not in 2.0.5.2 as the behavior of the feature it's supposed to enable (the reading of the templates from the themes folder) may change soon, and has never worked until now.
However the errors here are almost "typos" so those have effectively been corrected in the CVS repository .

PS: line 71, the correct fix was: you should replace default_theme with theme_set.

Skalpa.>



123
skalpa
Re: Problems downloading 2.0.5.2
  • 2004/1/9 16:19

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16




The sourceforge mirrors do this sometimes...
After checking I managed to get the 2.0.5.1 -> 2.0.5.2 patch using this address.
If you have the 2.0.5.1 version already you can use the patch safely: this update only contains a security fix for the mylinks module (if I remember correctly I only changed 3 lines), so there's no upgrade procedure or problem to expect.

Skalpa.>



124
skalpa
Re: Mantis-Bugtracker: Errors non stop!
  • 2004/1/9 13:50

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


[size=x-large]lol[/size]

I also give 100 points. You rock guys !!

Skalpa.>



125
skalpa
Re: prevent xoops module installer from parsing the templates?
  • 2004/1/9 13:44

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Actually you can't... But I'm surprised assigning objects breaks templates compilation .
What msg do you get ?

IMO, if your commenting / uncommenting method works, one possible workaround would be to enclose your xoops_version templates definitions within an if block and do something like this:
if ( module_is_installed ) {
 
$modversion['templates'] = ...
}


Like this, the lines would be skipped during the 1st install. Now the prob is that you have to figure out what to put in the if condition
Tell me if you managed to, if not I'll try finding something for ya tomorrow (I can't look at this right now).

Skalpa.>



126
skalpa
Re: Weblinks module security problem. Patch available ?
  • 2003/12/23 12:08

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
All right i've removed the module and waiting for a patch...


It's already done...
Read this post.

Skalpa.>



127
skalpa
Re: Xoops 2.0.5.1 XSS attack?
  • 2003/12/23 2:17

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Somebody warned us earlier today.
As I said in another post, this is not an issue if you haven't set your "links" section to auto-approve.

The patch has already been done, but as we expect to make a release fixing a few other problems in a week or so, we decided not to release this one alone right now.
However you can already get the fixed files and copy them to /modules/mylinks/ (they should work with 2.0.1 - 2.0.5.1, and although I haven't tested them extensively I don't think there will be any problems with them):

myheader.php
submit.php
visit.php

[ EDITED ]
Sorry, I messed with the links in the original post. They should be ok now (or at least in a few minutes, myheader and visit should both be v1.8 when you get them).

Skalpa.>



128
skalpa
Re: Recommended CVS Client?
  • 2003/12/23 2:08

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Under Windows and if you're not a cvs pro, Tortoise is (IMO) the best ans easiest one: everything is integrated into the Windows explorer and accessible with the context-menu, so you can master the basic operations within minutes.

Skalpa.>



129
skalpa
Re: Xoops path
  • 2003/12/22 15:46

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


You also have to edit mainfile.php in your XOOPS root folder and change the XOOPS_URL value to http://www.broadcasttech.net



Skalpa.>



130
skalpa
Re: global categories
  • 2003/12/22 14:31

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


I've just started writing a big document that will explain all the planned features extensively, so I won't comment deeply here today: both ideas will be implemented (having global cats to store content + setting up central data repositories easily usable by module devs).



Skalpa.>




TopTop
« 1 ... 10 11 12 (13) 14 15 16 ... 19 »



Login

Who's Online

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


Members: 0


Guests: 196


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