1
Mox20
Re: SQL: "RAND ()" and Criteria
  • 2010/9/28 12:06

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Oops,

I reversed setOrder setSort

Problem solved



2
Mox20
Re: SQL: "RAND ()" and Criteria
  • 2010/9/28 12:00

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Thank you, but rand () is not taken into account, I looked at the kernel code, it seems that "rand ()" was not planned ...

Anyone can confirm this?

En français :

Merci, mais rand() n'est pas pris en compte, j'ai regardé le code du noyau, il semble que "rand()" n'a pas été prévu...

Quelqu'un peut me confirmer ça ?



3
Mox20
SQL: "RAND ()" and Criteria
  • 2010/9/28 11:14

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Hello,

The "RAND ()" for the random selection is not provided in the method "setOrder?

To do this:
$ Criteria-> setOrder ("RAND ()");

Google translation.

Thank you



4
Mox20
Re: Declaring several pages of comments in a xoops_version
  • 2009/11/6 20:29

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Up



5
Mox20
Declaring several pages of comments in a xoops_version
  • 2009/11/5 12:40

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13



Hello,

I am trying to do me a small module, everything goes well and all thanks to the doc, but I block on one thing: the comments!

I proceed as below, but it works on a page, or video.php photo.php.

[code] $ modversion [ 'hasComments'] = 1;
$ modversion [ 'comments'] [ 'itemName'] = 'video_id';
$ modversion [ 'comments'] [ 'pageName'] = 'video.php';

$ modversion [ 'comments'] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [ 'pageName'] = 'photo.php';

$ modversion [ 'comments'] [ 'callbackFile'] = 'include / comment_functions.php';
$ modversion [ 'comments'] [ 'callback'] [ 'approve'] = "mymodule_com_approve";
$ modversion [ 'comments'] [ 'callback'] [ 'update'] = "mymodule_com_update"; [/ code]

It should perhaps be like this?
[code] $ modversion [ 'comments'] [1] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [1] [ 'pageName'] = 'video.php';

$ modversion [ 'comments'] [2] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [2] [ 'pageName'] = 'photo.php'; [/ code]


Sorry for my bad English, it is google translation.

Thank you in advance for your answers.



6
Mox20
Overload css files does under 2.3.2b Xoops?
  • 2008/12/28 19:07

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Hello,

I just see that overloading css files does not work with XOOPS 2.3.2b. The files are present in the source code pages, but data are not interpreted. This is a bug or is it me who has forgotten something?



7
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 2:15

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


you're right for comment

I commented the following line in the file category.php 3.1 and now it works :

function getNicePath($cid$root_filename "index.php"$item_filename "viewcat.php?op=") {
        
//include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
        
$mytree = new XoopsTree($this->table$this->keyName"pid");
        
$pathstring $mytree->getNicePathFromId($cid$this->identifierName$item_filename);

        
/**
         * Replacing the " with ">" and deleteing the last ">" at the end
         */
        
$pathstring trim($pathstring);
        
$pathstring str_replace(':''>'$pathstring);
        
// -- > $pathstring = substr($pathstring, 0, strlen($pathstring) - 13);

        
return $pathstring;



8
Mox20
Re: Asked about some messages debug
  • 2008/12/28 2:11

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13



Ok, thank you trabi



9
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:43

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Quote:

trabis wrote:
Quote:

Mox20 wrote:
I ended up finding a solution to this problem display, you just replace the file:

wfdownloads/class/category.php

By the same file from version 3.2


You mean 3.20_rc1?
I do not see relevant differences in the 2 files, strange.



Sorry,I did not clarify. I use the file category.php version of the WF-Downloads 3.2 RC2 in WF-Downloads 3.1 Final



10
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:19

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


I ended up finding a solution to this problem display, you just replace the file:

wfdownloads/class/category.php

By the same file from version 3.2




TopTop
(1) 2 »



Login

Who's Online

208 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 208


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