Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2015-09-16 13:48:44

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

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

#50 2015-09-16 14:06:08

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#51 2015-09-16 15:19:16

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: [plugin] [ORPHAN] peg_nested_comments

etc wrote #294882:

You’ve got the power to upload the new version now. :) I will then redirect the download link on my site to Github.

Done.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#52 2015-09-16 17:33:29

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

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

#53 2015-09-16 17:36:46

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

Re: [plugin] [ORPHAN] peg_nested_comments

NicolasGraph wrote #294904:

Done.

Nice job, it lacks just the compiled .txt version, to point the download link to.

Offline

#54 2015-09-16 18:27:47

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#55 2015-09-21 19:18:28

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

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

#57 2015-09-30 10:23:59

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

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

#59 2015-09-30 19:13:01

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

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

Board footer

Powered by FluxBB