11
ouioui
where is myxoopsshop, Is there an alternative in xoops world ?
  • 2005/5/19 14:23

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

What about the XOOPS Shop Project described presented in
https://xoops.org/modules/news/article.php?storyid=1948

Actualy www.myxoopsshop.org is not avalable. .... This is a "confixx" login page.

Is there an alternative in XOOPS world :

- Xoopsshop osCommerce 0.2 is not recommended for production sites.
seehttps://xoops.org/modules/repository/singlefile.php?lid=1273&com_id=17321&com_rootid=10817&com_mode=thread&#comment17321



12
ouioui
FormTextDateSelect / datetime from mysql
  • 2005/5/17 13:27

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

I try to exploit the FormTextDateSelect with a "datetime" field from a MySQL DB.
The value of datetime field is '2005-05-01 00:00:00' ($mydate in the folowing code).

<code>
$f_date = new XoopsFormTextDateSelect(_FO_DATE, 'date', 15,$mydate);
</code>

In the contructor of FormTextDateSelect class there is this code :
<code>
$value = !is_numeric($value) ? time() : intval($value);
</code>

As my field is not numeric i have everytime the current date.
I don't found the php function to convert my field '2005-05-01 00:00:00' in a numeric field witch can be interstanding by the calendar. Can you help me ?

I want to convert in a french format. Is there is a documentation about ?



13
ouioui
Using notification feature with xoops_version
  • 2005/4/4 10:13

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

Is the mini notication framework well design and powerful ?

This is really a candide question because i don't inderstand why there is no publicity for this function. I deedn't found articles, forum thead about it. The wiki have a good article about Notification (http://dev.xoops.org/modules/phpwiki/index.php/Notify) and it look a powerfull feature

A module like WFSection don't use it to notify changes on article. Do you know why ?

Best regards.

NB : I Notify me of new posts in this thread



14
ouioui
How Using template in a block
  • 2005/3/10 18:50

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

I tri to use a block with temple so i have configured the xoops_version like that
$modversion['blocks'][2]['file'] = 'menu_blocks.php';
$modversion['blocks'][2]['name'] = _MI_VETEXPERT_MENU_BLOCK;
$modversion['blocks'][2]['description'] = _MI_VETEXPERT_MENU_BLOCK;
$modversion['blocks'][2]['show_func'] = 'vetexpert_menu';
$modversion['blocks'][2]['template'] = 'vetexpert_menu.html';
$modversion['blocks'][2]['isactive'] = 1;
$modversion['blocks'][2]['visible'] = 1;


Coding my block function
function vetexpert_menu() {
    
$block = array();
    
$block['title'] = _BL_VTX_TITRE_MENU;
    
$menu = array();

    
$menu['title']=_BL_VTX_GEN_CLIENT;
    
$menu['url']='/modules/vetexpert/index_vxp_client.php';
    
$block['mainmenu']=array();
    
$block['mainmenu'][1] = $menu;

    
$menu['title']=_BL_VTX_GEN_RACE;
    
$menu['url']='/modules/vetexpert/index_vxp_race.php';
    
$block['mainmenu'][2] = $menu;

    
$menu['title']=_BL_VTX_GEN_ESPECE;
    
$menu['url']='/modules/vetexpert/index_vxp_espece.php';
    
$block['mainmenu'][3] = $menu;
    
$block['content'] = 'toto';

    return 
$block;
}


And my template
<table class="even">
<{foreach 
item=menu from=$block.mainmenu}>
<
tr <{cycle values="even,odd"}> >
<
td align="center" valign="top"><a ref="<{$menu.url}>"><{$menu.title}></a></td>
</
tr>
<{/foreach}>
</
table>


When i debug with "debug smarty template console" my block variable have only 2 ocuurs : title and content i don't see my mainmenu occurs.
{$block}    Array (2)
title => Client
content 
=>

And my block (my template) is empty,

Where is my mistake ? Is someone can help me ? I need you

Best regards



15
ouioui
kernel : object instanciation
  • 2005/1/18 16:17

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

In the directory call kernel, why there is only one class XoopsUser whitch implement the constructor with the id : XoopsUser($id = null).
$user = new XoopsUser($id);

The others classes use the handler to make the instanciation :
example with privmessage:
$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->get($idmsg);

why there is no function in XoopsPrivmessage called XoopsPrivmessage($id = null).
Is it the volontary to be closest from the factory pattern ?

Why there is this différentes between user and the other kernel classes ? To you think it is a good think ?

Thank for your response .



16
ouioui
Re: smarty plugin
  • 2005/1/7 8:21

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Thanks for your responses here!

Basicly I agree with you but if XOOPS team devellop spectial XOOPS smarty plugins, the XOOPS architecture could be closer of the MVC pattern where the view (the form) is not coupled to the controller (the index).



17
ouioui
smarty plugin
  • 2005/1/6 17:34

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

Why XOOPS use class\xoopsform to generate the forms and don't use smarty plugins like html_options or html_checkboxes ?
is too complicate ?
is too expensive in time ?

Best regards



18
ouioui
Re:is xoopsCriteriaHandler exist ?
  • 2004/11/8 15:59

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


I need to store the xoopscriteria class in a DB to store conditions in a meta data definition. Currently, i try to develop a prototype module whith is based on a XOOPS application meta data definition to generate PHP program.

This meta-data include states class whith are based on condition (like the UML stateschart).
For example with a class name "Client":
State 1 : nameClient != ""
State 2 : age > 0 && age < 20
State 3 : age > 20 && age < 75
State 4 : DeathDate !="0000-00-00:00:00";
Every state have its own behavior, its own form...

My question is : is xoopsCriteriaHandler already existe in a module ?

Thank for your response



19
ouioui
Re:is xoopsCriteriaHandler exist ?
  • 2004/11/8 13:10

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Thank for your response,

I know the differents purposes of "criteria class" and "XoopsObjectHandler".
I want to use criteria as XoopsObject. So i need to developpe his XoopsObjectHandler.
CriteriaElement has attibut as sort, order, limit, start, groupby this is the parent class
Criteria has attibuts as prefix, function, column, operator ,value
CriteriaCompo has attribut as criteriaElements, conditions.
So i need to store every this mini framework in a database with a XoopsObjectHandler with a
"myXoopsCriteriaHandler->insert($mycriteria);"

Best regard



20
ouioui
is xoopsCriteriaHandler exist ?
  • 2004/11/8 11:10

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

I need to store criteria in a DB.
Is someone created a criteriaHandler (extends XoopsObjectHandler) with insert, getObjetc methods ?

I didn't find it in the XOOPS kernel...

Best regard




TopTop
« 1 (2) 3 »



Login

Who's Online

189 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 189


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