1
Codyko
Re: .zip file upload and extract module?
  • 2007/9/20 1:41

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi Trspice

Quote:
Would even be nice if it was built into Xcgal module (big suggestive hint)


I can't remember if Xcgal have this feature but you may check the "xoopsgallery" module athttp://www.xoopsgallery.org .

It already get this feature.

Cheers!

Cody



2
Codyko
Re: Selectbox
  • 2006/5/30 1:45

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi Marco

You may try this :

if ($data['ID'] [color=0000FF]==[/color$defaultid ) {
  
$select->setValue($data['ID']);
}



Hope this helps!

Regards
Cody



3
Codyko
Re: Form validation using XoopsForm and smarty template
  • 2006/1/6 8:47

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi all,

Sugar, aka RB , the Author of the magazine module is so nice that he provided me some hints at our local support site. Finally, I have solved the problem. Here is the summary of the solution :

1. Using xoopsform methods , create the prefered form eg include/form.inc.php :

<?php
$form 
= new XoopsThemeForm($formTitle"categoryform"$formAction"POST");
$form->addElement(new XoopsFormText(_MD_XINVENTORY_CATEGORY_NAME"catname"3060,$catNameValue),true );
[
color=0000FF]return $categoryForm->render();[/color]
?>


2.In the php script eg submit.php where you need to use this form
<?php
 
//codes ......
 
$xoopsOption['template_main'] = xinventory_category.html";
    include "
../../header.php";
//----------------
$form = include "include/form.inc.php";
$xoopsTpl->assign('form',$form);
//---------------
?>


3. Finally, in the smarty temmplate , ie templates/xinventory_category.html :
<{$form}>


One more interest thing is that, I cannot not use $form->insertBreak() in "include/form.inc.php" if I don't use $form->display(); but the above solution can get rid of this.

Hope this helps others !

Regards
Cody



4
Codyko
Form validation using XoopsForm and smarty template
  • 2006/1/5 8:07

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi! I am using XOOPS version 2.2.3. I have problem when using form validation with xoopsform and smarty template together;

Ok, I have the form like this :

$form = new XoopsThemeForm($formTitle"categoryform"$formAction"POST");
$form->addElement(new XoopsFormText(_MD_XINVENTORY_CATEGORY_NAME"catname"3060,$catNameValue),true);
$form->assign(&$xoopsTpl);


The form can be rendered through a template but I found that form validation at the "catname" field doesn't work unless I change. ie. It won't warn of empty string.

$form->assign(&$xoopsTpl)
to
$form->display()


I notice that when using the display() method, a "*" is marked beside the "catname", but there is no such mark when using the
template method.

Any idea ?

Thanks
Cody



5
Codyko
Re: How can i open another ie after login??
  • 2005/11/15 4:12

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi Sunnybeef

Could you make your question more clearer? Whether you want a pop up or something else ?


Regards
Cody



6
Codyko
Re: Admin Rights in Extended Profiles module
  • 2005/11/10 16:09

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi,

I 've just find the answers myself.

Ok, to prevent users with admin right of Extended Profiles module (but not "webmaster") from deleting webmasters , I added the following codes at line 187 of admin/user.php of the module.

case "delete":
    
$obj =& $handler->getUser($_REQUEST['id']);
    
    
/*modified for better protect of webmaster group*/
    
$group_ids $member_handler->getGroupsByUser($obj->getVar('uid')) ;
    
// true if current user is in group ID #1, that is webmaster group
    
if ($in_group in_array(1$group_ids)){
    
redirect_header('user.php'3_PROFILE_AM__CANNOTDELETEADMIN);
    exit();
    }
    
/*modified for better protect of webmaster group*/


By doing this, however, you have to remove the user from "webmaster" group before deleting it. Though it's a little bit inconvenient, it's more secure, in my own opions.


Regards
Cody



7
Codyko
Re: VERY new and have few general questions about compatibility
  • 2005/11/10 13:48

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi micleft !

You may check this

Can I include my own HTML pages in xoops?

Regards
Cody



8
Codyko
Re: a download management module based on user and not on group perms
  • 2005/11/10 13:17

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi xvitry,

I think JMorris has answered your questions. Here I just want to share a little tips with you , which may help. I am using xcgal module of which I need to apply permission checking on the users. To acheive the effect of "user permissions", I have set up a hierarchy of groups like below :

Group 1 : user1

Group 2 : user2

Group 3 : user3

Group 4 : user1 , user2, user3

E.g, if I want files to be accessed by user1 only, I grant files 's permissions on group1 .

Regarding "user based" permission, I find
XOOPSGALLERY is quite interesting that it checks against individual users instead of groups.

Regards
Cody



9
Codyko
Admin Rights in Extended Profiles module
  • 2005/11/10 9:49

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


Hi!

I am developing a module which relies on the Extended Profiles module for user management. So, I created one group called "module A admin" which was granted with "admin rights" of both modules.

My problem is that, any user in the "module A admin" group can even delete users in "administrator group".


Is this normal? or did I miss anything ?

I suppose "webmasters" can only be deleted by webmasters only.

Thanks!


Regards
Cody



10
Codyko
Re: Where to find free topic images?
  • 2005/11/4 5:20

  • Codyko

  • Just popping in

  • Posts: 22

  • Since: 2005/8/5 7


I recommend Everaldo.com

Thanks JMorris for his website where I found the url of the above website.

JMorris's websitehttp://mywebresource.com/


Regards
Cody




TopTop
(1) 2 »



Login

Who's Online

159 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 159


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