Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

Catnaps29CurtisOdendoncsaulericgillettex00 +6 guests

Vanilla Voting 0.2beta

This discussion is related to the Vanilla Voting 0.2beta addon.
Vanilla Voting 0.2beta
«1

Comments

  • Posts: 2,610
    This looks excellent MSB! Now I just need to get my forum working again and try it out :P <OT>Don't you think it's sad that the buttons get depressed when they've been chosen? You'd think they'd be happy about it!</OT>
  • installed and overwrote those two files, dont see the interface on the threads, does appear on the comments but when pressed doesnt have an effect.
  • ok it doesn't work with Stash's jquery extension, so just disable it and Vanilla Voting will add its own jquery file.
    Stash can you see whats wrong with jquery

    Look for this code in Vanilla.Class.Comments.php $this->DelegateParameters['DataSet'] = $DataSet; and replace it with $this->DelegateParameters['DataSet'] = &$DataSet;
  • >ok it doesn't work with Stash's jquery extension, so just disable it and Vanilla Voting will add its own jquery file.
    >Stash can you see whats wrong with jquery

    so i have to drop actually 4 good extensions in return for a working vanilla voting extension ? is there also a better solution?

    thx in advance.
  • Posts: 5,574
    Would probably help if you mentioned which those extensions were.
  • fery copy the jquery file from Vanilla voting and put it in the jquery extensions and use that one, it will work then.
    btw it says on the top its a beta please don't it on production site
  • VazVaz
    Posts: 292
    Unfortunately I'm unable to use this. I've made some edits to discussion.php and unfortunately I can't remember what they are. Good idea though. I'll definately be using it on any other forums I setup.
  • It works fine for me so far with Discussion Filters, Discussion Pages, Hot Discussions, New Discussions, Participated Threads and Unanswered Discussions (yep I know these are pretty specific extensions, but it's my test forum...).

    What does this extension do exactly? Do discussions get sunk or closed after a given amount of negative votes or something like that? And what about comments? Are they hidden by default for everyone in the same way? Is there a plan to change a discussion's label following its votes?

    Sorry but I'm no Digg member, so I don't know how its voting system actually works.

    Anyway the Ajax effects are really nice, clean and smooth. I like the overall look & feel a lot.
  • if you give a negative voting to comment, its collapsed and remains collapsed everytime you read that thread, For others it depends on what they voted, If they voted positive for that same comment, for them it won't be collapsed.

    Sinking/Closing a discussion after it gets a certain number of negative votes
    Done :)
    Collapse a comment for ALL after it gets a certain number of negative votes
    Todo

    Is there a plan to change a discussion's label following its votes?
    No

    vaz do a file match and you will know what are the changes,then you copy over those changes to your discussion.php file

    The voting look and feel is taken from mixx.com
  • Sounds cool :)

    Another idea would be to have discussions filters along with the ratings. For example you could click a link to display the five most loved discussions, the five most hated, the most recent not-rated-yet discussions, etc. Or maybe add a panel item dedicated to these kind of statistics if you enable it in your preferences, a bit like Latest Dicussions Prime.

    Going further in the idea of social features, you could also have a list of authors with the most popular/unpopular discussions and comments. There could even be an automatic role change for users when they reach a given level of votes. Dunno if it would be actually democratic or not, but it would be interesting for sure. If you keep posting lot of interesting stuff you could become a "premium author" or something, if you keep posting crap all your comments may be automatically hidden for a few days, etc.

    Just a few ideas. I'd love to see such features but I guess it would be a lot of work.
  • >fery copy the jquery file from Vanilla voting and put it in the jquery extensions and use that one, it will work then.
    >btw it says on the top its a beta please don't it on production site

    ok i'll try , btw my site is actually a zeta version (not even beta :D), but thanks for the hint
  • Posts: 812
    n e problems with this mod ?

    n e other beta issues with it?
    jw
  • I've not been able to get it to display at all. I get the link to choose which forums to enable it for, but nothing else (no link in roles and permissions, and nothing in the selected forum)? Any ideas?
  • jkjunkfilter check your settings.php and database.php file does it have entries for VanillaVoting
  • Look like there's a CSS problem with CategoryIcons. Icons appear above the vote buttons :
    image

    Tested in Firefox.
  • that the problem with category Icons. it uses absolute positioning.
    nothing i can do about it. you will have to fix Category icon css.
  • well i had tough luck, no success with the (js) replacement idea :(
  • Posts: 1,406
    You can use the fix I posted about moving the categoryicons to the right side.
    Blogger # 21
  • Posts: 4,883
    @MySchizoBuddy - did you get my email to your gmail address?
  • Posts: 26
    I tried testing this on a Vanilla 1.1.4 install and did the following:

    * Installed and enabled the add-on
    * Replaced the two files from SVN (note the "&" seems to have already been added to the SVN file)
    * Enabled role to vote on comments, and selected the categories for voting
    * 0 Votes and arrows came up by each comment as expected. Clicking on them gave an alert saying "Adding vote to comment did not work".

    Any suggestions? I tried with JQuery enabled and disabled without success.

    I get this JS error:

    $ is not a function
    [Break on this error] $(document).ready(function() {

    AddVote.js.php (line 55)
  • Posts: 427
    Check in your conf/extensions.php, sometimes add-ons must be called in a particular order. Try to call jQuery before Voting.
  • Posts: 26
    Thanks but it is above Voting when enabled:

    include($Configuration['EXTENSIONS_PATH']."JQuery/default.php");
    include($Configuration['EXTENSIONS_PATH']."VanillaVoting/default.php");
  • Posts: 7
    i have the similar problem as well, but with this error from firebug:

    $.post is not a function
    AddCommentVote("extensions/VanillaVoting/library/AddVote.php", 5, 1, 0, "970d3c484e2c1ca925ce169748619d58")AddVote.js.php (line 29)
    onclick(click clientX=0, clientY=0)comments.php (line 1)
    [Break on this error] function(data) {


    i followed the steps that cre8d listed and JQuery is loaded before vanillavoting in conf/extensions.php.

    so i just wondering what is $.post does?, i have looked the AddVote.js.php, it seems take the following arguments:

    $.post(AjaxURL, {'CommentID': CommentID, 'Vote': Vote, 'CurrentTotalVotes': CurrentTotalVotes, 'PostBackKey': PostBackKey },
  • Posts: 126
    Has anyone gotten this working on 1.1.4?
  • Posts: 7
    strangely when i disable jquery plugin, the voting seems to work( i checked the source of this plugin, it does contain jquery source code, so i guess there is no point to install jquery before this plugin).

    by the way, my version of vanilla is 1.1.4.

  • Notice: Undefined index: Vote in /home/content/.../Framework.Class.SqlBuilder.php
    Notice: Undefined index: UserDiscussionVote in /home/content/.../library/
    Framework/Framework.Functions.php
    A fatal, non-recoverable error has occurred
    Technical information (for support personel):

    Error Message
    An error occurred while retrieving discussions.
    Affected Elements
    DiscussionManager.GetDiscussionList();

    The error occurred on or near: You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right syntax
    to use near 'as TotalDiscussionVotes, UserDiscussionVote.
    as Vote from LUM_Discussion t left' at line 1


    could somebody help me with this error? i had it installed at one time it worked perfectly but after moving databases; exporting and importing the data ..i get this error. very creative extension!
  • i really hate that i can't get this to work anymore.
  • i simply have no idea why it is no longer working. it is so frustrating! ..i'm whining aren't i?
  • i think i may have figured out the problem. i have installed vanilla version: 1.1.4! does this addon require vanilla version: 1.1.1 or vanilla version: 1.1.4 with default theme for version: 1.1.1? it is very default troubleshooting software i know nothing about. is vanilla version: 1.1.1 still avalable someplace?
  • Posts: 812
    any news on this?
Sign In or Register to comment.