121
bumciach
Re: add jQuery library on xoops core
  • 2009/3/25 11:23

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Fantastic idea :)

And I agree we should think about better organisation folder structure (or better documented). At the beginning (xoops 2.0.16) when I needed using ajax in my modules I was confused: xajax library should been put in class, Frameworks or any other folder? I like clean and order ;)



122
bumciach
Re: Date selection form
  • 2009/2/5 14:47

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


I also wait with impatience on this feature.



123
bumciach
XoopsFormCheckBox and id attribute
  • 2009/2/1 12:00

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


addOptionArray has rendered every option with different value. But when using addOption, XoopsFormCheckBox renders the same id attribute for every option.

Is it bug or feature?



124
bumciach
Multiselect with checkboxes
  • 2009/1/29 10:19

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Maybe XOOPS should replace (and suggest devs to do this in their modules) select multiple form elements with checkboxes? You know, doesn’t require user to ctrl-click multiple elements, without risk of losing those that have already been selected.
For now I can do it like this:

$users_tray = new XoopsFormElementTray(_AM_PFINWEST_FZESPH ,'');
   
$users_tray->addElement(new XoopsFormLabel('','<div style="height:150px;overflow:scroll;">'));
     
$checkbox3 = new XoopsFormCheckBox('''xoops_uid[]'$xoops_uids'<br />');
    while (
$row_zesp=$xoopsDB->fetchArray($result)){
      
$checkbox3->addOption($row_zesp['uid'], $row_zesp['uname']);        
      }
  
$users_tray->addElement($checkbox3);
  
$users_tray->addElement(new XoopsFormLabel('','</div>'));
    
$form->addElement($users_tray);

demo

Extend XoopsFormCheckBox (or XoopsFormSelect) class adding param to place checkbox elements into "overflow:scroll" with declared height and width.

By the way. It would be handy if XoopsForm renders the text assigned to the checkbox or radio clickable to select an option.
<input id=il type=checkbox name=lr value="lang_pl"><label for=ilClick to check the box </label>



125
bumciach
Permissions preview
  • 2009/1/8 10:58

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Hello!
Sometimes we have to verify (without making changes) what permissions has been set. When it is more complex site (intranet) we have many groups and many categories which produce matrix of thousands checkboxes. It's hard to see anything in that big forms.

So I have made script to prints html table of groups and only those items to which permission was assigned.
I'm not a good programmer. It's only a concept.
function showPermTab($permarr) {
  global 
$xoopsDB$xoopsModule;
  
$module_id $xoopsModule->getVar('mid');
  
$sysperm_handler =& xoops_gethandler('groupperm');
  
//get groups
  
$result $xoopsDB->query("SELECT groupid, name FROM ".$xoopsDB->prefix('groups'));
  
$print='<table border="1">';
  while (
$row=$xoopsDB->fetchArray($result)){
    
$print.='<tr><td>'.$row['name'].'</td>'//start new tables' row with group name
    //for each permission (add, edit, del, etc.) generate <td></td>
    
for($i=1;$i<=count($permarr);$i++) {
      
$items=$sysperm_handler->getItemIds($permarr[$i]['perm_name'], $row['groupid'], $module_id);
      if(!empty(
$items)) {
        
$tbl=getItemsName($items);// custom function - returns names from items id 
        
$print.='<td> ->'.$permarr[$i]['perm_name'].': '.$tbl.'</td>';
      }
    }
    
$print.='</tr>';
  }
  
$print.='</table>';
  echo 
$print;
}

//sample permissions
$permarr=array();
$permarr[1]['title_of_form'] = 'Delete permissions';
$permarr[1]['perm_name'] = 'del';
$permarr[1]['perm_desc'] = '';

$permarr[2]['title_of_form'] = 'Add permissions';
$permarr[2]['perm_name'] = 'add';
$permarr[2]['perm_desc'] = '';

$permarr[3]['title_of_form'] = 'Edit permissions';
$permarr[3]['perm_name'] = 'edit';
$permarr[3]['perm_desc'] = '';

showPermTab($permarr);


It will be nice to see that kind of functionality in Xoops.



126
bumciach
List of deprecated functions?
  • 2008/8/12 10:26

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Hi,
Is there any complex list of deprecated functions or classes?
I'm looking for on forum and dev.xoops.org but without majority successes. I found only very fragmented informations (like e.g. xoopsTree should be replaced by XoopsObjectTree), but nothing more complex.



127
bumciach
Re: Opinion War -- Battle of the Editors
  • 2008/8/12 6:49

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Quote:

frankblack wrote:
WYMeditor is simple indeed, so not sensational at all, but I like the "split-screen" a lot, when you open the html-code view.

You are right. But some time ago I tested WYSIWYG web editors and they produced very messy html. So WYMeditor was positively surprise for me. Now I see that other editors also get some improvements in that sector.



128
bumciach
Directory for libs
  • 2008/8/8 10:06

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Is there any standard directory for 3-rd party libraries (which needed in my modules) like xajax, jQery, etc.? /Frameworks? /xoops_lib? I've read devWiki and some other docs, but I'm confused a bit.
Of course I can put needed libraries into modules' directory or anywhere else, but it isn't nice.



129
bumciach
Re: Opinion War -- Battle of the Editors
  • 2008/8/7 10:43

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


I like WYMeditor
It is simply but powerfull editor and generate very clean(!) code. When it will be stable version I try integrate it with XOOPS :)



130
bumciach
Re: Xoops 2.3 Wishlist
  • 2008/8/3 9:55

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Standard breadcrumb.
One global, specify-named array ($xoops_breadcrumb?), which could be filled by modules (if not implemented then core fill it with current module name). Then theme developers could decide to use it (and how?) or not in their themes. Breadcrumbs should be theme thing not module's templates.




TopTop
« 1 ... 10 11 12 (13) 14 »



Login

Who's Online

216 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 216


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