Results 1 to 3 of 3
  1. #1
    Casual Pligger JonniE_M's Avatar
    Joined
    Nov 2008
    Posts
    64
    Thanks
    Received:0
    Given: 0

    Vote text after casting vote

    I am tring to change the vote cast text from the xmlhttp.php file into an image. I've tried and I just can't figure out how to do it.


    This is the code from the xmlhttp.php file where the code is located..

    function changemnmvalues (id, value, error)
    {
    split = new RegExp ("~--~");
    b = xvotesString[id].split (split);
    target1 = document.getElementById ('xvotes-' + id);
    target2 = document.getElementById ('xvote-' + id);
    target3 = document.getElementById ('xreport-' + id);
    target4 = document.getElementById ('xnews-' + id);
    // if (error) {
    // if (value > 0) { target2.innerHTML = " <span><?php echo $PLIGG_Visual_Vote_Cast;?></span> "; }
    // else if (value < 0) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Report;?></span> "; }
    // return false;
    // }
    if (b.length <= 3) {
    if (error) {
    alert(b[0]);
    return false;
    }
    target1.innerHTML = b[0];
    target1.style.backgroundColor = mnmPrevColor[id];
    // new Effect.Fade(target3);
    if (value > 0) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Cast;?></span> "; }
    else if (value < 0 ) { target2.innerHTML = "<span><?php echo $PLIGG_Visual_Vote_Report;?></span> ";
    // new Effect.Opacity(target4, {duration:0.8, from:1.0, to:0.3});
    }
    }
    return false;
    }


    Please Help

  2. #2
    Senior Member/Coder/Designer cmstheme's Avatar
    Joined
    Jan 2007
    Location
    Philippines
    Posts
    732
    Thanks
    Received:15
    Given: 1
    Site
    http://www.oxythemes.com
    Just modify your language file (Admin >Modify Language) and change PLIGG_Visual_Vote_Cast

  3. #3
    Casual Pligger JonniE_M's Avatar
    Joined
    Nov 2008
    Posts
    64
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by cmstheme View Post
    Just modify your language file (Admin >Modify Language) and change PLIGG_Visual_Vote_Cast

    Yes I tried that by adding a standard html img src code, but I doesn't want to take it, I would get an error if I try to vote.

Similar Threads

  1. External Vote Button (EVB) error "vote count" after vote in
    By Valver in forum Questions & Comments
    Replies: 3
    Last Post: 08-25-2012, 03:35 PM
  2. Changing Vote Text Color
    By KevinChristman in forum Questions & Comments
    Replies: 9
    Last Post: 01-19-2011, 10:04 AM
  3. Change Vote Text: PLIGG_Visual_Vote_For_It
    By GrantMePeace in forum Questions & Comments
    Replies: 2
    Last Post: 05-29-2009, 09:28 AM
  4. Vote Button Text
    By uberhype in forum Questions & Comments
    Replies: 2
    Last Post: 01-01-2008, 04:01 PM
  5. Where is the 'Vote' text located?
    By sanchopanza in forum Questions & Comments
    Replies: 1
    Last Post: 12-20-2007, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg