Now that we know what works, and what doesn't, I'll try to test both versions under XOOPS 2.5.10 and PHP 7, to see what is different and what needs to be changed.
Thank you for sharing your solution....
public function load($ts)
{
$ts->patterns[] = "/[li](.*)[/li]/sU";
$ts->replacements[] = 'reverse slash 1';
return true;
}
{
$ts->patterns[] = "/[li](.*)[/li]/sU";
$ts->replacements[] = '1 ';
$ts->patterns[] = "/[li=(.*)](.*)[/li]/sU";
$ts->replacements[] = '< li type=" reverse slash 1 " > reverse slash 2 < / li >';
return true;
}
ul { margin: 2px; padding: 2px; list-style: decimal inside; text-align: left;}
li { margin-left: 2px; list-style: square inside; color: #2F5376}
<{if !$xoops_isuser}>
<form method="post" action="<{xoAppUrl /user.php}>">
<input type="hidden" name="op" value="login"/>
<{$smarty.const._LOGIN}>
<input name="uname" type="text" /> <input name="pass" type="password"/>
<input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />
<{if $lang_siteclosemsg}>
<input type="hidden" name="xoops_login" value="1" />
<{/if}>
<button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" /$
<{if !$lang_siteclosemsg}>
+ <a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smar$
<{/if}>
form>
<{else}>
<{if !$xoops_isuser}>
<form method="post" action="<{xoAppUrl /user.php}>">
<input type="hidden" name="op" value="login"/>
...
<{if !$xoops_isuser}>
<input type="hidden" name="op" value="login"/>
<{$smarty.const._LOGIN}>
<input name="uname" type="text" /> <input name="pass" type="password"/>
<input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />
<{if $lang_siteclosemsg}>
<input type="hidden" name="xoops_login" value="1" />
<{/if}>
<button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" />button>
<{if !$lang_siteclosemsg}>
+ <a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smarty.const._REGISTER}>a>
<{/if}>
form>
<{else}>