xoops forums

Zirafka

Just popping in
Posted on: 10/14 10:22
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#1

Xoops and lists

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 margin2pxpadding2px; list-styledecimal insidetext-alignleft;}  
li margin-left2px; list-stylesquare insidecolor#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 ... ticle.php%3Fstoryid%3D700

Mamba

Moderator
Posted on: 10/15 6:38
Mamba
Mamba (Show more)
Moderator
Posts: 10798
Since: 2004/4/23
#2

Re: Xoops and lists

That looks very interesting!

Thank you for sharing!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs