71
timgno
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/7 19:49

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I found some restrictions for xoops form.

For example in jquery mobile, I find myself selectors that can't be in any way added to the classes of php file form, here's how:

<div data-role="fieldcontain">
        <
fieldset data-role="controlgroup" data-type="horizontal">
             <
legend>Layout view:legend>
                 <
input type="radio" name="radio-view" id="radio-view-a" value="list"  />
                 <
label for="radio-view-a">Listlabel>
                 <
input type="radio" name="radio-view" id="radio-view-b" value="grid"  />
                 <
label for="radio-view-b">Gridlabel>
                 <
input type="radio" name="radio-view" id="radio-view-c" value="gallery"  />
                 <
label for="radio-view-c">Gallerylabel>
        fieldset>
div>


If I wanted to add a fieldeset first input for a given number of objects, because I can not go to manipulate uniquely all input selectors radio or other just like you see in the example.

My idea is that you should be completely separated php code from the html and xoops 2.6.0 to create separate classes for each selector html.

In this way there is the possibility of being able to insert a specific number, as in the example will know, a fieldset, a legend or a div with the properties described.

One that you can see is data-type="horizontal" radio button for inline instead of seeing them as image:

Resized Image


Resized Image


I hope I have made ​​the idea

72
trabis
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/8 14:11

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
timgno wrote: My idea is that you should be completely separated php code from the html and xoops 2.6.0 to create separate classes for each selector html. In this way there is the possibility of being able to insert a specific number, as in the example will know, a fieldset, a legend or a div with the properties described.
I agree and it should be very simple to add new form elements! While we don't have this new form elements, you can look at the new XoopsFormRaw. XoopsFormRaw gives you the freedom of injecting html. Try this:
$divOpen = new XoopsFormRaw('');
$fieldOpen = new XoopsFormRaw('');
$legend = new XoopsFormRaw('Layout view:');
/// Other elements here
$fieldClose = new XoopsFormRaw('');
$divClose = new XoopsFormRaw('
');

73
timgno
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/8 16:30

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Thanks Trabis!

I had already seen the XoopsFormRaw class, but this is fine for xoops2.6.0, but xoops2.5.5 this will not be possible?

Unless this class can also be integrated in xoops2.5.5?

74
timgno
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/8 17:09

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Quote:
Unless this class can also be integrated in xoops2.5.5?


I'm auto answer

It also works on xoops2.5.5

75
mjoel
XOOPS 2.6 testing and development
  • 2012/12/18 10:55

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


currently testing 2.6 in localhost

wow very nice love it so far...

keep up the good work..im looking forward to next rc/beta/final release

got question
is there any plan to separate physical location of modules and extension -
right now all in the modules folder


76
Mage
Re: XOOPS 2.6 testing and development
  • 2012/12/18 13:10

  • Mage

  • Core Developer

  • Posts: 208

  • Since: 2009/8/2 1


Hi,

Yes I think we're going to separate the modules and extensions.

77
mjoel
Re: XOOPS 2.6 testing and development
  • 2012/12/18 22:50

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


ok thank you ..think this is discussed in trabis thread

ok me back to testing...

78
alfred
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/25 17:04

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


.../modules/system/admin.php?fct=preferences&op=showmod&mod=1

Warningconstant(): Couldn't find constant _MI_SYSTEM_PREFERENCE_ACTIVE_AVATARS in file /modules/system/class/form/preference.php line 266 
Warning: constant(): Couldn'
t find constant _MI_SYSTEM_PREFERENCE_ACTIVE_BANNERS in file /modules/system/class/form/preference.php line 266 
Warning
constant(): Couldn't find constant _MI_SYSTEM_PREFERENCE_ACTIVE_MAILUSERS in file /modules/system/class/form/preference.php line 266 
Warning: constant(): Couldn'
t find constant _MI_SYSTEM_PREFERENCE_ACTIVE_MAINTENANCE in file /modules/system/class/form/preference.php line 266 Warningconstant(): Couldn't find constant _MI_SYSTEM_PREFERENCE_ACTIVE_SMILIES in file /modules/system/class/form/preference.php line 266 
Warning: constant(): Couldn'
t find constant _MI_SYSTEM_PREFERENCE_ACTIVE_USERRANK in file /modules/system/class/form/preference.php line 266 Warningconstant(): Couldn't find constant _MI_SYSTEM_PREFERENCE_AVATARS_PAGER in file /modules/system/class/form/preference.php line 266 
Warning: constant(): Couldn'
t find constant _MI_SYSTEM_PREFERENCE_BANNERS_PAGER in file /modules/system/class/form/preference.php line 266 
Warning
constant(): Couldn't find constant _MI_SYSTEM_PREFERENCE_SMILIES_PAGER in file /modules/system/class/form/preference.php line 266 
Warning: constant(): Couldn'
t find constant _MI_SYSTEM_PREFERENCE_USERRANKS_PAGER in file /modules/system/class/form/preference.php line 266


.../xoops260/modules/system/admin.php?fct=blocksadmin
TypeErrorCannot read property '3' of undefined [.../xoops260/media/jquery/plugins/jquery.ui.js:15]


fix this
(Xoops 2.6.0 Alpha1a)

79
Mamba
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/25 23:08

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Alfred, on the latest SVN I don't have these errors.

Did you use the latest SVN?

Also, what PHP version are you using?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

80
timgno
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/12/26 17:04

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


In preferences I can't see the switch for debugging...

Login

Who's Online

441 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 441


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits