Vote function fail ( out of order )?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2009, 06:49 AM
New Pligger
Pligg Version: 1.0.0
 
Join Date: Feb 2009
Posts: 19
I have been editting and editting the style and the header and the pligg.tpl.

Then when I try to click on vote, i realize that i can't make the function work!!! what happen?

when do I check the vote function and where is the code for functions?
Reply With Quote
  #2 (permalink)  
Old 03-10-2009, 08:59 AM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 97
I have the same problem too!!

Do you also get the same JavaScript error:

-------------------------------------------------This is from firebug---------------------------------------------
target2 has no properties
changemnmvalues(0, 10, true)xmlhttp.php (line 190)
onreadystatechange()()xmlhttp.php (line 95)
[Break on this error] if (value > 0) { target2.innerHTML = "<span>Voted</span> "; }
-----------------------------------------------This is from firebug------------------------------------------------

I am using Firefox 2.0 and my pligg (1.0.0) install is on a Linux server, PHP 5, MySQL 5.
Reply With Quote
  #3 (permalink)  
Old 03-10-2009, 12:26 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Most likely it was caused by editing pligg.tpl or link_summary.tpl. I suggest comparing your template with the original Wistie one, there are probably a couple elements around the vote button that need to remain such as a span, list element (<li>), or div. Most likely it's a span that you removed.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #4 (permalink)  
Old 03-10-2009, 12:47 PM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 97
Sorry to have hi-jacked the OPs thread but I am hoping he has the same problems as me.

To be honest, I did not change anything on any of the .tpl files. If you view my sites source. You will see there are no missing tags etc. At least I think there isn't.

Please view this site: http://www.episodeshare.com
Reply With Quote
  #5 (permalink)  
Old 03-10-2009, 03:21 PM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 97
Even voting on comments isn't working!!!
Reply With Quote
  #6 (permalink)  
Old 03-10-2009, 03:28 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by GrantMePeace View Post
Sorry to have hi-jacked the OPs thread but I am hoping he has the same problems as me.

To be honest, I did not change anything on any of the .tpl files. If you view my sites source. You will see there are no missing tags etc. At least I think there isn't.

Please view this site: http://www.episodeshare.com
I can tell from loading your site you have installed the mootools module. Go to the module management page in your admin and disable it.
Reply With Quote
  #7 (permalink)  
Old 03-10-2009, 03:47 PM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 97
Quote:
Originally Posted by chuckroast View Post
I can tell from loading your site you have installed the mootools module. Go to the module management page in your admin and disable it.
Yes you are correct. I have now disabled it BUT i still get the same error. I have also removed a few other modules in the hope they could be the problem but that still didn't work.

I have just tested it on IE7 and the problem is the same.

What else can I try?? Any more info I can give to help?

Thank you for your help.
Reply With Quote
  #8 (permalink)  
Old 03-10-2009, 10:19 PM
Donor
Pligg Version: 1.0
Pligg Template: magazeen
 
Join Date: Mar 2009
Location: London
Posts: 97
Hang on a minute. There is no target2 element even on the page which JavaScript is trying to referrence!
Code:
if (value > 0) { target2.innerHTML = "<span>Voted</span> "; }
So the above will fail!

Am I reading this right?

---------Yes I am! Just consulted a manual:
Code:
"[elementname] has no properties" is javascript error speak for "the element you tried to reference doesn't exist or is nil"
Reply With Quote
Reply

Tags
javascript, plig 1.0

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help, Vote Function Not Working na3s Questions and Comments 22 01-08-2011 02:15 PM
External Vote Button (EVB) Yankidank Questions and Comments 70 10-09-2010 03:08 PM
Topics dont change order with each vote buyforless Questions and Comments 0 07-23-2008 10:10 PM
Vote function not working in firefox linkcritic Questions and Comments 7 11-18-2006 02:27 PM
Save function in modify profile does not work & cannot vote pligguser99 Questions and Comments 7 09-21-2006 01:53 PM


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