31
goffy
Re: Some questions about xoops
  • 2023/2/11 11:31

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


hi

which modules and which theme are you using currently?



32
goffy
wgSimpleAcc
  • 2023/2/2 18:02

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


Hi to all

if there are any new ideas/suggestions for the module wgSimpleAcc please let me know :)

otherwise I will create next stable version :)



33
goffy
Cascading form select
  • 2023/1/31 6:50

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


I want to show you a new best practice example: Cascading FormSelect

Sometimes you want, that the choice of the first selectbox adapt the possible options of the second selectbox.
After playing around a little bit I decided to implement https://github.com/geekonjava/FilterSelect

I created a new Formselect class (see https://github.com/XoopsModules25x/wgsimpleacc/blob/master/class/Form/FormSelectCascading.php )

The call is similar to call of XoopsFormSelect:
// Get Theme Form
    
\xoops_load('XoopsFormLoader');
    
$form = new \XoopsThemeForm('My form for testing cascading select''formTest',  $_SERVER['REQUEST_URI'], 'post'true);
    
$form->setExtra('enctype="multipart/form-data"');

    
$myExampleTray1 = new XoopsFormElementTray('Example Tray 1');
    
$mySelect1 = new XoopsModules\Wgsimpleacc\Form\FormSelectCascading('Caption Select 1''select1''2'15);
    
$mySelect1->setType(1);
    
$arrSelect1 = [
                    [
'id' => '1''text'=>'Sourceelement 1''rel'=> '0''init'=> '0'],
                    [
'id' => '2''text'=>'Sourceelement 2''rel'=> '0''init'=> '0'],
                    [
'id' => '3''text'=>'Sourceelement 3''rel'=> '0''init'=> '0'],
                  ];
    
$mySelect1->setCustomOptions($arrSelect1);
    
$myExampleTray1->addElement($mySelect1);

    
$mySelect2 = new XoopsModules\Wgsimpleacc\Form\FormSelectCascading('Caption Select 2''select2''4'15);
    
$mySelect2->setType(2);
    
$arrSelect2 = [
                    [
'id' => '1''text'=>'Targetelement 1, linked to Sourceelement 1''rel'=> '1''init'=> '2'],
                    [
'id' => '1''text'=>'Targetelement 1, linked to Sourceelement 2''rel'=> '2''init'=> '2'],
                    [
'id' => '1''text'=>'Targetelement 1, linked to Sourceelement 3''rel'=> '3''init'=> '2'],
                    [
'id' => '2''text'=>'Targetelement 2, linked to Sourceelement 1''rel'=> '1''init'=> '2'],
                    [
'id' => '3''text'=>'Targetelement 3, linked to Sourceelement 1''rel'=> '1''init'=> '2'],
                    [
'id' => '3''text'=>'Targetelement 3, linked to Sourceelement 3''rel'=> '3''init'=> '2'],
                    [
'id' => '4''text'=>'Targetelement 4, linked to Sourceelement 2''rel'=> '2''init'=> '2'],
                    [
'id' => '5''text'=>'Targetelement 5, linked to Sourceelement 2''rel'=> '2''init'=> '2'],
                  ];
    
$mySelect2->setCustomOptions($arrSelect2);
    
$myExampleTray1->addElement($mySelect2);
    
$form->addElement($myExampleTray1);
    
$form->addElement(new \XoopsFormHidden('op''save'));
    
$form->addElement(new \XoopsFormButtonTray(''_SUBMIT'submit'''false));
    
$GLOBALS['xoopsTpl']->assign('form'$form->render());


if you now click on 'Sourceelement 1' in first select then you see only
- 'Targetelement 1, linked to Sourceelement 1'
- 'Targetelement 2, linked to Sourceelement 1'
- 'Targetelement 3, linked to Sourceelement 1'
in second select

have fun
Goffy



34
goffy
Re: xoopsMailer and SMTP
  • 2022/11/27 9:31

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


hi

I got it working in my environment, but I am not sure whether this is valid for everyone.

This is the code:
$xoopsMailer xoops_getMailer();
$xoopsMailer->multimailer->isSMTP();
$xoopsMailer->multimailer->Port       $my_port_out// set the SMTP port
$xoopsMailer->multimailer->Host       $my_server_out//sometimes necessary to repeat
$xoopsMailer->multimailer->SMTPAuth   true;
$xoopsMailer->multimailer->SMTPSecure $my_securetype_out;
$xoopsMailer->multimailer->Username   $my_username// SMTP account username
$xoopsMailer->multimailer->Password   $my_password// SMTP account password
$xoopsMailer->multimailer->SMTPDebug  0;
...

The biggest problem was that my mail provider use different setting for client tools like outlook or thunderbird in comparison with setting for smtp access via a CMS.
Therefore: check allways in advance which settings your provider allows



35
goffy
XOOPS and cookies
  • 2022/11/22 12:29

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


is it possible to run a XOOPS website without any cookies?



36
goffy
xoopsMailer and SMTP
  • 2022/11/19 13:28

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


Hi

is there somewhere a description where I can see how to setup xoopsMailer properly for using a SMTP mail account for sending mails?



37
goffy
Re: UpConstruction Bootstrap v5.2.2
  • 2022/10/24 6:40

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


looks great, thank you



38
goffy
Re: wgDiaries 1.03 RC1 ready for testing
  • 2022/10/17 15:44

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27





39
goffy
Re: How do i check a xoops smarty plugin exist ?
  • 2022/10/2 15:46

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


try

<{if xoStats|default:false}>



40
goffy
Next version of wgEvents
  • 2022/8/29 14:57

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


A new version of wgEvents is available now on https://github.com/XoopsModules25x/wgevents/releases

Some of new features since Alpha version:
- Usage of Google Maps to show marker for location
- Support of multiple fees for each event (e.g. different fees for child, adults,...)
- Sending mails by using a task handler (mails per hour can be defined)
- Ajax support for most used functions for event organizers (e.g. set status, confirm payment,...)
- Support of saving historical data (registrations, answers)
- Implementation of tablesorter
- Import of events from Apcal und ExtCal module

Full feature list you can find here: https://github.com/XoopsModules25x/wgevents#readme

I used the module already on a production site, therefore I know it is already very stable now.

But nevertheless, there is still space for improvements ;)

Issues and bug reports please here: https://github.com/XoopsModules25x/wgevents/issues




TopTop
« 1 2 3 (4) 5 6 7 ... 44 »



Login

Who's Online

208 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits