Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] peg_nested_comments
uli wrote #294885:
Do you want this topic still be labelled an orphaned plugin, Oleg?
Frankly, I don’t know. It’s working and minimally maintained, but my dev version has already merged with my rating plugin (and stalled). So, concerning the original peg_nested_comments
I have no further plans, but maybe we should ask Nicolas?
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
etc wrote #294891:
…but maybe we should ask Nicolas?
I’m a designer and I’m not sure I can do much with the plugin code… I try to learn but I’m not ready to maintain a plugin by my own.
Offline
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
NicolasGraph wrote #294896:
I’m a designer and I’m not sure I can do much with the plugin code… I try to learn but I’m not ready to maintain a plugin by my own.
I will continue to maintain it, just not develop anymore (save small changes/bugfixes) in its present form. It has some code in common with the rating plugin, so I have merged them, but not officially released, awaiting 4.6 custom fields implementation.
Offline
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
etc wrote #294914:
Nice job, it lacks just the compiled .txt version, to point the download link to.
Sorry, it’s the first time I do that. I published it with ied_plugin_composer
; I think it’s ok now.
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
Great, I have redirected the download link to Github now.
Offline
#56 2015-09-29 22:00:32
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Question of the plugin peg_nested_comments
A modified version etc
etc_test
I want to do a star rating articles.
inserted this code in Title Article
<txp: peg_rating_bar range = "1,5" star = "★" color = "gold | darkgrey | lightgrey" revisable = "" />
There was a 5 star, Voted – click on a ~ 3 stars, gold stars was 3 out of 5.
But if you click on the star of another article, they do not change, and change the number of stars of the first article ??
Also after refresh browser does not saved ??
Last edited by alivato (2015-09-29 22:03:39)
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
alivato wrote #295222:
inserted this code in Title Article
<txp:peg_rating_bar range = "1,5" star = "★" color = "gold | darkgrey | lightgrey" revisable = "" />...
If I remember it well, you must put this code inside the comments form to enable visitors rating. And
<txp:peg_rating_bar rating='<txp:custom_field name="peg_rating" />' range="5" />
in an article form will display the current article rating.
Offline
#58 2015-09-30 17:45:59
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
I inserted this code in the form of * comments_form *
<txp:peg_rating_bar rating='<txp:custom_field name="peg_rating" />' range="5" />
I tried to insert the code too
<txp:peg_rating_bar range = "1,5" star = "★" color = "gold | darkgrey | lightgrey" revisable = "" />
Admin – Preferences – Advanced – Custom field 1 name peg_rating
———————-
Presentation – Forms – default – also tried to insert the first and then the second line.
<txp:if_article_list>
<txp:title />
<txp:peg_rating_bar rating='<txp:custom_field name="peg_rating" />' range="5" />
...
ERROR http://site.com
<txp:if_article_list>
<txp:title />
<txp:peg_rating_bar range = "1,5" star = "★" color = "gold | darkgrey | lightgrey" revisable = "" />
...
Offline
Re: [plugin] [ORPHAN] peg_nested_comments
Sorry, that must be a previous version. I have reworked it a little, please redownload, disable/enable, and try again. Note that I don’t develop it anymore, it somehow works, but use it on your own risk.
There is no more color
attribute in the latest version, it is all in css now:
.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}
alivato wrote #295247:
Custom field 1 name peg_rating
No, don’t define it yourself, the plugin will use custom_21
and 22
, even if you don’t see them.
Offline
#60 2015-09-30 20:25:49
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [plugin] [ORPHAN] peg_nested_comments
Thanks for the answer etc.
I updated the plugin.
Now form’s default and comments_form:
<txp:peg_rating_bar rating='<txp:custom_field name="peg_rating" />' range="5" />
I add styles to CSS file.
Now the stars appear so, but they are not active (not pressed – link) ??
??
Last edited by alivato (2015-09-30 20:27:05)
Offline