I’m getting loads of comments…you can imagine the descriptions!! I
can’t
keep up with deleting them. How do I create a filter so that I must
approve comments before they can appear on my site?
Thank you so much.
I’m getting loads of comments…you can imagine the descriptions!! I
can’t
keep up with deleting them. How do I create a filter so that I must
approve comments before they can appear on my site?
Thank you so much.
I just added docs for this, but set
Radiant::Config[‘comments.auto_approve’] = false
and you’ll need to approve each one. I’d like to make the standard
spam-blocking a bit more robust in the future.
Jim G. wrote in post #956414:
I just added docs for this, but set
Radiant::Config[‘comments.auto_approve’] = false
and you’ll need to approve each one. I’d like to make the standard
spam-blocking a bit more robust in the future.
=====
Thank you Jim.
Where do I put this code?
Diann S. wrote in post #956424:
Jim G. wrote in post #956414:
I just added docs for this, but set
Radiant::Config[‘comments.auto_approve’] = false
and you’ll need to approve each one. I’d like to make the standard
spam-blocking a bit more robust in the future.=====
Thank you Jim.
Where do I put this code?
Tried putting it on the “Settings” page…but…tsk.
On Sat, Oct 23, 2010 at 8:03 AM, Diann S. [email protected] wrote:
Thank you Jim.
Where do I put this code?Tried putting it on the “Settings” page…but…tsk.
–
Sorry, Diane. I don’t mean to be cryptic.
If you have the Setting extension installed, you can create a new
setting for “comments.auto_approve” but it sounds like you don’t have
that.
You’ll need to put this in your config/environment.rb and redeploy the
application.
Take a look at
Hi,
after long investigation, I now have found the solution to get running
the paperclipped extension on my Windows developer machine. For those of
You, who are in the same situation (developing under Windows, deploying
to *ix) this may be helpful. I had to fix all 3 errors to get it
working.
All errors have the same impact: Paperclipped can’t find ImageMagick
(even if it is installed in Your PATH) and brings up error messages in
log while uploading images like:
[paperclip] identify ‘-format’ ‘%wx%h’
‘C:/DOCUME~1/horibo/LOCALS~1/Temp/stream,3296,0.jpg[0]’ 2>NUL
[paperclip] An error was received while processing:
#<Paperclip::NotIdentifiedByImageMagickError:
C:/DOCUME~1/horibo/LOCALS~1/Temp/stream,3296,0.jpg is not recognized by
the ‘identify’ command.>
Install ImageMagick in a path without spaces
For some reason, paperclip won’t find it, if the path to ImageMagick
contains spaces (e.g. “C:\Program Files\ImageMagick”). Don’t forget to
update Your PATH.
Give paperclip the path to ImageMagick
Even if in Your PATH, paperclip won’t find ImageMagick. I put the
following code in my /config/environments/development.rb:
Paperclip.options[:command_path] = “C:/Programs/ImageMagick-6.4.6-Q16/”
Avoid calling ImageMagick with single quotes
This is a long known issue with the paperclip plugin, which still isn’t
fixed in the master tree. The bug fix still works on *ix systems.
Apply the following patch to
/vendor/extensions/paperclipped/vendor/plugins/paperclip/lib/paperclip.rb
at
line 133:
Enjoy!
Horst
Hi,
I want to use this code within a page several times with different
orientations (image_left/image_right) and different ids:
I tried to be DRY by using the parameterized_snippets extension and put
this code into a snippet:
and call it from the page like:
<r:snippet name=“include_image” id=“3” orientation=“left” />
But this doesn’t work. The ID and orientation is resolved correctly. But
the r:assets tags are not resolved and appear as plain text in the page.
Is it possible to use the attached assets of a page within a snippet?
If not, is there any other way to avoid repeating the same code several
times?
Best Regards
Horst
From “Basic Usage” at Radius Tags · radiant/radiant Wiki · GitHub
"As the |<r:parent>| example above shows, it is possible to nest Radius
tags within other Radius tags, so long as they are separate elements.
However, using a Radius tag as the the attribute of another Radius tag
is /NOT ALLOWED/. For example:
|<r:if_url matches=“<r:parent><r:url/></r:parent>”>…</r:if_url>
^ DON’T DO THIS, it breaks! ^|
Now you’re probably wondering, “How can I use variables or constants
within the attributes of a Radius tag?” The answer is that you can’t."
What you could do is write a custom tag to output this entire set of
HTML - see
Adding Custom Radius Tags · radiant/radiant Wiki · GitHub for
more details.
Wes
Hold up! If you add the Backdoor extension you can use this:
<r:ruby>
@parent_url = ‘<r:parent><r:url/></r:parent>’
“”
</r:ruby>
<r:if_url matches="=@parent_url " >…</r:if_url>
Sorry I don’t know but without = or # it doesn’t seem to work.
This goes against the design of Radius.
You might be able to write a new assets tag and parse the contents of
the attributes first before rendering the tag. Or write an assets tag
that checks to see if a local variable exists and use that if there is
no id given.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs