It looks like you're new here. If you want to get involved, click one of these buttons!
Maybe a strange question but can anyone tell me how to remove VOTE from the voting plugin. I only need it to display comments, follows, views
thanks for your help in advance
Answers
use CSS. get the element of the votes by using FIREBUG in FIREFOX and give that element display:none
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks for your reply sahotataran
The built in chrome 'inspect element' does the same thing but I was assuming this would be in a php file as I want to completely get rid of the code being used to display votes both in discussions and in comments by the users.
http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •messing around with code is a difficult job. and also if in future you need to update the plugin to match the latest version in future then you will not have to go through the code again - you know what to do - just find that element and hide it - all done - otherwise you will have to mess with the latest code again :)
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •yes, you DO have a point. I will take your advice, thanks.
http://kaohsiungliving.org
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •you r welcome :)
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have a same idie with shozen, if you hide the element, it cause alot of CPU usages, I mean the page load time
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Its easily removed , personally i dislike hiding functional code with css its a bad idea IMHO.
However hiding it with display:none should not affect server resources whatsoever, as its a clientside function
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •For what it's worth, I forked it and you can get it here. It should include only the PHP and CSS needed to show counts of follows, views, comments. No voting-related code anywhere.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •What exactly am I hiding? I would love to have this function, but I can't seem to find which file I should be editing.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@kobutsu I tried your version, but I end up with your version and the vote plugin version displaying at the same time. Any suggestions?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@422 could you tell me is it the voting.css I am editing. I have been at this one all day and put display: none just about every place possible and I can't hide voting at all.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Sorry, missed this. What do u want to achieve exactly.
Incidentally. I always, copy css changes from other css files to my custom.css.
Regaring hiding certain vote components, this can be done by hacking the plugin itself.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@422 Yea I am trying to make it to where the voting, or votes is not displayed. That way only views, comments, and follows are displayed.
How do you hack the plugin to accomplish this?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Ok I figured it out...I think. Please let me know if this will cause me problems later on or if this was a bad way to go about it.
I went into class.voting.plugin.php and completely deleted the section entitled //Voting. I know in the comments above everyone was saying edit the CSS not PHP, but this is the only way I figured it out. However, I am pretty terrible with editing any type of sheet lol.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Ive done that before, had no issues. Sounds right.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Ender,
What exactly did you remove? I tried removing a few different sections of that file and managed to remove the 'Vote' box from the categories page, but in each post there was still the voting button and the 'sort by' sectors...
Cheers.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@ender: my plugin and Voting are incompatible. My plugin only offers a subset of what Voting does, though, so if you need voting, use Voting and not BigCount!
(I've put a very little documentation about that, and how to accurately track view counts for BigCount or Voting, into the Readme here: https://github.com/kobutsu/BigCount/blob/master/README.md )
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Kobutsu: I installed your plugin, but doesn't seem to be displaying properly. Maybe the issue is the 'Embed Friendly' theme?
http://imageshack.us/photo/my-images/836/screenshot20120309at931.png/
Also unable to 'Disable' the plugin.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •For those not 100% on CSS edit the voting.css file and add
.VotesBox, .FollowsBox, {display: none !important;}
If you want to remove the comment count aswell then add display:none; under ul.DataList div.Meta strong {
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@joepc, do i just add that code anywhere in the file?
also, will that remove the voting and follows?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •ah nvm, just manually added it to all the spans i didn't want. crash course in css, ha.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •if you don't want to have to hide it with css and never have it sent or shown``
just comment it out in the plugin. you don't have to mess with css.
all you have to do is go into class.voting.plugin.php look around line 120. and add the two lines shown that say "add this line"
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •We were using Voting plugin like this for a while but i did not like that the ajax posting funtionality was compromised (when posting a comment for example)
we are now happily using peregrines plugin AuthorTimeView (thanks @peregrine:) in combination with vanilla's built in bookmark discussion function.
the only difference is that users don't see how many other user bookmarked a discussion, which is fine. apart from that discussion view is much cleaner now
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@peregrine your way disables voting but the voting per comment in discussion still displays.
how can I also remove it?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •public function DiscussionController_BeforeCommentMeta_Handler($Sender) { // add the line below return;factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
2 • Off Topic 1Insightful 1Awesome LOL •These replies are great about removing the counts on the index. But on each thread there is still a vote count option that I would like to remove. I am only using this mod to add the comments and views to the thread index.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •change in class.voting.plugin.php
public function DiscussionController_BeforeCommentMeta_Handler($Sender) { // add the line below return;factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@peregrine I'm looking at that code, do I remove stuff, or just add this in there? Mine looks like this
public function DiscussionController_BeforeCommentMeta_Handler($Sender) { // if (!C('Plugins.Voting.Enabled')) // return;- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •you could either remove the whole function, or leave everything intact with the one line addition.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •