Can anyone code an usercomment snippet which would have the following form fields
Name
email
url
comment
the email will not be published
The url will be the hyperlink for the name.
An example will be
http://abs.absabs.us
I don’t want to have any anonymous comments and at the same time, I don’t to chase away people from commenting...
Why do people point to their wrists when asking for the time, but don’t point to their crotch when they ask where the bathroom is?
http://abs.absabs.us
-
☆ A M B ☆
- 24,524 Posts
I’m looking into it; it shouldn’t be too difficult; suggestions and ideas welcome.
question again. Suppose I want the email field as mandatory, how do i do it... For ex. if somebody is commenting, I want them to put down email to comment. If they dont put down email, then it should say please put down email...
Why do people point to their wrists when asking for the time, but don’t point to their crotch when they ask where the bathroom is?
http://abs.absabs.us
That would require a modification of the snippet.
-
MODX Staff
- 12,272 Posts
Here’s another question regarding UserComments:
Can anyone think of an easy way to display the "most recent 5 comments" from a specific comments block, not located on the same page?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
&folder=`xx` &recentposts=`5` should do the trick...
-
MODX Staff
- 12,272 Posts
Actually, that almost works, but not quite.
Assume my comments folder is called Bulletein Board, and also is set to display all the comments.
It creates a document called Bulletein Board - User comments and stores all the comments there.
Now imagine that on a separate page, call it Another Page, you want to show the 2 most recent comments and you call as above. It creates another page called Another Page - User comments in the Bulletein Board folder.
I need to be able to specify which page exactly to display from... I think it has something to do with the tagid parameter, but I’m not sure how to hit upon the magic combo that works. (btw, I’m "turning off" the ability to make comments from this page by setting the &canpost=`noone`, as noone is a non-existant group in this situation)
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
OK... fixed it. Had to add another parameter to the snippet... due in 0.9.1 or you can grab the file attached here.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me