Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Bug Report



[SOLVED] Allow edit of summary

Found or fixed a small bug in Pligg? Post it here so we can update appropriately.


 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2007, 09:28 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 60
[SOLVED] Allow edit of summary

In the Admin section, when configuring the Summary option for Allow edit of summary, the expected result is that the Summary edit box is disabled when the option is set to 0.

On my site, when Allow edit of summary is set to 0, the summary box is disabled, however, every time I enter a description for a story, Internet Explorer 7 displays a error in the lower left hand corner of the browser window as 'Error on page'

Double clicking on the 'Error on page' brings up the box with more error details:

Line 183
Char 1
Error: "this.form.summarycheckbox.checked' is null or not an object
Code: 0

In Firefox, the Error Console displays error Error: this.form.summarycheckbox has no properties

Last edited by LeoNel; 09-17-2007 at 05:21 PM. Reason: More information
Sponsor
  #2 (permalink)  
Old 09-15-2007, 11:07 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 60
Has anyone been able to reproduce this error?
  #3 (permalink)  
Old 10-03-2007, 09:30 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 60
Has anyone been able to reproduce this error?
  #4 (permalink)  
Old 01-15-2008, 08:50 AM
Pligg Donor
 
Join Date: Oct 2006
Posts: 60
This bug still exists in Pligg 9.9
  #5 (permalink)  
Old 01-19-2008, 11:36 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
In your editlink_edit_center.tpl, replace line 54

PHP Code:
<br/><textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT onkeyup="if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$submit_content}</textarea><br /> 
with this

PHP Code:
<br/><textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT {if $SubmitSummary_Allow_Edit eq 1}onkeyup="if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});"{/if}>{$submit_content}</textarea><br /> 

- Ash
  #6 (permalink)  
Old 02-06-2008, 12:56 PM
Pligg Donor
 
Join Date: Oct 2006
Posts: 60
Still getting an error. Error text:

this.form.summarycheckbox has no properties
http://www.site.com/submit.php
Line 1
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can't edit config in admin area mike34z Installation and Upgrade Help 4 08-25-2007 12:33 AM
[SOLVED] Where do I edit the welcome email and message? AshMCairo General Help 1 07-23-2007 02:00 PM
[SOLVED]  string appears in Link summary View 911 General Help 11 07-22-2007 09:19 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development