DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:usercss

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:usercss [2010-11-19 00:04] – [Discussion] 152.137.71.222plugin:usercss [2023-12-21 15:44] (current) – new download url Aleksandr
Line 1: Line 1:
-====== usercss plugin ======+====== UserCSS Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: edit CSS styles directly from within a wikipage +description: Edit CSS styles directly from within a wikipage 
 author     : Randolf Rotta author     : Randolf Rotta
 email      : rrotta@informatik.tu-cottbus.de email      : rrotta@informatik.tu-cottbus.de
Line 13: Line 13:
 tags       : style, editing tags       : style, editing
  
-downloadurl: http://studiy.tu-cottbus.de/~rrotta/_media/projects:dokuwiki:usercss.zip?id=projects%3Adokuwiki%3Ausercss+downloadurl: https://trello.com/1/cards/5d502a49d1fa7d891295dcdf/attachments/5d502a67c140b94371263cb0/download/usercss.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 + 
 +screenshot_img: 
 ---- ----
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually. +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- +
-  * {{http://studiy.tu-cottbus.de/~rrotta/_media/projects:dokuwiki:usercss.zip?id=projects%3Adokuwiki%3Ausercss|usercss.zip}}+
  
 In addition two event hooks have to be inserted into ''lib/exe/css.php''. The first change is in the function ''css_out()'' in order to append the data to the output: In addition two event hooks have to be inserted into ''lib/exe/css.php''. The first change is in the function ''css_out()'' in order to append the data to the output:
Line 55: Line 58:
  
     // now walk the files     // now walk the files
 +</code>
 +
 +Patch location in Binky:
 +
 +<code php>
 +    // cache influencers
 +    $tplinc = tpl_basedir($tpl);
 +    $cache_files = getConfigFiles('main');
 +    $cache_files[] = $tplinc.'style.ini';
 +    $cache_files[] = $tplinc.'style.local.ini'; // @deprecated
 +    $cache_files[] = DOKU_CONF."tpl/$tpl/style.ini";
 +    $cache_files[] = __FILE__;
 +
 +    //>>>>>> ask for further files to check : usercss plugin
 +    trigger_event('TPL_CSS_CACHEOK', $files);
 +    //<<<<<<
 </code> </code>
  
Line 230: Line 249:
 Can someone give an example of how this works?  I followed the instructions as closely as I could and it seems to do nothing. Can someone give an example of how this works?  I followed the instructions as closely as I could and it seems to do nothing.
  
-1. Installed the plugin via plugin manager. +  - Installed the plugin via plugin manager. 
-2. Created a page called usercss and put this in it: +  Created a page called usercss and put this in it:<code><code css>
-%%<code css>+
 div.dokuwiki h1 { div.dokuwiki h1 {
  border-bottom: 25px solid #eddcad;  border-bottom: 25px solid #eddcad;
  font-size: 170%;  font-size: 170%;
 } }
-</code>%% +</code> 
-3. Reloaded a page that uses the h1 tag expecting to see a big 25 pixel bottom border, but there was no change to the h1 tag.+  Reloaded a page that uses the h1 tag expecting to see a big 25 pixel bottom border, but there was no change to the h1 tag.
  
 +> Please look at [[plugin:usercss#download_and_installation]]. There you can see that you have to do two changes in the file ''lib/exe/css.php'' --- [[user>mja|Moni]] //2012/10/23 16:38//
plugin/usercss.1290121499.txt.gz · Last modified: 2010-11-19 00:04 by 152.137.71.222

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki