1
Zirafka
Xoops and lists
  • 2019/10/14 10:22

  • Zirafka

  • Just popping in

  • Posts: 70

  • Since: 2008/8/9 1


Find file li.php on XOOPSROOT/CLASS/TEXTSANITIZER/LI directory and open it with editor.

Find this section:

public function load($ts) 
    { 
        
$ts->patterns[]     = "/[li](.*)[/li]/sU"; 
        
$ts->replacements[] = 'reverse slash 1'; 

        return 
true; 
    }

and add two rows:

{ 
        
$ts->patterns[]     = "/[li](.*)[/li]/sU"; 
        
$ts->replacements[] = '<li>1</li>'; 
         
        
$ts->patterns[] = "/[li=(.*)](.*)[/li]/sU"; 
        
$ts->replacements[] = '< li type=" reverse slash 1 " > reverse slash 2 < / li >';         

        return 
true; 
    }

Find file style.css on THEMES dirctory and open it with editor.

Find rows this rows

ul { margin: 2px; padding: 2px; list-style: decimal inside; text-align: left;}  
li { margin-left: 2px; list-style: square inside; color: #2F5376}

and edit, or delete, parameter "list-style" (delete word "decimal" and "square").

Thats all :)

XOOPS can now use unordered and various ordered lists.

Demo: https://www.zirafoviny.cz/modules/news/article.php?storyid=700 or https://translate.google.com/translate?sl=cs&tl=en&u=https%3A%2F%2Fwww.zirafoviny.cz%2Fmodules%2Fnews%2Farticle.php%3Fstoryid%3D700

2
Mamba
Re: Xoops and lists
  • 2019/10/15 6:38

  • Mamba

  • Moderator

  • Posts: 11551

  • Since: 2004/4/23


That looks very interesting!

Thank you for sharing!
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs