21
goffy
Re: Some questions about xoops
  • 2023/2/15 13:30

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

I would suggest to use XOOPS 2.5.11 and min PHP 7.4
latest version of 2.5.11 you can find here:https://github.com/XOOPS/XoopsCore25

I made a lot of improvement in modulebuilder but I didn't test it with 2.5.10

maybe this can solve the problems



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

which modules and which theme are you using currently?



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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 :)



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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 implementhttps://github.com/geekonjava/FilterSelect

I created a new Formselect class (seehttps://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



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


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



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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?



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


looks great, thank you



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27





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

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


try

<{if xoStats|default:false}>




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



Login

Who's Online

154 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

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

Latest GitHub Commits