1
cneise
Re: XoopsProfileHandler::saveField ignores $modversion[profile][field][N][register]
  • 2005/7/15 15:35

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hmm.

I am designing a module where the info is required if the user is male or female. Without this info the module is not usable.

If the webmaster decides to install my module then the user must enter this info or the module is not usable.

The webmaster may hope the user will find the "Edit Account" Option and fill it out.

I think most likely he will add the gender-selection to the registration form.

With the $modversion['profile']['field'][N]['register'] - Option the module is fully usable after installing - without any configuration.

I am a fan of working default configurations which are customizable.

The webmaster may remove the gender-setting from the registration form or uninstall my module if he does not like this procedere.

These are my reasons for the request.

Of course it is your decision - and i will live with it :)

Best regards,

Christian.



2
cneise
XoopsProfileHandler::saveField ignores $modversion['profile']['field'][N]['register']
  • 2005/7/15 12:22

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hi,

i am not sure if this is really a bug or a feature request.

I'd like to suggest to add the following line to XoopsProfileHandler::saveField (in kernel/profile.php, line 162):

if (isset($vars['register'])) {
            
$field->setVar('field_register'$vars['register']);
        }


Then you will be able to set

$modversion['profile']['field'][2]['register'] = 1;


in your XoopsVersion.php. This will make your profile option appear on the registration form. Otherwise you would have to configure this option by hand.



3
cneise
Re: Best way to extend css style?
  • 2005/6/6 23:35

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thanks a lot.

I hope V2.2 is comming soon :)

Ciao, Christian.



4
cneise
Best way to extend css style?
  • 2005/6/6 18:35

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hi,

for a certain module, i would like to add some new styles to the css style sheet.

What is the best way to do this (especially concerning XOOPS updates)?

Best regards!

Christian.



5
cneise
Re: How to use templates in admin pages
  • 2005/4/24 15:41

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thank you very much!

Christian Neise.



6
cneise
How to use templates in admin pages
  • 2005/4/23 22:33

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hello,

i would like to use template within admin pages (for module administration).

For non-admin-pages (for the uses) i use this code at the beginning of my php script:
require '../../mainfile.php';
$xoopsOption['template_main'] = 'tokens.html';
require_once 
XOOPS_ROOT_PATH '/header.php';


The module admin script starts with these lines of code:
require ('../../../include/cp_header.php');
xoops_cp_header();


How to i use my smarty template here?

Best regards!

Christian Neise.



7
cneise
Re: Question: Xoops error reporting
  • 2005/4/23 22:28

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thanks - the debug options are great :)

Ciao, Christian.



8
cneise
Re: Use of functions in templates
  • 2005/4/23 9:58

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thanks for the hint :)

Problem solved!

best regards,

Christian Neise.



9
cneise
Use of functions in templates
  • 2005/4/22 18:57

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hi,

i have written a function for displaying buttons - this will ease template creation and shorten the template code.

I registered the funtion:
$xoopsTpl->register_function('button''templ_button'false
    array(
'onclick''disabled''label''name'));


In my development environment (the templates are newly parsed after every change) everythink works fine.

But wenn installing the module the following error occurs:

Error [Xoops]: Smarty error: [in db:tokens.html line 18]:
syntax errorunrecognized tag 'button'
(Smarty_Compiler.class.phpline 563in file 
class/smarty/Smarty.class.php line 1084


No buttons are shown - the function button() is not used.

Any ideas?

Ciao,

Christian.



10
cneise
Question: Xoops error reporting
  • 2005/4/15 18:38

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hi,

am trying to develop a XOOPS module

Big problem is: when an error occurs XOOPS just stopps. I would be happy to get an error message about programm errors like undefined functions or errors in sql statements.

But i did not find it yet.

Any ideas?

Thanks!

Christian.




TopTop



Login

Who's Online

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


Members: 0


Guests: 252


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