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

All posts by Wolfgang_F. (24)

topic: Monobook template (Special pages)  in the forum: General Help and Support Templates and Layout
Avatar
Wolfgang_F. #1
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
Have a look at http://tatewake.com/wiki/wiki:talk:projects:monobook_for_d…

There I posted my changes in the template-code. I think it will help you to control Special- and Normal-Pages.

Wolfgang
topic: [SOLVED] Remove bracket in footnote marks  in the forum: General Help and Support Templates and Layout
Avatar
Wolfgang_F. #2
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5642
Hi,
I removed that bracket in my wiki.

You will have to edit the file "inc/parser/xhtml.php"
Look for "function document_end()" - somewhere around line 50
In this function you will find

$this->doc .= $id.') </a> '.DOKU_LF;
and some lines below
$this->doc .= ($ref+1).')</a>  '.DOKU_LF;

Just delete the right bracket before "</a>"

and  - if you don't like the footnote-bracket inside your text - look for "function footnote_close()" - around line 274
here you will find
$this->doc .= '<a href="#fn__'.$id.'" name="fnt__'.$id.'" id="fnt__'.$id.'" class="fn_top">'.$id.')</a>';
just delete the right bracket before "</a>" again.

It's some time ago, that I made these changes, but I think that was all, what I did to remove the bracket.

Wolfgang
topic: Erster Buchstaben von Namensräumen groß?  in the forum: Non-English Discussion German discussion
Avatar
Wolfgang_F. #3
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5215
Glückauf
Schau mal in diesen Thread: http://forum.dokuwiki.org/thread/495

Und schau Dir die dort zitierte Seite http://wiki.splitbrain.org/wiki:tips:titles_in_any_case an.

Ich bin zufrieden mit der Änderung, habe allerdings auch die Suche bei mir um einen Button verkürzt, damit keine Fehler entstehen.

Gruß
Wolfgang
topic: dokuwiki wird nicht von Suchmaschinen durchsucht (Google und andere Suchmaschinen erkennen den Inhalt (sites) nicht)  in the forum: Non-English Discussion German discussion
Avatar
Wolfgang_F. #4
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4625
Klar, drei Wochen sind lang - ich weiß nicht mehr, wie lange es gedauert hat, bis meine Seiten damals (vor einigen Jahren) in Google aufgenommen wurden, aber ich hab auch warten müssen. Mein Wiki ist jedenfalls schon drin, obwohl ich das noch gar nicht wollte, weil ich einen Link auf meiner HP darauf gesetzt hatte.

Hast Du eine Site, die schon gelistet ist? Externe Links sind hilfreich für Google. Google spidert neue Seiten recht zögerlich, Seiten, die selten geändert werden seltener und Seiten, die sich häufig ändern häufiger.

Gruß
Wolfgang
topic: Mark minor changes and new pages (Modification of /inc/html.php)  in the forum: General Help and Support Templates and Layout
Avatar
Wolfgang_F. #5
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
Subject: Mark minor changes and new pages
I modified my /inc/html.php to mark minor changes and new pages.

That way
  • minor changes are marked with a bold M if you look at recent changes or old revisions
  • if a page is new, "neu" (not "new" because my language is German) is displayed after summary in recent changes (maybe in lang.php a "new_page" entry would be a better idea) - my style "recent_new" looks that way:
.recent_new {
  color: #FF0000;
  line-height: 0.6em;
  font-size: 0.75em;
  position:relative;
  top:-7px;
  padding-left: 0.1em;
}


Have a look at http://www.heine-wiki.de/doku.php?do=recent
What do you think about it? Perhaps something like that should be included in one of the next DokuWiki-Releases (?)

