11
Oki
XoopsThemeForm->insertBreak Doesn't work
  • 2003/10/24 13:34

  • Oki

  • Just popping in

  • Posts: 25

  • Since: 2002/12/4


Hi,

I've trying to use insertBreak, but it doesn't work. :(

My code is:

$sform = new XoopsThemeForm(_MI_MUSER_USERFORM"addressTypeForm"xoops_getenv('PHP_SELF'));
$sform->addElement(new XoopsFormText(_MI_MUSER_ADDRESS_STREET'adr_vch_street'5064$adr_vch_street), true);
$sform->insertBreak(" [b]untitled[/b] ""even");


best regards,
Celso Goya
moinho.net



12
Oki
Why we need use is_array on object constructor
  • 2003/10/24 10:56

  • Oki

  • Just popping in

  • Posts: 25

  • Since: 2002/12/4


Hi,

I have a big question. I have studied the code of XOOPS Classes, but i can't understand why we need to use the function is_array() if always the variable is replaced by the next array item.

I look in all code for an answer, but i can't find.

Is it a bug trap?

class.newsstory.php
    
function NewsStory($storyid=-1)
    {
        
$this->db =& Database::getInstance();
        
$this->table $this->db->prefix("stories");
        
$this->topicstable $this->db->prefix("topics");
        if (
is_array($storyid)) {
            
$this->makeStory($storyid);
            
$this->newstopic $this->topic();
        } elseif(
$storyid != -1) {
            
$this->getStory(intval($storyid));
            
$this->newstopic $this->topic();
        }
    }


On makeStory method in class XoopsStory we aren't get new instances of XoopsStory

(...)

function makeStory($array)
    {
        foreach ( 
$array as $key=>$value ){
            
$this->$key $value;
        }
    }



Best regards,
Celso Goya
moinho.net



13
Oki
Re: Banner Management?
  • 2003/9/29 7:02

  • Oki

  • Just popping in

  • Posts: 25

  • Since: 2002/12/4


Draven,

You could make an ed2k link for eDonkey :) or a torrent for bitTorrent.



14
Oki
Re: Is XOOPS used for business applications?
  • 2002/12/11 20:14

  • Oki

  • Just popping in

  • Posts: 25

  • Since: 2002/12/4


Hi,

Look this article, maybe it's clear your doubts. Well, my idea about it is: You can improve features, modules and much more and those are considered customization, but you can't sell Xoops.

I have a little company and i distribute Xoops, but i'm selling just services for customization, e.g: Supply Chain module or Oracle integration.

http://www.gnu.org/licenses/gpl-howto.html

Well, if i'm not right, please someone alert me.

[]'s



15
Oki
Re: Is XOOPS used for business applications?
  • 2002/12/11 19:26

  • Oki

  • Just popping in

  • Posts: 25

  • Since: 2002/12/4


But can i use the core engine and improve my specific features to sell?
e.g: Linux Red Hat




TopTop
« 1 (2)



Login

Who's Online

242 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 242


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