Results 1 to 8 of 8

Thread: Vote function fail ( out of order )?

  1. #1
    New Pligger fistball's Avatar
    Joined
    Feb 2009
    Posts
    19

    Vote function fail ( out of order )?

    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?

  2. #2
    Donor GrantMePeace's Avatar
    Joined
    Mar 2009
    Posts
    93
    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.

  3. #3
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,538
    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 Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  4. #4
    Donor GrantMePeace's Avatar
    Joined
    Mar 2009
    Posts
    93
    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

  5. #5
    Donor GrantMePeace's Avatar
    Joined
    Mar 2009
    Posts
    93
    Even voting on comments isn't working!!!

  6. #6
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    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.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  7. #7
    Donor GrantMePeace's Avatar
    Joined
    Mar 2009
    Posts
    93
    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.

  8. #8
    Donor GrantMePeace's Avatar
    Joined
    Mar 2009
    Posts
    93
    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"

Similar Threads

  1. Help, Vote Function Not Working
    By na3s in forum Questions & Comments
    Replies: 22
    Last Post: 01-08-2011, 11:15 AM
  2. Vote function is not working-pligg 1.0.3
    By preetam in forum Questions & Comments
    Replies: 7
    Last Post: 06-08-2010, 01:18 PM
  3. Pligg1.0.3-Vote function is not working
    By preetam in forum Questions & Comments
    Replies: 2
    Last Post: 05-20-2010, 02:37 AM
  4. My vote function doesnt work. Please help!
    By spy1983 in forum Questions & Comments
    Replies: 1
    Last Post: 12-04-2009, 03:58 PM
  5. Topics dont change order with each vote
    By buyforless in forum Questions & Comments
    Replies: 0
    Last Post: 07-23-2008, 07:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •