11
dantom
Re: form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/8 0:17

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21



Funziona...very well! :)

THANK!



12
dantom
Re: form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/6 23:21

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21



WOW!!!!!

$form->addElement(new XoopsFormLinebreak()); // WORKS

I use always PHP debug. it Is very important in this case. but in THIS case i forget to use it.

So..

I activeted php debug and return something similiar "class don't exist!!

I forget to include a link in xoopsformloader.php

GREAT! THANK YOU!




13
dantom
Re: form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/6 22:51

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


Thank to Dave_L, DaBoyz, fatman

I try like this:
1 - I create a class file XoopsFormLinebreak.php and put it in root/class/xoopsform with a code of Mithrandir (thank )

2 - After i use it like this

$breakLine = new XoopsFormLinebreak();
$form->addElement($breakLine); //Is it right?

return blank page

==================================

I try to read info-bug by - Dave Lerner - dave_l -

Maybe XoopsThemeForm::insertBreak() needs to
instantiate a XoopsFormLabel, and pass that instead of
a string.

And i try like this:
$form->insertBreak(new XoopsFormLabel(' ', ' '), 'odd'); //doesn't work

Until now, i can built a line break ina tableform only
like this:
$form->addElement(new XoopsFormLabel(' ', ' ')); //WORK!!!

But i want use insertBreak!
i am using a XOOPS 2.0.6

I must forget insertBreak();?



14
dantom
Re: form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/6 2:26

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


Thank for you answer....
I know...eheheh that is an another way

But i would you like to say...

why doesn't work insertBreak();?

dan_mtv



15
dantom
form->insertBreak() doesn't work? Where do i wrong?
  • 2004/4/6 0:40

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


Hello! I am am (hope! ) e xoops-programmers. What's mean?
That i love to built my xoops's page using an xoops' object
It is very natrally for me. But there is a little problem that i don't understand
when i am using a xoopsForm Object. I explain:

I want insert a row in xoops-form between two element and I have a problem with a
insertBreak(); method in XoopsThemeForm.php class

Here is the brief code for example:

============================================================
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";

$form = new XoopsThemeForm('Aggiungi Xoopsit User', 'addUser', 'adduser.php', 'POST');

//add a textbox for insert username ->OK!
$form->addElement(new XoopsFormText('Nick:', 'user'));

//I try to insert a html row (there are three mode i think...if i understand ):
____________________________________

$form->insertBreak(); // just an empty row doesn't work
$form->insertBreak('<b>Some html or text</b>'); //doesn't work or or like this...
$form->insertBreak('<b>Some Some html or text','someCSSclass'); // doesn't work

am i e very dummy xoopser Where is the wrong?
______________________________________

//buttom for submit and reset ->OK!
$submit = new XoopsFormButton('', 'submit','Invia');
$reset = new XoopsFormButton('', 'reset','Reset', 'reset');
$button_tray = new XoopsFormElementTray("", "&nbsp;");
$button_tray->addElement($submit);
$button_tray->addElement($reset);
$form->addElement($button_tray);

//display form...->OK!
$form->display();
======================================================================================

I can see a text for username and the submit and reset button BUT...

insertBreak is dead...:-|

Do you know where i wrong?

thank you

dan_mtv



16
dantom
Re: Why is not possibile? May be is a good feature
  • 2004/2/29 12:00

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


thank for your post!

Quote:

go to System admin>groups>groups administration page. select "modify" for the group you want to use xcgal (registered/ anonymous/ ...)


Groups right was ok. xcgal can to be used for registered users.

so...
i think that the concept of implementations don't have this feature...:(

Do you think?

dan_mtv



17
dantom
Why is not possibile? May be is a good feature
  • 2004/2/29 1:42

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


Hello
i have e XOOPS community!
I install e beatifull xcgal...but


Why is not possible to create a new categories for users?

I try it, but only webmaster can add album and picture in a new category. User cannot add album and picture in new category :(

Infact, when the user select "Create album", he cannot see a select box with all category (add from webmaster), for select exactaly category to insert own album

Also the background color in the list album of new categories (user-view) are different.

I don't know how can to allow user to insert new album in a new categories.I think this is a good features.

may be i don't understand nothing about this module?


thank :)

Help me. Thank!



18
dantom
Why is not possible?...:(
  • 2003/11/23 15:43

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


hello! :)

I wanto use a check-box for language in edituser.php (1.3.x)
using xoos-object

this is the logic that i want to obtain:
1 - user selected for example Inglese and Tedesco
2 - when he returns in own userinfo.php must see aa HTML Table field like this:

<tr><td>Inglese Tedesco</td></tr>

(i want to store in database this data...using like feel-xoops object code...like this:

========================================

$edituser->setVar("lingue", $lingue); //(if no, witch xoops-programmer am i? )

========================================

3 - When user return in edituser.php checkbox -> Inglese Tedesco must be selected.
4 - if user deselected Inglese...and selected spagnolo store in DB field lingue -> Tedesco Spagnolo

How can do this?

My personal try:
in the edituser.php after op=saveuser i add:

================================================

$edituser->setVar("lingue", $lingue); //where $lingue is array that i want stores in db-xoops_users (field lingue)

================================================


in xoopsuser.php:

============================================================

1 - $this->initVar("lingue", "textbox", NULL, false, 50, true);
2 - Add code INSERT TO -> lingue ecc..ecc.. VALUES '$lingue'
2 - Add code UPDATE TO -> SET lingue='$lingue'

Here i don't know i must entry '$lingue' or '$lingue[]'
lingue='$lingue[]; //return blank page
lingue='$lingue[0];// return a //

============================================================

untill now, when i try....in the field xoops_users (lingue) there is this word: "Array" but no "inglese Spagnolo".
if i make a foreach on "array" return a, r, r, a, y eheheheheh :C
What can i do?
can you help me?

i hope that i am been clear
Is there an another way for kake this? How?

thank thank thank

sorry for my bad english




TopTop
« 1 (2)



Login

Who's Online

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


Members: 0


Guests: 141


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