List Info

Thread: Some Comment Moderation Questions




Some Comment Moderation Questions
user name
2006-08-07 15:47:53
I wrote:

>> 2.) I'm not a Vortex wiz, and I'm having
"blank-screen" type problems
>> wherever I try to paste the
>> "#foreach ($entryComment in
$entry.getComments()) [etc.]" language
>> that's supposed to separate the unapproved
comments.  My main
template
>> parses cphi.blog.entries.inc.
>>
>> Does somebody have an example that better
illustrates where the
language
>> is supposed to go in context?

David replied:

> Try just:
> 
> #foreach ($entryComment in $entry.getComments())
>     #set ($commentApproved =
>
$!entryComment.getMetaData().get("BLOJSOM_COMMENT_MODE
RATION_PLUGIN_APPR
OVED 
> ").equals("true"))
>     #if ($commentApproved)
>     #end
> #end

Right-- pretty close to the language from the wiki entry I
was referring
to in my question...  But my problem is figuring out how to
use it in
context.

As is, here is my language which presently echoes ALL
comments (approved
and unapproved) onto the page:

#foreach ($entryComment in $entry.getComments())
<div class="content">Left on
$entryComment.getDateAsFormat('EEE, d MMM
yyyy HH:mm') by 
#if ($entryComment.getAuthorEmail() &&
$entryComment.getAuthorEmail().length() > 0) 
<a
href="mailto:$entryComment.getAuthorEmail()">
$entryComment.getAuthor()</
a> 
#else $entryComment.getAuthor()
#end 
#if ($entryComment.getAuthorURL() &&
$entryComment.getAuthorURL().length() > 0) &nbsp;
[<a href="$entryComment.getAuthorURL()"
rel="nofollow">$entryComment.getAuthorURL()&l
t;/a>] 
#end

If I incorporate David's suggested language into my
already-existing:
"#foreach ($entryComment in
$entry.getComments())" loop, I still get all
approved and unapproved comments.

Same result if I put the suggested language verbatim in a
separate loop
prior to my existing language. 

If I merely replace my loop with the suggested code
(correcting for
wrapping), the page is a white screen.

I know this owes to my state of Vortex challenge.

Thanks,
Paul
--
Paul Birch
pbirchrichmond.edu

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Some Comment Moderation Questions
user name
2006-08-07 23:41:30
Thanks to John Deery's helpful page mentioned in his posting here today, I was able to see what the comment moderation code looks like in the larger context of the template:

http://www.sbschools.org/weblog/jdeery/OSXServer/

Makes a lot of sense now!

BTW, my earlier problem about unsent comment moderation emails went away inexplicably when (having broken the page entirely and equally inexplicably) I pasted in and edited a fresh copy of blog.properties from another blog. ; Imagine my surprise when I looked in my mailbox...

So now I'm a moderatin' fool (or at least a fool <g>)!

Paul







--------------------------------
Paul Birch
pbirchrichmond.edu
Some Comment Moderation Questions
user name
2006-08-07 23:49:31
Glad to hear things are working correctly.


On 8/7/06 7:41 PM, "Paul Birch"; <pbirchrichmond.edu> wrote:

Thanks to John Deery's helpful page mentioned in his posting here today, I was able to see what the comment moderation code looks like in the larger context of the template:

http://www.sbschools.org/weblog/jdeery/OSXServer/

Makes a lot of sense now!

BTW, my earlier problem about unsent comment moderation emails went away inexplicably when (having broken the page entirely and equally inexplicably) I pasted in and edited a fresh copy of blog.properties from another blog.  Imagine my surprise when I looked in my mailbox...

So now I'm a moderatin' fool (or at least a fool <g>)!

Paul







--------------------------------
Paul Birch
pbirchrichmond.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&;kid=120709&bid=263057&dat=121642

_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users


--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )