Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] peg_nested_comments
alivato wrote #295264:
Now the stars appear so, but they are not active (not pressed – link) ??
Don’t set rating
in the comments_form, just <txp:peg_rating_bar />
. Also, set revisable="1"
or some other date if you want to be able to revise your rating.
Last edited by etc (2015-09-30 20:54:37)
Offline
#62 2015-09-30 20:45:47
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Did, but still not clickable.
default form
<txp:peg_rating_bar rating='<txp:custom_field name="peg_rating" />' range="5" revisable="2016-01" />
comment_form
<txp:peg_rating_bar />
?
Offline
Offline
#64 2015-09-30 20:56:10
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Can I send you a password to the admin panel?
Last edited by alivato (2015-09-30 21:32:37)
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
No, one needs to write a comment with this plugin to rate an article, that’s not your case. I’ve got a working version of csv_rating
somewhere, can send you if I find it. But now
- Можно сделать так, чтобы у меня с 0:00 до 9:00 не было интернета?
- Ну да, а вам зачем?
- Спать хочется.
:)
Offline
#66 2015-09-30 21:36:44
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Thank etc. I hope not too tired you..
Last edited by alivato (2015-09-30 21:43:26)
Offline
#67 2015-10-02 19:14:50
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Hi etc
You found working csv_rating plugin?
Offline
Offline
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
Well, it’s ready for beta release. Rename the downloaded file to .zip
and decompress it. It contains the plugin itself (.txt
) along with .js
and .css
files, that you should insert in your page. Use <txp:peg_rating_bar />
in an article form:
<txp:peg_rating_bar comment="0" star='<txp:image id="..." />' />
or in a comment form
<txp:peg_rating_bar comment="1" star='★' />
and tweak CSS if needed (see example here). Use custom_21
or custom_22
fields to sort articles by the number of reviews or the rating.
Note that live ratings will be registered as unmoderated (hidden) comments. That could change in the future when/if the plugin gets its own admin tab.
Offline
#71 2015-10-07 16:21:30
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
I installed the plugin (for starry rating articles).
I activate it.
Add to default form line
<txp:peg_rating_bar comment="0" star='★' />
Added to these lines CSS file
.peg-rating-bar{display:inline-block;position:relative;color:#ddd}
.peg-rating-bar>span{display:inline-block;position:absolute;overflow:hidden;left:0}
.peg-rating-current{color:#333}
.peg-rating label{color:#942C1E;}
.peg-rating label{cursor:pointer}
.peg-rating input{display:none}
.peg-rating input:checked + label ~ label{opacity:0}
.peg-rating input+label:hover{text-shadow:0px 0px 0.2em;opacity:1!important}
However, the rating is not preserved. And he deposed. picture…
Last edited by alivato (2015-10-07 16:22:40)
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
Please download the latest version, its CSS is
.peg-rating-bar{display:inline-block;position:relative}
.peg-rating-bar>span{overflow:hidden;white-space:nowrap}
.peg-rating-bar>span[class]{position:absolute;left:0}
.peg-rating-bar>span:first-child{opacity:0.33}
.peg-rating-current{opacity:0.67}
.peg-rating label{color:gold;cursor:pointer}
.peg-rating input{display:none}
.peg-rating input:checked + label ~ label{opacity:0}
.peg-rating input+label:hover{opacity:1!important}
Next, include the Javascript in your page too, either directly (between <script></script>
, or as <script src="your_downloaded_file"></script>
.
Last edited by etc (2015-10-07 17:40:15)
Offline