rocking-minds.org

// DokuWiki template: new version of Scanlines

I just released updated version of Scanlines. Scanlines is now a responsive Dokuwiki template. That means you can use Scanlines with almost every technical device:

  • Desktop Computer
  • Laptop
  • Netbook
  • Tablet PC
  • Smartphone

Scanlines is also compatible to “Angua”. Enjoy it ;-)


Comments

Harumitsu YOSHITAKE
No. 1 @ 2012/02/28 03:46

Thank you for your great template. It's very useful. But…

I am Japanese, and usually use Lang setting to “ja”. I used dokuwiki-2012-01-25 with 2011-05-25_scanlines and works fine. But I have a problem with 2012-01-04_scanlines.

When I select 'tpl→scanlines→logo' as text, Wiki title(Japanese character) does not appear at the top of dokuwiki screen. And 'tpl→scanlines→logo_yourdefinition' also does not appear on the dokuwiki screen.

I tried some settings and have found that Wiki title must be ASCII characters in 2012-01-04_scanlines.

I really appreciate if you could sort out and fix this problem.

Johannes Winkler
No. 2 @ 2012/03/03 23:26

Hey Harumitsu, Thanks. I'm sorry about that bug. :( I understand your problem. I found out whats wrong, but the new release which includes customizing (just like http://www.dokuwiki.org/template:mnml-blog#customizing) isn't finished.

So it's better if you fix the bug yourself. The problem was, that I (code based on artic template) defined only ASCII alphabetic characters (a-z). It's better to define just string, so you can insert any string you want. :)

Open Scanlines in <lib/tpl/scanlines/conf/metadata.php> and replace the whole content with the following code:


<?php
/**
 * Default configuration for the arctic template
 * 
 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author  Michael Klier <chi@chimeric.de>
 * @author	Johannes Winkler <johannes@rocking-minds.org>
 */

$meta['sidebar']                       = array('multichoice', '_choices' => array('left', 'right', 'none'));
$meta['pagename']                   	= array("string");
$meta['main_sidebar_always']	    	   = array('onoff');
$meta['user_sidebar_namespace']   	   = array("string");
$meta['group_sidebar_namespace']  	   = array("string");
$meta['left_sidebar_order']       	   = array("string");
$meta['left_sidebar_content']     	   = array('multicheckbox', '_choices' => array('main','toc','user','group','namespace','toolbox','index','trace','extra'));
$meta['right_sidebar_order']     	   = array("string");
$meta['right_sidebar_content']   	   = array('multicheckbox', '_choices' => array('main','toc','user','group','namespace','toolbox','index','trace','extra',));
$meta['closedwiki1']             	   = array('onoff');
$meta['closedwiki2']             	   = array('onoff');
$meta['hideactions']             	   = array('onoff');
$meta['userbar']              	  	   = array('onoff');
$meta['sitemap']              	      = array('onoff');
$meta['logo']                          = array('multichoice', '_choices' => array('image', 'text'));
$meta['logo_image']                    = array("string");
$meta['logo_yourdefinition']           = array("string");
$meta['logo_yourname']               	= array("string");
$meta['navibutton1']          	    	= array("string");
$meta['navibutton2']          	    	= array("string");
$meta['navibutton3']                   = array("string");
$meta['navibutton4']                   = array("string");
$meta['navibutton5']                   = array("string");
$meta['navibutton6']                   = array("string");
$meta['top_link']              	  	   = array('onoff');

?>
Harumitsu YOSHITAKE
No. 3 @ 2012/03/07 03:40

@Johannes Winkler: Hi, Johannes. Thanks for your reply. I tried this metadata.php without success. Japanese characters still does not appear. I wonder if metadata.php did not change from 2011-05-25_scanlines to 2012-01-04_scanlines?? I've found an Japanese Web page mentioned this bug, which is pointing out “some function does not pass Japanese character!?”.

By the way, I use 2011-05-25_scanlines with some modifications. I narrow Logo area and widen main area . So if you are trying new version, I personally hope an new parameter of area size.

Johannes Winkler
No. 4 @ 2012/03/12 18:24

@Harumitsu YOSHITAKE: Hi, Perhabs it would be usefull if you try out 2011-05-25_scanlines… If it still works there must be something wrong in 2012-01-04_scanlines.

Do you mean a new parameter for Configuration Settings - Template Settings? You know, there are so many settings which can be useful somehow, but that's too much for Dokuwiki. If you want to personalize a DW template, you will not come around edit some css- or html-Code. DW isn't the software you install and you can do everything at the Configuration Manager. You always have to edit some code. Especially for temlates. Templates are important, they are the interface beetween Dokuwiki and the users. At the moment, there aren't the opportunities in Dokuwiki to create a template which is userfriendly and complex as they are for example in Wordpress.

(http://www.elmastudio.de/wp-content/uploads/2011/04/yoko-wordpress-theme-12.jpg)

With scanlines, you can do a lot of things in the template configuration. For example adding some navibuttons or style your own logo. That's »all« you need, normally. But if you want more, you have to edit code.

Harumitsu YOSHITAKE
No. 5 @ 2012/03/24 01:46

@Johannes Winkler: Hi. I've sorted out this problem. I've cut off the following lines from main.php in 2012-01-04_scanlines and Japanese characters appears fine in the logo area :-)

<script type=“text/javascript”> Cufon.replace('div.logo h1', { fontFamily: 'Limelight', color: '-linear-gradient(#55616c, 0.45=#8b97a2, 0.45=#7e8b98, #55616c)' }); Cufon.replace('div.logo h2', { fontFamily: 'Aclonica', color: '-linear-gradient(#55616c, #8b97a2)' }); </script>

In the end, it is not a bug but the font problem. If you add sans-serif to fontfamily as fail-safe, it might be better. Sorry for bothering you.

Johannes Winkler
No. 6 @ 2012/03/26 17:24

@Harumitsu YOSHITAKE: Hi, I'm happy that you found out why it doesn't work. I had a lot of problems with cufón (http://cufon.shoqolate.com/generate/) before. But at the moment its the best way to use fancy fonts (for every browser, included IE6…). You can also use an image as a logo, sometimes it's better, there aren't any rendering problems and problems with browser compatibility.

»Sorry for bothering you.« You do not have to feel sorry about it, I'm happy about [almost] any review.

Have fun with Scanlines!

Leave a comment…



EMKOQ
  • E-Mail address will not be published.
  • Formatting:
    //italic//  __underlined__
    **bold**  ''preformatted''
  • Links:
    [[http://example.com]]
    [[http://example.com|Link Text]]
  • Quotation:
    > This is a quote. Don't forget the space in front of the text: "> "
  • Code:
    <code>This is unspecific source code</code>
    <code [lang]>This is specifc [lang] code</code>
    <code php><?php echo 'example'; ?></code>
    Available: html, css, javascript, bash, cpp, …
  • Lists:
    Indent your text by two spaces and use a * for
    each unordered list item or a - for ordered ones.
Hello World!
Blogging with DokuWiki and mnml-blog... rules!
QR Code: URL of current page
Syndiaction/RSS Feed
Recent Comments