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[] = '
  • 1
  • '

             
            
    $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?sl=cs&tl=en&u=https%3A%2F%2Fwww.zirafoviny.cz%2Fmodules%2Fnews%2Farticle.php%3Fstoryid%3D700



    2
    Zirafka
    Error in module "xoopspoll" version 1.4.
    • 2016/12/30 20:58

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    In module XOOPSPOLL is error on file TEMPLATES/XOOPSPOLL_BLOCK_SINGLEPOLL.TPL. This error create wrong link to comments.

    How to repair?

    Find:

    89  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'><{$block.comments}> <{$block.langComment}>a>
    90  <{ elseif ($block.comments 1)}>
    91  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'><{$block.comments}> <{$block.langComments}>a>
    92  <{ else}>
    93  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'><{$block.langComments}>


    and change to:

    89  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$block.id}>'><{$block.comments}> <{$block.langComment}>a>
    90  <{ elseif ($block.comments 1)}>
    91  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$block.id}>'><{$block.comments}> <{$block.langComments}>a>
    92  <{ else}>
    93  <a href='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$block.id}>'><{$block.langComments}>


    That is all :)



    3
    Zirafka
    Re: Upgrade from 2.5.7.2 to 2.5.8.
    • 2016/10/16 20:50

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Thanks for the inspiration Mamba :)

    Table sess_ip was setting to varchar(15). After change to varchar(32) all ok and upgrade finished on cca 10 seconds



    4
    Zirafka
    Re: Upgrade from 2.5.7.2 to 2.5.8.
    • 2016/10/16 18:23

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Thank you. I tried to change the setting to "error_reporting (-1);" but the result is the same.
    I tried to delete cookies, the result is the same.
    I tried the procedure in Firefox, the result is the same.
    The update script does not write any errors.

    http://www.zirafoviny.cz functional web
    directory http://www.zirafoviny.cz/_test is directory for testing.

    After the update files, I can not log into the system. It's the same result as updates.



    5
    Zirafka
    Upgrade from 2.5.7.2 to 2.5.8.
    • 2016/10/16 6:48

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    I want upgrade my XOOPS site from version 2.5.7.2 to 2.5.8. But have problem with login as administrator. I wrote name and password, click to login button and page si redirecting back.

    Information from XOOPS:
    XOOPS version XOOPS 2.5.7.2
    PHP version 5.5.34
    MySQL version
    Server apache2handler
    OS Linux
    safe_mode Off
    register_globals Off
    magic_quotes_gpc Off
    allow_url_fopen On
    fsockopen On
    post_max_size 100M
    max_input_time 60
    output_buffering 4096
    max_execution_time 30
    memory_limit 128M
    file_uploads On
    upload_max_filesize

    Information from PHP MyAdmin:

    MySQL

    Server: Localhost via UNIX socket
    MySQL version: 5.1.73-0ubuntu0.10.04.1-log
    Protocol version: 10
    User: zirafoviny@localhost
    Character set v MySQL: UTF-8 Unicode (utf8)

    Webserver

    Apache/2.2.14 (Ubuntu)
    MySQL client: 5.1.73
    PHP extension: mysqli

    Resized Image

    First load of upgrade script (http://chaoz.zirafoviny.cz/_hic_sunt_leones/pro_xoops/xoops_upgrade_01.gif).

    Resized Image

    After click to login button (http://chaoz.zirafoviny.cz/_hic_sunt_leones/pro_xoops/xoops_upgrade_02.gif).

    Resized Image

    Xoops administration page (http://chaoz.zirafoviny.cz/_hic_sunt_leones/pro_xoops/xoops_upgrade_03.gif).

    On my "test server" on local computer it´s all ok. Upgrade run pas with cca 30 seconds. But on my local computer working WAMP server.

    Any ideas what´s wrong? Thank you :)



    6
    Zirafka
    Re: Images width
    • 2015/6/28 10:12

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Thank you very much :)

    On IE 8 is all ok. IE 11 I will be tested on monday.

    I put the data into the file "styleIE8.css", because Opera and Firefox show images correctly.



    7
    Zirafka
    Re: Images width
    • 2015/6/28 4:53

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Sorry, I forgot. Mea culpa.

    I tested on my home computer with Windows XP + IE 8 and on friend computer with Windows 7 + IE 11. Problem is same.

    May be a problem with IE settings?



    8
    Zirafka
    Images width
    • 2015/6/26 19:21

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    I have problem with images width on Microsoft Internet Explorer.

    On Fire Fox and Opera is all ok, but MIE do not respect maximum width of images. Like this (http://www.zirafoviny.cz/modules/news/article.php?storyid=204):

    Resized Image
    Opera


    Resized Image
    Firefox


    Resized Image
    Microsof Internet Explorer


    Green header meaning that user is logged. On older versions of Xoops MIE respect maximum width and resize bigger images.

    Theme: modified theme BlueX.

    XOOPS: XOOPS 2.5.7.1
    PHP: 5.3.2-1ubuntu4.30
    mySQL: 5.1.73-0ubuntu0.10.04.1-log
    Server: apache2handler
    OS: Linux
    safe_mode Off
    register_globals Off
    magic_quotes_gpc Off
    allow_url_fopen On
    fsockopen On
    post_max_size 100M
    max_input_time 60
    output_buffering 4096
    max_execution_time 30
    memory_limit 128M
    file_uploads On
    upload_max_filesize 100M



    9
    Zirafka
    Re: ImageManager and group permissions
    • 2015/5/23 14:15

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Problem is not in imagemanager, but in database.

    /modules/system/admin.php?fct=groups do not write permission to database.

    I don´t know why :-/



    10
    Zirafka
    Re: ImageManager and group permissions
    • 2015/5/23 3:47

    • Zirafka

    • Just popping in

    • Posts: 70

    • Since: 2008/8/9 1


    Edit anonymous group - OK, but without effect

    Smarty Debug Console

    included templates 
    config files (load time in seconds)
    db:system_imagemanager.html (0.00061) (total

    assigned template variables
    {$SCRIPT_NAME}    /imagemanager.php
    {$cat_options}    <option value="0" selected="selected"...
    {
    $lang_add}    Přidat
    {$lang_align}    Zarovnání
    {$lang_close}    Zavřít okno
    {$lang_go}    Provést
    {$lang_imgmanager}    Správce obrázků
    {$show_cat}    0
    {$sitename}    Žirafoviny.cz
    {$target}    com_text
    {$xoops_charset}    UTF-8
    {$xoops_langcode}    cs
    {$xoops_rootpath}    /home/zirafoviny/html
    {$xoops_upload_url}    http://www.zirafoviny.cz/uploads
    {$xoops_url}    http://www.zirafoviny.cz
    {$xoops_version}    XOOPS 2.5.7.1
    {$xsize}    1000
    {$ysize}    700

    assigned config file variables 
    (outer template scope)
    {
    #files#}    Array (0)
    {#vars#}    Array (0)




    TopTop
    (1) 2 3 4 5 »



    Login

    Who's Online

    214 user(s) are online (130 user(s) are browsing Support Forums)


    Members: 0


    Guests: 214


    more...

    Donat-O-Meter

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

    Latest GitHub Commits