xoops forums

Forum Index


Board index » All Posts (Zirafka)




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


Zirafka

Just popping in
Posted on: 2016/12/30 20:58
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#2

Error in module "xoopspoll" version 1.4.

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 :)


Zirafka

Just popping in
Posted on: 2016/10/16 20:50
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#3

Re: Upgrade from 2.5.7.2 to 2.5.8.

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


Zirafka

Just popping in
Posted on: 2016/10/16 18:23
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#4

Re: Upgrade from 2.5.7.2 to 2.5.8.

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.

www.zirafoviny.cz functional web
directory 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.


Zirafka

Just popping in
Posted on: 2016/10/16 6:48
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#5

Upgrade from 2.5.7.2 to 2.5.8.

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_ ... oops/xoops_upgrade_01.gif).

Resized Image

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

Resized Image

Xoops administration page (http://chaoz.zirafoviny.cz/_hic_sunt_ ... oops/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 :)


Zirafka

Just popping in
Posted on: 2015/6/28 10:12
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#6

Re: Images width

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.


Zirafka

Just popping in
Posted on: 2015/6/28 4:53
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#7

Re: Images width

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?


Zirafka

Just popping in
Posted on: 2015/6/26 19:21
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#8

Images width

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


Zirafka

Just popping in
Posted on: 2015/5/23 14:15
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#9

Re: ImageManager and group permissions

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 :-/


Zirafka

Just popping in
Posted on: 2015/5/23 3:47
Zirafka
Zirafka (Show more)
Just popping in
Posts: 67
Since: 2008/8/9 1
#10

Re: ImageManager and group permissions

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 »