Character limit on description field

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2007, 02:23 PM
New Pligger
 
Join Date: Apr 2007
Posts: 4
I know that there is 150 character limitation on the summary field, but is it at all possible to limit the number for the description field as well?

Let's say a user copies an entire article from external source and puts it in description, I don't think that will do so well with the original author of the article as there is copyright infringement that has happened.

In fact, if we are to limit the character on the description, there is less chance a user will be able to duplicate the entire article and the whole problem can be avoided.

I guess it really depends on the website as there are people who enjoy using the description field that has no limitation.

I'm looking at the php files, but I'm new to this pligg script, and I can't seem to figure out which part to edit yet.

Do you think this is possible though?
Reply With Quote
  #2 (permalink)  
Old 04-08-2007, 02:31 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Just use html and put a maxlength on the textarea in submit_step_2.tpl http://www.htmlcodetutorial.com/form...MAXLENGTH.html
Reply With Quote
  #3 (permalink)  
Old 04-08-2007, 03:18 PM
New Pligger
 
Join Date: Apr 2007
Posts: 4
Thank you so much!

When I finish my site, I'll most likely do a lot of marketing all over the web using adwords, etc and will also pay to get it featured here.
Reply With Quote
  #4 (permalink)  
Old 04-09-2007, 11:23 AM
tiger2f's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 38
maxlength doesn't work with the textarea tag. I would like to know how to limit the descripion as well.
Reply With Quote
  #5 (permalink)  
Old 11-02-2007, 10:08 PM
New Pligger
 
Join Date: Jun 2007
Posts: 7
Can someone explain, step by step, how I could apply that neato javascript to my submit form? I'm a wordpress templating vet but this Pligg business is all new to me.

As I understand it:

1. Copy that javascript into my theme's pligg.tpl file, in the header, between "literal" tags.

2. go to submit_step_2.tpl and add maxlength="40" onkeyup="return ismaxlength(this)" into the description field's "textarea" tag.

What confuses me is that there's already a good but of "onkeyup" code in the description field's textarea tag. How do I tack this other script onto it? I've tried it a few different ways....and nada.

Directions?

Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Character Limit for Meta Description Tags? blaze Questions and Comments 2 04-08-2009 01:09 AM
Removing Description Field johndango Questions and Comments 5 11-08-2007 12:34 PM
"n" character works like <br> in description box nicocahuin Questions and Comments 0 08-13-2007 12:06 PM
RSS Description Does not Appear? swapshop Questions and Comments 1 08-08-2007 01:03 AM
max chars in description field g.ciprian Questions and Comments 7 07-14-2007 10:28 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development