Not logged in. · Lost password · Register
Page:  1  2  next 

All posts by xrat (21)

topic: NasheRodnoe removed all main pages - wtf?  in the forum: Community dokuwiki.org
Avatar
xrat #1
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
Thanks. What about https://www.dokuwiki.org/xmlrpc ?
topic: NasheRodnoe removed all main pages - wtf?  in the forum: Community dokuwiki.org
Avatar
xrat #2
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
Subject: NasheRodnoe removed all main pages - wtf?
Who is NasheRodnoe and why did s/he remove all main pages of the Wiki:

From https://www.dokuwiki.org/privacy?do=recent

privacy 2019-10-25 15:08  – removed NasheRodnoe -5.5 KB
changes 2019-10-25 15:03  – removed NasheRodnoe -6.6 KB
manual 2019-10-25 15:02  – removed NasheRodnoe -3.9 KB
install 2019-10-25 15:02  – removed NasheRodnoe -7.5 KB
blogroll 2019-10-25 15:02  – removed NasheRodnoe -1.9 KB
development 2019-10-25 15:02  – removed NasheRodnoe -4.9 KB
faq:support 2019-10-25 15:01  – removed NasheRodnoe -2 KB
extensions 2019-10-25 15:01  – removed NasheRodnoe -1.3 KB
features 2019-10-25 14:59  – removed NasheRodnoe -2 KB
mailinglist 2019-10-25 14:59  – removed NasheRodnoe -4.4 KB
xmlrpc 2019-10-25 14:58  – NasheRodnoe -493 B
ru:wiki:syntax 2019-10-25 14:55  – удалено NasheRodnoe -28.5 KB
topic: Besteht für ein Wiki Handlungsbedarf nach DSGVO?  in the forum: Non-English Discussion German discussion
Avatar
xrat #3
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 61094
@LarsDW223 Kenn mich da nicht aus (und will auch gar nicht). Ich glaub, bei Abmahnungen geht's um Wettbewerbsrecht und dergleichen. Das wäre ein anderes Gesetz, und DSGVO findet gar keine Anwendung (abgesehen davon, dass abgemahnt wird, weil sie nicht oder nicht richtig eingehalten wurde und deshalb ein Wettbewerbsvorteil entstand).
topic: Simplified Adora Belle template [hack]  in the forum: General Help and Support Templates and Layout
Avatar
xrat #4
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
Subject: Simplified Adora Belle template [hack]
I wanted to see how much I could simplify the new Adora Belle default template "dokuwiki" [https://www.dokuwiki.org/template:dokuwiki] by minimal hacks. Mostly I wanted to reduce the whitespace of the header and to simplify the overall look and feel.

[Image: http://imagizer.imageshack.us/v2/280x200q90/27/6lvj.jpg] [Image: http://imagizer.imageshack.us/v2/280x200q90/132/yv3r.jpg]

Screenshots:

I started off by hiding the pageId and removing some whitespace:
  1. div.dokuwiki div.pageId { display: none; }
  2. #dokuwiki__header { padding-bottom: 0.1em; }
  3. #dokuwiki__header .headings, #dokuwiki__header .tools { margin-bottom: 0.6em; }

But then I decided to move the user and site tools completely to the super nice page tools hover panel. For this I had to delete the respective lines in tpl_header.php (the whole <div id="dokuwiki__usertools">...</div> and the tpl_action(...) lines for recent, media, and index.

The remove tpl_action(...) lines, I added to main.php:
  1. 'recent'    => tpl_action('recent',    1, 'li', 1, '<span>', '</span>'),
  2. 'media'     => tpl_action('media',     1, 'li', 1, '<span>', '</span>'),
  3. 'index'     => tpl_action('index',     1, 'li', 1, '<span>', '</span>'),
  4. 'profile'   => tpl_action('profile',   1, 'li', 1, '<span>', '</span>',
  5. '<bdi>'.hsc($INFO['userinfo']['name']).'</bdi> (<bdi>'.hsc($_SERVER['REMOTE_USER']).'</bdi>)'),
  6. 'admin'     => tpl_action('admin',     1, 'li', 1, '<span>', '</span>'),
  7. 'login'     => tpl_action('login',     1, 'li', 1, '<span>', '</span>'),

Fortunately, this works without the need to add CSS and icons. A default icon is shown. However, I also tried modifying pagetools-sprite.png. Since I am allergic to blue I had to change it anyway. There's images/pagetools-build.php which is meant to create the sprite (thanks for including this). Unfortunately, on my servers it bails out with
PHP Fatal error:  Call to undefined function imagelayereffect()
So, I hacked pagetools-sprite.png manually: http://imageshack.com/a/img854/2715/nky7.png ... not a great job, but might be of use for people who prefer orange  :-D

The rest is CSS included in userstyle.css:
  1. /* preserve some whitespace on top of the page */
  2. div.dokuwiki div.pageId { display: none; }
  3. #dokuwiki__header { padding-bottom: 0.1em; }
  4. #dokuwiki__header .headings, #dokuwiki__header .tools { margin-bottom: 0.6em; }
  5. #dokuwiki__header { padding-top: 1.1em; }
  6. #dokuwiki__header h1 { padding-bottom: .5em; }
  7. /* icons for the tool bar (pagetools) */
  8. #dokuwiki__pagetools ul li a.media { background-position: right -990px; }
  9. #dokuwiki__pagetools ul li a.media:before { margin-top: -990px; }
  10. #dokuwiki__pagetools ul li a.media:hover,
  11. #dokuwiki__pagetools ul li a.media:active,
  12. #dokuwiki__pagetools ul li a.media:focus { background-position: right -1035px; }
  13. /* ... */
topic: Does DW's Javascript break bookmarklets? (Several bookmarklets show the error "textArea is undefined")  in the forum: General Help and Support Features and Functionality
Avatar
xrat #5
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 33010
Looks like I eventually resolved this: DW's Javascript conflicts with function ''window.getselection()''. However, apparently it can be safely replaced by ''document.getSelection()'', e.g. as suggested by https://www.dokuwiki.org/plugin:dokubookmark, tested with IE, FF, and Chrome in the previous and current version of DW.
topic: Does DW's Javascript break bookmarklets? (Several bookmarklets show the error "textArea is undefined")  in the forum: General Help and Support Features and Functionality
Avatar
xrat #6
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
Subject: Does DW's Javascript break bookmarklets?
Hi there,
Some bookmarklets do not work when I am on a DW page. If I change to non-DW page, they work as expected. One example bookmarklet is "Press This" from Wordpress. Another one is NoteIt.
The Firefox Javascript console shows the error "textArea is undefined".

If I am not mistaken this is/could be related to
function getSelection(textArea)
from lib/scripts/textselection.js.

"getSelection" is defined in Javascript. Is it safe to re-define it as DW does? Or is the error of the bookmarklet indeed related?
topic: Cache maintenance  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #7
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 25347
Since we received no further feedback and benjamin and I have been running our DokuWikis for some time now, I have updated the script at http://www.dokuwiki.org/tips:maintenance to reflect the recent discussion, i.e. we do not only remove empty directories in "$conf['savedir']/pages/" but also in all the other directories.

However, I have chosen an approach which is a bit safer than the one suggested above. So, the new "find" now is
find "$1"/{attic,cache,index,locks,media,meta,pages,tmp}/ \
    -mindepth 1 -type d -empty -print0 | xargs -0r rmdir

In order to make this work I had to change "#!/bin/sh" to "#!/bin/bash". (I assume that if someone really needs a Non-Bash shell they probably know how to rewrite the "find" line.)
topic: Cache maintenance  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #8
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 25344
Quote by benjamin:
Removing empty directories from within "attic" is no problem. (...)

Well, it's a problem in fact because if this directory (attic) is removed, we can't access to our wiki (we just have an error and a white page) and so we can't update the wiki anymore :)

That's why I wrote "within" :) and the "-mindepth 2" should take care of not removing "attic" itself.
topic: Cache maintenance  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #9
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 25341
Oops :-| But thanks for testing :)

I looked at my wiki installations again: I don't think that it is particularly important to remove empty directories but some of my wikis do have some leftovers. They don't hurt but I personally prefer to have them removed.

However, we should at least exclude all top level directories like with
  find "$1"/ -mindepth 2 -type d -empty -print0 | xargs -0r rmdir

Removing empty directories from within "attic" is no problem. They are recreated when the namespace is updated.
topic: Cache maintenance  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #10
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 25105
I don't know much about DW insides. However, after listing the empty directories of 2 of my larger installations it seems that
  - Empty directories do pile up (mostly in ''attic''). And:
  - It's safe to remove them with the exception of ''tmp''.

I hope Andreas can confirm this. Then we should change the maintenance wiki page.
topic: man.cx is down, what happened? (http://man.cx/ etc. show only 403 Forbidden)  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #11
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 23734
Thanks a lot for the resurrection!
topic: man.cx is down, what happened? (http://man.cx/ etc. show only 403 Forbidden)  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #12
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
Subject: man.cx is down, what happened?
The server http://man.cx/ is the default interwiki.conf entry for [[man>]] but since recently every request, even http://man.cx , only shows "Forbidden". What happened to the server? Do we have to change our interwiki.conf files? What are alternatives?
topic: Cache maintenance  in the forum: General Help and Support Installation and Configuration
Avatar
xrat #13
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 22271
I have now overhauled the http://www.dokuwiki.org/tips:maintenance page, also adding stuff for cache maintenance, of course. HTH.
topic: Warning sign for fullpath  in the forum: General Help and Support Features and Functionality
Avatar
xrat #14
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 22316
Bug report created: http://bugs.splitbrain.org/index.php?do=details&task_i…
topic: Warning sign for fullpath  in the forum: General Help and Support Features and Functionality
Avatar
xrat #15
Member since Nov 2009 · 21 posts · Location: Vienna, Austria
Group memberships: Members
Show profile · Link to this post
In reply to post ID 22300
Yes, of course. But I am not looking for a solution to a specific installation. I wanted to suggest a (minor) general improvement of DW.
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  next 
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-27, 19:33:47 (UTC +01:00)