![]() |
[AJAX] Your One Click Thread Ratings
Description:
Make it easy for people to rate threads with one click. Refer to the before and after images attached to this post for a visual. Install instructions: 1. Download the attached zip file 2. Upload vbulletin_ajax_oneclick_threadrate.js to /yourforum/clientscript/ 3. Modify the SHOWTHREAD template by placing the following code(or identical code contained in the attached zip file) after the $poll variable which is around the 14th line: Code:
<if condition="$show['threadrating']"> Uses AJAX but will fall back to submitting the form first, or if that fails it will use <noscript> tags to display submit buttons. The fallback methods are not thoroughly tested so, if you are able, please test them and report any problems you have. Template comments: Be careful about moving the HTML block around because it will fail if it becomes nested inside of another form. Recommendations after installing: - in vBulletin Options > Poll and Thread Rating Options, set "Allow Thread Rating Vote Changes" to No - in vBulletin Options > Poll and Thread Rating Options, set "Required Thread Rating Votes to Show Rating" to 1 (this will hopefully encourage the use of thread ratings) - install the Thread-Ratings on Search mod which was written for 3.5.x but is compatible with 3.6.x. ( https://vborg.vbsupport.ru/showthread.php?t=106853 ) - modify the threadrate_add phrase, In Languages & Phrases under "Search in Phrases," do a search for 'Your vote on this thread has been added' and modify it to say something more friendly/humorous Are you a designer? maybe you can make the HTML chunk more asthetically pleasing with images or CSS changelog: 0.1 - initial release 0.1.1 - define JS threadid which may or may not be defined later in the page Read this before posting If you want to tell me what error(s) you receive, please do the following: 1. Make sure you DO NOT put the HTML chunk inside of another form it will not work at all if you do this. Please make sure it is after the $poll variable. 2. If you think the error is JS related and you are using Firefox, click Tools > Console then the Errors tab, clear it out first, then try doing the thread rating, Right-click and copy the errors related that show for your forum. 3. You did not upload the JavaScript file to the proper location READ THIS: Set "Check Thread Rating" to Yes in vBulletin Options under "Thread Display Options (showthread)" |
heyy you are cool man thanks for this wonderfull hack :D
|
is there anyway this can be made to look like the rating system does on the mods section of this site?
|
Great hack, thanks!
|
Quote:
complaints on my forum have indicated it may not be such a good idea to put right above the Reply button so until I try finding a better way to integrate it into template, I'd suggested adding some line breaks or placing it near the bottom of threads. |
One i modified for my site (attached preview):p
If anyone want to use it, here it is-- Add this your style CSS (you can change the colors matching with your forum): PHP Code:
Quote:
Click save and rest followed all instructions provided by fci BIG thanks to fci for the hack ;) |
@DPSR
very nice i modified too for my site when i finish, i share it with you :D |
it is not working on me. DPSR i have modified like you said but when i click on the ratio it doesnt do anything?
|
For me its not working in Firefox, but in opera and IE 7 its working fine
Please check if you have uploaded the .js file and edited correcty (copy the code from attached txt file) |
i am using firefox too. i think this is a firefox issue :( how can we fix this?
|
Don't know :( i have tested the hack without any modification but still in ff its don't work. Maybe author *(fci) will update it .....
|
DPSR, I registered on your forum and was unable to reproduce the issues when using Firefox 2(Windows).
abramelin, when I registered on your forum I was able to reproduce the issue. Please add the part in red to your current template: Code:
<script type="text/javascript"> |
i added but nothing changed :/
|
mmmm, I didn't have any errors when I tried testing your site just now
try changing this part and let me know how it goes: Code:
var threadid = $threadinfo[threadid]; Do you have any Firefox extensions installed? if so, which ones? (ones that would create issues would be NoScript or other JS specific ones) |
|
Doesn't seem to work on firefox 2 but works fine in IE !?
|
Quote:
|
yup i just uninstalled to many bugs and dosent work on mozilla =(
|
Quote:
|
hmm is there a way to hide it, if you already voted.
|
dpsr what did you make to fix it?
|
Quote:
If you want to tell me what error(s) you receive, please do the following: 1. Make sure you DO NOT put the HTML chunk inside of another form it will not work at all if you do this. 2. If you think the error is JS related and you are using Firefox, click Tools > Console then the Errors tab, clear it out first, then try doing the thread rating, Right-click and copy the errors related that show for your forum. 3. You did not upload the JavaScript file to the proper location I have not yet been able to reproduce any of reported the issues (except for one) so please give me the following details when you tell me it is not working: - verify the that you uploaded the JS file to the correct directory first - your browser and version - the source code of the generated HTML on your site |
Quote:
in vBulletin Options > Poll and Thread Rating Options, set "Allow Thread Rating Vote Changes" to No |
Quote:
|
<a href="http://www.9nokta2.com/396-los-angeles-galaxy-cildirmis-olmali.html" target="_blank">http://www.9nokta2.com/396-los-angel...is-olmali.html</a>
i am using firefox 2.0.0.1 |
I have attached a screenshot which shows that it works for me. I really don't know what else I can do. Do you have any Firefox extensions installed? Are you a localized version of Firefox or an English version (I don't believe it would matter but I am asking anyway)? the zip file contains a non-resized version of it.
|
this is very very strange. i am using firebug as an extension. i have disabled it and it still doesnt work for me :/
|
|
Turning allow vote changes to No, didnt make this disappear for myself?
|
abramelin:
Maybe I should ask.. are you getting any JavaScript errors? Or, are you just selecting the radio button and it doesn't do nothing? Or, could you elaborate on the problem you are experiencing? I have two ideas I could try but it's not something I believe would actually make a difference Do you have any other Firefox extensions installed? e.g., GreaseMonkey? |
Quote:
|
no it doesnt give any error the problem is there is nothing happening :) i dont use greasemonkey
|
Quote:
|
no it doesnt it only displays one error
"formobj has no properties" and when i click on the java file in console it display this part higlighted "linkobj.onclick = formobj.submit;" |
Quote:
|
ok thanks, i'll be waiting :)
|
Quote:
When you view the source via your user(admin user..).. can you do a search for "var vb_disable_ajax" ? If you do not see this exactly then post what you have: Code:
var vb_disable_ajax = parseInt("0", 10); Code:
vB_AJAX_Handler.prototype.is_compatible(); And, the default style I see when I go to the site is the one you are using? As a last result, I would try re-installing your browser and deleting your Firefox profile although that seems pretty extreme but there is a slim possibility that would fix it. |
Quote:
|
Quote:
|
gotta love ajax. nice work.
|
All times are GMT. The time now is 05:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|