Sponsored Content
The Lounge What is on Your Mind? Proposal to Eliminate Thread Icons Column Post 303021033 by wisecracker on Friday 3rd of August 2018 03:06:04 AM
Old 08-03-2018
Hi Neo...

I agree with Ravinder here they are OK AFAIAC.
 

6 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Dotted thread icons

Can you guys please enable the "dotted" icon option, so that the thread icon for a thread in which a user has posted in will appear with a dot in it? Thanks, Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies

2. Programming

Master's degree proposal, Router software

Hello everyone, After 8 years of being out of school I am trying to start my Masters degree. This specific type of degree is being done only by research (research mode vs. coursework mode). I need to prepare a research proposal and send it to the school. I will need a professor to accept me as a... (2 Replies)
Discussion started by: wmac
2 Replies

3. UNIX for Dummies Questions & Answers

research proposal for PG

hi friends i have just completed my graduation and applied for Post graduation i have to submit a research proposal of OS in the interview i m a beginner & only read galvin & silbershcatz book on operating systems can anyone help me in that ... thanks in advance (3 Replies)
Discussion started by: iet.manish
3 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Registration proposal

Hello. I've been reading the feed via twitter for a long time, but though i'm willing to help, i can't post and register (russia's banned). IP is dynamic, it's (<ip address>) for now. DevOps, RH, python and unix shell scripting. (5 Replies)
Discussion started by: spider_fingers
5 Replies

5. Shell Programming and Scripting

Get the average from column, and eliminate the duplicate values.

Dear Experts, Kindly help me please, I have a big file where there is duplicate values in col 11 till col 23, every 2 rows appers a new numbers, but in each row there is different coordinates x and y in col 57 till col 74. Please i will like to get a single value and average of the x and y... (8 Replies)
Discussion started by: jiam912
8 Replies

6. What is on Your Mind?

New Member Profile Pages (Proposal)

Hey, I am thinking to get rid of the old and clunky member profile pages and replace with a prototype from Brad at Traversy Media. Here is the prototype: Welcome To My Portfolio Basically, I will take the links in the user profile page and put them into the new format when I have time.... (3 Replies)
Discussion started by: Neo
3 Replies
Jifty::Plugin::Comment(3pm)				User Contributed Perl Documentation			       Jifty::Plugin::Comment(3pm)

NAME
Jifty::Plugin::Comment - Add comments to any record SYNOPSIS
Setup the config.yml Plugins: - Comment: # Set this if you want spam checking by Net::Akismet Akismet: Key: 1234567890a Url: http://example.com # Set this if you want to customize the HTML scrubbing of comments Scrubber: message: "Comments may only contain <strong>, <em>, and <a> tags." allow: - strong - em - a default: - 0 - '*': 0 href: !!perl/regexp: REGEXP: '^(?!(?:java)?script)' MODIFIERS: i Setup a model that has comments: package App::Model::Fooble; use Jifty::DBI::Schema; use App::Record schema { column scribble => type is 'text'; column wobble => type is 'int'; }; use Jifty::Plugin::Comment::Mixin::Model::Commented; sub allow_owner_update_delete { my $self = shift; my ($right, %args) = @_; if ($right eq 'create') { return 'allow' ;#if $self->current_user->id; } if ($right eq 'update' || $right eq 'delete') { return 'allow' if $self->current_user->id; } if ($right eq 'read') { return 'allow'; } return 'deny'; }; App::Model::FoobleComment->add_trigger( name => 'before_access', callback => &allow_owner_update_delete); App::Model::Comment->add_trigger( name => 'before_access', callback => &allow_owner_update_delete); Setup a view for creating, viewing, and managing the comments: # assuming $fooble here isa App::Action::UpdateFooble object template 'fooble/view' => page { my $fooble = get 'fooble'; render_action $fooble, undef, { render_mode => 'read' }; render_region name => 'fooble-comments', path => '__comment/list_and_add', defaults => { comment_upon => $fooble->record->for_commenting, initial_title => 'Re: '.substr($fooble->scribble, 0, 20).'...', }, ; }; DESCRIPTION
This plugin allows you to attach comments to any model. You do this using the three steps listed in the synopsis. For variations on these steps, see the other classes that handle the individual parts. COMMENTED RECORDS
To set up a commented model, you will need to do the following: 1 Add ths plugin to your project by modifying your config.yml. 1 Add the Jifty::Plugin::Comment::Mixin::Model::Commented mixin to the model or models that you want to have comments attached to. See that class for details on how it works. You may also want to examine Jifty::Plugin::Comment::Model::Comment on how to customize that class for your application. 1 Create a view that appends a comment editor to your edit form (or on a separate page or wherever you feel like comments work best in your application). You should be able to use these views from either Template::Declare or HTML::Mason templates. See Jifty::Plugin::Comment::View for additional details on what views are available. METHODS
init Called during initialization. This will setup the Net::Akismet object if it is configured and available. akismet This returns an instance of Net::Akismet that is used to check to see if a new comment posted contains spam. No such checking is performed if this returns "undef", which indicates that "Net::Akismet" is unavailable, wasn't configured, or there was an error configuring it (e.g., the Akismet server was unavailable during Jifty startup). scrubber This returns an instance of HTML::Scrubber that is used to clean up HTML submitted in comments. TO DO
Right now the module depends directly upon HTML::Scrubber to do the work of cleaning up the text. You might want to use something else to do this. It also provides no mechanism for customizing any other aspect of the formatting. For example, your application might want to use Markdown, or BBCode, or just turn line breaks in the BR-tags, or anything else to format the comment text. In the future, I'd like to consider something like Text::Pipe or a similar API to allow these formats to be customized more easily. SEE ALSO
Net::Akismet, HTML::Scrubber AUTHOR
Andrew Sterling Hanenkamp, "<hanenkamp@cpan.org>" COPYRIGHT AND LICENSE
Copyright 2007 Boomer Consulting, Inc. All Rights Reserved. This program is free software and may be modified and distributed under the same terms as Perl itself. perl v5.12.4 2009-06-26 Jifty::Plugin::Comment(3pm)
All times are GMT -4. The time now is 01:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy