GithubHelp home page GithubHelp logo

dokuwiki_stars_plugin's Introduction

Dokuwiki Plugin Stars

Description The Stars plugin let you add an rating easily
Author Zahno Silvan
Email [email protected]
Type syntax
Lastupdate 2020-07-07
Tags rating, stars, stars2, skull, embed

Download

Versions

  • 2011-03-18
    • Initial version
  • 2012-01-10
    • Added negative rating for ? stars
  • 2012-09-25
    • Dark Glass Star Icon
    • Fixed Toolbar bug with Angua
  • 2012-10-22
    • Moved Repo to github
  • 2014-10-02
    • Added correct pluginename for autoupdate
    • Added ODT plugin export support by LarsDW223
    • Images are now resizable over the config menu
  • 2016-01-21
    • Added better compatibility to other plugins by kernam
  • 2016-09-02
    • Bugfix for Height adjustment by @borco
    • Bugfix for php 7.0 compatibility by @LarsGit223
  • 2018-04-01
    • Bugfix for register and handle method thanks to @sag1
    • Bugfix for php 7.0 compatibility by @LarsGit223
  • 2020-07-07
    • Bugfix for register and handle method thanks to @leperm

Syntax

Stars can be created with two methods:

  • With the Toolbarbutton Stars 1-5
  • With Syntax code as shown below
{{stars>num}}
{{stars>-1/5}}
{{stars>-5/5}}
{{stars>}}
{{stars>1/5}}
{{stars>2/5}}
{{stars>3/5}}
{{stars>4/5}}
{{stars>5/5}}
{{stars>5.5/7}}
{{stars>700/1000}}

star1 star2 star3

Thanks

Documentation

All documentation for the Stars Plugin is available online at:

2018 by Zahno Silvan [email protected]

dokuwiki_stars_plugin's People

Contributors

lepperm avatar lpaulsen93 avatar tschinz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

lepperm

dokuwiki_stars_plugin's Issues

incompatibility with plugin usermanager

Hi,

first of all thanks for your work creating this nice plugin. During testing it, I figured out that it is not really compatible with the plugin usermanager as both use the same varible DOKU_PLUGIN_IMAGES with different pathes. So when logged in I'm not able to see the stars. When not logged in everything works fine. Renaming the variable to DOKU_PLUGIN_IMAGES_STAR2 in syntax.php did the trick for me.

Regards

Achim

Star sizes

Hello,
Could you please give an example or explanation of sizing the stars?

Wanted to add thes in a table. But they're too large.

Thanks in advance.

Plugin is not compatible with PHP 7.0

Using the plugin on machines running PHP 7.0 leads to a crash/uncaught error because the function split() is used. It is no longer supported by PHP 7.0.

Breaks with rc2020-06-01 "Hogfather"

PHP Fatal error: Declaration of action_plugin_stars2::register(&$controller) must be compatible with dokuwiki\Extension\ActionPlugin::register(Doku_Event_Handler $controller) in /lib/plugins/stars2/action.php on line 0

height not working

nice plugin, but the height is ignored, at least on my ubuntu 15.10 and nexus 7 tablet (android 6).

for me, replacing in syntax.php:
height="'.$options\['height'].'"
with:
style="height:'.$options['height'].'px;"
fixed the problem.

Fix register method and handle method's signature

Hello,

I am using dokuwiki version 2017-02-19 "Frusterick Manners". The stars plugin register method in action.php and handle method in syntax.php are not compatible with Dokuwiki method's signature. Can you please adopt these signatures?

Here are the errors:
PHP Warning: Declaration of action_plugin_stars2::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /dokuwiki-2017-02-19e-FrusterickManners/lib/plugins/stars2/action.php on line 0

PHP Warning: Declaration of syntax_plugin_stars2::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/dokuwiki/prod/versions/dokuwiki-2017-02-19e-FrusterickManners/lib/plugins/stars2/syntax.php on line 0

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.