The following code should be around line 420 - I don't know exactly because I have allready done some changes in my html.php
  1. /**
  2. * list old revisions
  3. *
  4. * @author Andreas Gohr <andi@splitbrain.org>
  5. * @author Ben Coburn <btcoburn@silicodon.net>
  6. */
  7. function html_revisions($first=0){
  8.  global $ID;
  9.  global $INFO;
  10.  global $conf;
  11.  global $lang;
  12.  /* we need to get one additionally log entry to be able to
  13.    * decide if this is the last page or is there another one.
  14.    * see html_recent()
  15.    */
  16.  $revisions = getRevisions($ID, $first, $conf['recent']+1);
  17.  if(count($revisions)==0 && $first!=0){
  18.     $first=0;
  19.     $revisions = getRevisions($ID, $first, $conf['recent']+1);;
  20.  }
  21.  $hasNext = false;
  22.  if (count($revisions)>$conf['recent']) {
  23.     $hasNext = true;
  24.     array_pop($revisions); // remove extra log entry
  25.  }
  26.  
  27.  $date = @date($conf['dformat'],$INFO['lastmod']);
  28.  
  29.  print p_locale_xhtml('revisions');
  30.  print '<ul>';
  31.  if($INFO['exists'] && $first==0){
  32.     print (isset($INFO['meta']) && isset($INFO['meta']['last_change']) && $INFO['meta']['last_change']['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>';
  33.     print '<div class="li">';
  34.  
  35.     print $date;
  36.  
  37.     print ' <img src="'.DOKU_BASE.'lib/images/blank.gif" width="15" height="11" alt="" /> ';
  38.  
  39.    /***********************  mark minor change  **************************************************/
  40.     print (isset($INFO['meta']) && isset($INFO['meta']['last_change']) && $INFO['meta']['last_change']['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<b>M</b> ' : '<img src="'.DOKU_BASE.'lib/images/blank.gif" width="17" height="11" alt="" />';
  41.    /**********************************************************************************************/
  42.  
  43.     print '<a class="wikilink1" href="'.wl($ID).'">'.$ID.'</a> ';
  44.  
  45.     print ' &ndash; ';
  46.  
  47.    /*********************** $lang['minoredit'] if summary is empty *******************************/
  48.    /**  print $INFO['sum']; changed line to: */
  49.     print (empty($INFO['sum']))?($lang['minoredit']):$INFO['sum'];
  50.    /**********************************************************************************************/
  51.  
  52.     print ' &ndash; ';
  53.     print ' <span class="user">';
  54.     print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):$INFO['editor'];
  55.     print '</span> ';
  56.  
  57.     print '('.$lang['current'].')';
  58.     print '</div>';
  59.     print '</li>';
  60.  }
  61.  
  62.  foreach($revisions as $rev){
  63.     $date = date($conf['dformat'],$rev);
  64.     $info = getRevisionInfo($ID,$rev,true);
  65.  
  66.     print ($info['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>';
  67.     print '<div class="li">';
  68.     print $date;
  69.  
  70.     if(@file_exists(wikiFN($ID,$rev))){
  71.       print ' <a href="'.wl($ID,"rev=$rev,do=diff").'">';
  72.       $p = array();
  73.       $p['src']    = DOKU_BASE.'lib/images/diff.png';
  74.       $p['width']  = 15;
  75.       $p['height'] = 11;
  76.       $p['title']  = $lang['diff'];
  77.       $p['alt']    = $lang['diff'];
  78.       $att = buildAttributes($p);
  79.       print "<img $att />";
  80.       print '</a> ';
  81.  
  82.    /***********************  mark minor changes  *************************************************/
  83.       print ($info['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<b>M</b> ' : '<img src="'.DOKU_BASE.'lib/images/blank.gif" width="17" height="11" alt="" />';
  84.    /**********************************************************************************************/
  85.  
  86.       print '<a class="wikilink1" href="'.wl($ID,"rev=$rev").'">'.$ID.'</a>';
  87.     }else{
  88.       print ' <img src="'.DOKU_BASE.'lib/images/blank.gif" width="15" height="11" alt="" /> ';
  89.       print $ID;
  90.     }
  91.  
  92.     print ' &ndash; ';
  93.  
  94.    /*********************** $lang['minoredit'] if summary is empty *******************************/
  95.    /**   print htmlspecialchars($info['sum']);  changed line to: */
  96.     print (empty($info['sum']))?($lang['minoredit']):htmlspecialchars($info['sum']);
  97.    /**********************************************************************************************/
  98.  
  99.     print ' &ndash; ';
  100.     print ' <span class="user">';
  101.     if($info['user']){
  102.       print $info['user'];
  103.     }else{
  104.       print $info['ip'];
  105.     }
  106.     print '</span>';
  107.  
  108.     print '</div>';
  109.     print '</li>';
  110.  }
  111.  print '</ul>';
  112.  
  113.  print '<div class="pagenav">';
  114.  $last = $first + $conf['recent'];
  115.  if ($first > 0) {
  116.     $first -= $conf['recent'];
  117.     if ($first < 0) $first = 0;
  118.     print '<div class="pagenav-prev">';
  119.     print html_btn('newer',$ID,"p",array('do' => 'revisions', 'first' => $first));
  120.     print '</div>';
  121.  }
  122.  if ($hasNext) {
  123.     print '<div class="pagenav-next">';
  124.     print html_btn('older',$ID,"n",array('do' => 'revisions', 'first' => $last));
  125.     print '</div>';
  126.  }
  127.  print '</div>';
  128.  
  129. }
  130.  
  131. /**
  132. * display recent changes
  133. *
  134. * @author Andreas Gohr <andi@splitbrain.org>
  135. * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net>
  136. * @author Ben Coburn <btcoburn@silicodon.net>
  137. */
  138. function html_recent($first=0){
  139.  global $conf;
  140.  global $lang;
  141.  global $ID;
  142.  /* we need to get one additionally log entry to be able to
  143.    * decide if this is the last page or is there another one.
  144.    * This is the cheapest solution to get this information.
  145.    */
  146.  $recents = getRecents($first,$conf['recent'] + 1,getNS($ID));
  147.  if(count($recents) == 0 && $first != 0){
  148.     $first=0;
  149.     $recents = getRecents($first,$conf['recent'] + 1,getNS($ID));
  150.  }
  151.  $hasNext = false;
  152.  if (count($recents)>$conf['recent']) {
  153.     $hasNext = true;
  154.     array_pop($recents); // remove extra log entry
  155.  }
  156.  
  157.  print p_locale_xhtml('recent');
  158.  print '<ul>';
  159.  
  160.  foreach($recents as $recent){
  161.     $date = date($conf['dformat'],$recent['date']);
  162.     print ($recent['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>';
  163.     print '<div class="li">';
  164.  
  165.     print $date.' ';
  166.     print '<a href="'.wl($recent['id'],"do=diff").'">';
  167.     $p = array();
  168.     $p['src']    = DOKU_BASE.'lib/images/diff.png';
  169.     $p['width']  = 15;
  170.     $p['height'] = 11;
  171.     $p['title']  = $lang['diff'];
  172.     $p['alt']    = $lang['diff'];
  173.     $att = buildAttributes($p);
  174.     print "<img $att />";
  175.     print '</a> ';
  176.  
  177.     print '<a href="'.wl($recent['id'],"do=revisions").'">';
  178.     $p = array();
  179.     $p['src']    = DOKU_BASE.'lib/images/history.png';
  180.     $p['width']  = 12;
  181.     $p['height'] = 14;
  182.     $p['title']  = $lang['btn_revs'];
  183.     $p['alt']    = $lang['btn_revs'];
  184.     $att = buildAttributes($p);
  185.     print "<img $att />";
  186.     print '</a> ';
  187.  
  188.    /***********************  mark minor changes  *************************************************/
  189.     print ($recent['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<b>M</b> ' : '<img src="'.DOKU_BASE.'lib/images/blank.gif" width="17" height="11" alt="" />';
  190.    /**********************************************************************************************/
  191.  
  192.     print html_wikilink(':'.$recent['id'],$conf['useheading']?NULL:$recent['id']);
  193.  
  194.    /***********************  mark new pages  *****************************************************/
  195.     print ($recent['type']===DOKU_CHANGE_TYPE_CREATE) ? '<span class="recent_new">[neu]</span>' : '';
  196.    /**********************************************************************************************/
  197.  
  198.    /***********************  $lang['minoredit'] if summary is empty ******************************/
  199.    /*  print ' &ndash; '.htmlspecialchars($recent['sum']);  changed line to:  */
  200.     print ' &ndash; ';
  201.     print (empty($recent['sum']))?($lang['minoredit']):htmlspecialchars($recent['sum']);
  202.    /**********************************************************************************************/
  203.  
  204.     print ' <span class="user">';
  205.     print ' &ndash; ';
  206.     if($recent['user']){
  207.       print $recent['user'];
  208.     }else{
  209.       print $recent['ip'];
  210.     }
  211.     print '</span>';
  212.  
  213.     print '</div>';
  214.     print '</li>';
  215.  }
  216.  print '</ul>';
  217.  
  218.  print '<div class="pagenav">';
  219.  $last = $first + $conf['recent'];
  220.  if ($first > 0) {
  221.     $first -= $conf['recent'];
  222.     if ($first < 0) $first = 0;
  223.     print '<div class="pagenav-prev">';
  224.     print html_btn('newer','',"p",array('do' => 'recent', 'first' => $first));
  225.     print '</div>';
  226.  }
  227.  if ($hasNext) {
  228.     print '<div class="pagenav-next">';
  229.     print html_btn('older','',"n",array('do' => 'recent', 'first' => $last));
  230.     print '</div>';
  231.  }
  232.  print '</div>';
  233. }
This post was edited 2 times, last on 2007-10-29, 20:11 by Wolfgang_F..
topic: dokuwiki wird nicht von Suchmaschinen durchsucht (Google und andere Suchmaschinen erkennen den Inhalt (sites) nicht)  in the forum: Non-English Discussion German discussion
Avatar
Wolfgang_F. #6
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4623
Geduld, Geduld!
Es kann einige Tage dauern, bis der Googlebot vorbeikommt. Es gibt kein Problem zwischen DokuWiki und Google.

Gruß
Wolfgang
topic: [SOLVED] Quoting from a book  in the forum: General Help and Support Syntax and Usage
Avatar
Wolfgang_F. #7
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4617
Quote by ach:
Quote by Wolfgang_F. on 2007-09-24, 20:48:
<div class="blockquote"><p>your text</p><p>with a paragraph above</p></div>

That would be an abuse ... Or at least, it's not semantically correct.

I think, the best way would be a syntax plugin. Either the bbcode (http://wiki.splitbrain.org/plugin:bbcode) or a new plugin.

You are right with that - but it was the first possibility I thought of to get a "blockquote-like-element" - some days later I made a Blockquote-Plugin (see code on http://www.heine-wiki.de/Playground ) to have a better way to deal with blockquotes.

Concerning the "abuse" of blockquotes for discussions:
I don't think blockquote shold be used to show quotations from a discussion
BLOCKQUOTE is for long quotations (block-level content) and Q is intended for short quotations (inline content) that don't require paragraph breaks.
that's what w3.org tells about it. In printmedia and Sciences, for example Literature, Social Sciences etc. blockquotes are used to mark quotations, that extend three lines of text, whereas short quotations are printed inside the paragraph.

To handle a discussionstructure, in my opinion, a specialized list-Syntax would be the better way  ;-)

Wolfgang
topic: Rolling text  in the forum: General Help and Support Plugins
Avatar
Wolfgang_F. #8
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4578
It may work, if you have html enabled in your wiki - but marquee does not belong to the html-standard (and I don't like this element).

If you do not want to allow html, you may write a little plugin to include marquee:
Look at http://www.heine-wiki.de/Playground
take the code of my Blockquote-Plugin and rename every (!) "blockquote" to "marquee" - instead of my <bq>some text</bq> you may use <mq>...</mq>

so function connectTo and function postConnect will be
    function connectTo($mode) {
      $this->Lexer->addEntryPattern('<mq>(?=.*\x3C/mq\x3E)',$mode,'plugin_marquee');
    }
 
    function postConnect() {
      $this->Lexer->addExitPattern('</mq>','plugin_marquee');
    }

 
and function render will be
    function render($mode, &$renderer, $data) {
        if($mode == 'xhtml'){
            if ($data[1] == DOKU_LEXER_ENTER){
                $renderer->doc .= '</p><marquee behavior="scroll" direction="right" loop="-1" truespeed>';
            } else if ($data[1] == DOKU_LEXER_UNMATCHED){
                $renderer->doc .= $renderer->_xmlEntities($data[0]);
            } else if ($data[1] == DOKU_LEXER_EXIT){
                $renderer->doc .= '</marquee><p>';
            }
            return true;
        }
        return false;
    }


It will not give you the possibility to change direction, speed etc. but it should work - I used code from http://wiki.splitbrain.org/plugin:inserted

Wolfgang
topic: why my H2 mark doesn't work after i use a css?  in the forum: General Help and Support Templates and Layout
Avatar
Wolfgang_F. #9
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4579
Is it possible that you forgot to close the div-shorthand? Headlines are not rendered within the brackets.

#cxie001[in my plugin-modification everything except headlines between the brackets will be rendered ]#

Wolfgang
topic: Link in der Baumstruktur ändern  in the forum: Non-English Discussion German discussion
Avatar
Wolfgang_F. #10
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4551
Scheint hier was ganz einfaches zu sein: Deine H1-Überschrift lautet auf der Seite ====== Sammlung von Artikeln zu diversen Themenbereichen ====== Machst Du daraus ein ====== Medizin ======, so wird auch die Überschrift auf Deine Navigationsseite übernommen - und das war es schon. Den alten Titel kannst Du ja als Untertitel von "Medizin" benutzen.

Ein Link auf die Seite ist hilfreich bei solchen Fragen  ;-)

Gruß
Wolfgang
topic: Formatting in fortune Plugin  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Wolfgang_F. #11
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
Subject: Formatting in fortune Plugin
A few days ago I began to play with http://wiki.splitbrain.org/plugin:fortune - it's really a nice addon to a wiki.

Is it possible to add a possibility of formatting the fortunecookies with DokuWiki-Sytax? I tried to change some lines in the code but I didn't have any success.

Wolfgang
topic: [SOLVED] Centering a DIV (A DIV containing one P with multiple IMGs)  in the forum: General Help and Support Templates and Layout
Avatar
Wolfgang_F. #12
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4362
Do you really use the modified div_shorthand to do this?

I tried
#il[{{wiki:images:pic1.jpg|}}{{wiki:images:pic2.jpg|}}]#
it works fine if I test it on my wiki - both images are centered.

I did not change anything in your stylesheet, so I tested with
.il p { display:table; margin:0 auto; }
.il img { float:left; }

See it working in my wiki: http://www.heine-wiki.de/Playground

Edit:
Oh, I've just realized that it works with Firefox but not with IE ...


Edit2:
Seems to work now with another Stylesheet - see my Playground



Wolfgang
This post was edited 2 times, last on 2007-10-17, 15:23 by Wolfgang_F..
topic: [SOLVED] Quoting from a book  in the forum: General Help and Support Syntax and Usage
Avatar
Wolfgang_F. #13
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4188
You are right it is an abuse of the BLOCKQUOTE tag using it for discussions. I changed the formatting of this tag in tpl/monobook/dokuwiki/doku.css (I'm using the monobook-template) to

blockquote {
  line-height: 1.5em;
  font-size: 94%;
  margin-top: 0.2em;
  margin-left: 3.5em;
  margin-right: 3.5em;
  margin-bottom: 0.5em;
}


That way blockquotes in my wiki (about a german author) look fine to me. But as you said: no way to use paragraphs.

Have a look at http://wiki.splitbrain.org/plugin:div_span_shorthand - I recently posted my modification of div_shorthand there (end of the page). You may create a class called "blockquote" (perhaps better to use another name for it) and use this syntax

#blockquote[your text

with a paragraph above]#


That will produce this HTML-Code:
<div class="blockquote"><p>your text</p><p>with a paragraph above</p></div>

The class "blockquote" should be defined in your css-file like that:

.blockquote {
  line-height: 1.5em;
  font-size: 94%;
  margin-top: 0.2em;
  margin-left: 3.5em;
  margin-right: 3.5em;
  margin-bottom: 0.5em;
}



I use for example a class "poem" to display poems properly.

Wolfgang
topic: change syntax  in the forum: General Help and Support Syntax and Usage
Avatar
Wolfgang_F. #14
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4043
Hi, I've had a similar problem and solved it right now. To change toolbar.php is the right way, but the toolbar is made by a JavaScript and this is cached. So you will have to erase the cached script -> just install the plugin CacheRevisionsEraser and erase the .js files with it. After that the scripts will be updated and your changes should work.

Wolfgang
topic: Namespace starting with capital letter (For example "Wiki" instead of "wiki")  in the forum: General Help and Support Features and Functionality
Avatar
Wolfgang_F. #15
Member since Jul 2007 · 24 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4088
Quote by andi:
Quote by dibe0014 on 2006-12-18, 17:31:
how can I use a namespace with a capital letter like in the example?

You can't. Namespaces have to be valid pagenames.

But it is possible as I mentioned above. See it working in a modified Monobook-Style at http://www.heine-wiki.de/. As far as I can see, everything except capital Ä, Ö or Ü works fine (this Problem seems to be a sideeffect of hacking /inc/HTTPClient.php and /inc/pageutils.php).

I admit, I don't understand why there has to be something like utf8_strtolower(...) or strtolower(...) - I think there must be a reason ...

In my opinion it would be better to deaccent capital letters without transforming them to lowercase and to let the user decide, if he wants to use namespaces, pagenames and headers in capital letters.

Wolfgang
This post was edited on 2007-09-14, 18:37 by Wolfgang_F..
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: 2019-06-27, 04:24:17 (UTC +02:00)