11
rossb
Include all files (sorted) in a template directory
  • 2020/11/5 14:12

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

xoops 2.5.9
site: www.rossco.org

Management of a menu template file is getting unwieldy due to large number of menu items. I want to split things by submenu, where submenu items are in a directory and include whatever items are in the directory, sorted by order. For example:

directory
00_Item1
01_Item2
...

This will allow me to easily edit a particular menu item without wading through a large file referencing the items individually.

I note that template files can be included individually by:
<{includeq file="$theme_name/tpl/some.tpl"}>

I want to do this:
<{includeq file="$theme_name/tpl/some_directory/*.tpl"}>
where they are included sorted as above

does "includeeq file" work on wildcards, as above, or is there another way to do this?

Smarty doc'm (for include) sez no:
https://www.smarty.net/docs/en/language.function.include.tpl

Have not found any doc'm for includeq for xoops

Thanks;
Bill



12
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/21 11:34

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


my issue was in custom theme code, doubt it is yours:

<div style="background: #F1F1F1 url('')">


... causing a double reload of all pages

fix:

<div style="background: #F1F1F1">


This also appears to be the cause of performance issues I have been chasing for some time.

Regards;
Bill



13
rossb
Solved: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/20 21:04

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi Geekwright;

Allofa sudden started working.
Reverted all my instrumentation changes, back to original register.php

Can complete registration process with both chrome and FF.

<div style="background: #F1F1F1 url('')">


must have been the offender. Just took time to ripple through the caches.

You da man. In a million or so years, I MIGHT have found the issue. THANK YOU very much...

Regards;
Bill



14
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/20 20:22

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


The load twice is because (I think) of the op value mismatch causing fail and reload
Hi Geekwright;

First time through:
$_POST: [op97211] => register
$_SESSION: [profile_opname] => op67782

not equal.

The submit button is instantiated in modules/profile/include/forms.php. I am unsure how / where from the $_POST [op97211] is for the button.

changed <div style="background: #F1F1F1 url('')"> to <div style="background: #F1F1F1">. No behavioral change. Verified changed in page source.

Would it help you to have remote access to my sys?

Regards;
Bill



15
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/20 16:24

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


If I comment the opname check:
if (isset($_SESSION[$opkey])) {
    
$current_opname $_SESSION[$opkey];
    unset(
$_SESSION[$opkey]);
    
//if (!isset($_POST[$current_opname])) {
    //    $_POST = array();
    //}
} else {
    
$_POST          = array();
    
$current_opname 'op'// does not matter, it isn't there
}


registration proceeds; proving that $_SESSION and $_POST are outa sync.

It comes down to how / where does the registration submit button get the op POST variable?

Need some help here...

Regards;
Bill



16
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/20 14:50

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


update:

$_POST is not empty; first load of register.php (my logfile was previously cleared at start)

$_POST contains [op47069] => register
$_SESSION contains [profile_opname] => op85318

which is compared and fails (code above):

if (!isset($_POST[$current_opname])) {
$_POST = array();

...wiping the $_POST variables, causing a failure and basic registration page reload.

In other words $_POST and $_SESSION are outa sync.

Regards;
Bill



17
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/20 12:44

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


update:

modules/profile/register.php (excerpt):
$opkey 'profile_opname';
if (isset(
$_SESSION[$opkey])) {
    
$current_opname $_SESSION[$opkey];
    unset(
$_SESSION[$opkey]);
    if (!isset(
$_POST[$current_opname])) {
        
$_POST = array();
    }
} else {
    
$_POST          = array();
    
$current_opname 'op'// does not matter, it isn't there
}


The difference between chrome, firefox and explorer, edge is that (after submit basic registration) is that $_POST is empty (chrome/firefox) and populated (explorer, edge). Therefore basic registration POST variables are not set, leading to reload of basic registration page.

I do see the POST message with correct variables in FF debug console / network.

Regards;
Bill



18
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/18 16:47

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


same behavior FF 70.0.1



19
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/17 21:24

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


will take a bit longer to revert ff
get back to you



20
rossb
Re: New users: cannot register with firefox, chrome, can with explorer
  • 2019/12/17 21:13

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Advanced tracking on:
FF reports no trackers; this site. Same deal keeps returning to basic registration page.
Advanced tracking off: Same deal keeps returning to basic registration page.

Not it

Regards;
Bill




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



Login

Who's Online

199 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 199


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