The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Threads rating Details »» | |||||||||||||||||||||||||
This mod merge of three old mods:
vB.org Rating System Replica [AJAX] Your One Click Thread Ratings Who Rated This Thread / Delete Who Rated Futures: - Now it is not necessary to delete elements from a template - You can choose id forums, where a rating threads to display it is necessary or not necessary - On click rating icon in the threads you get info about voting - You can delete vote from thread rating - Realisation with AJAX Install: Extract all files from folder "Upload" in forum root directory Find in file threadrate.php on youre server: PHP Code:
PHP Code:
Admincp > Plugins and Products > Manage Products > [Add/Import Product] > product-trate.xml Update: Uninstall old mod and import product (v1.3) Upload stars.png in folder your style, by default /images/rating/ Enjoy! DEMO www.mixplay.ru/forum.php // choose any thread user: Test pass: 123456 Thread Rating T?rk?e 1.4.1.zip Click Install, if you like this mod Show Your Support
|
Comments |
#152
|
||||
|
||||
Hm, no, go in the trate template, find all $stylevar[imgdir_rating]/stars.png, and then replace founded items on
HTML Code:
<if condition="in_array($thread[forumid], array(1,2,3,4,...,N)">$stylevar[imgdir_rating]/black_stars.png<else />$stylevar[imgdir_rating]/stars.png</if> Must be work |
#153
|
||||
|
||||
Mod is updated.
Fixed problem when rating not displaying after voting (on some forums). Quick fix for those who have this problem. In template trate find HTML Code:
<if condition="$show['ratethread'] && $threadinfo['vote']==NULL">
HTML Code:
<if condition="$show['ratethread']">
|
#154
|
|||
|
|||
Quote:
Code:
<if condition="$rated"> <span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /></if></span> <else /> <div align="left"><span class="ratetext">$vbphrase[rate_this_thread] - <em>$thread[title]</em>.</span></div> <a name="goto_threadrating"></a> Code:
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if> http://www.XXX/enlighten/rating/rating_1.gif http://www.XXX.com/enlighten/rating/rating_2.gif ... Up to five rating_5.gif How can i change it so in the template? |
#155
|
||||
|
||||
Use the last version of mod.
|
#156
|
|||
|
|||
Sure friend, but you make it the stars with the same PNG image. Could be with different images? I explain you, i have a cinema subforum where i want to have different images for the different ratings instead the film is great, average, poor... and when the post have a rating appears a different image. The change you did makes that use only one image: Stars.png. Isnt it?
Thanks for your answer, i really apreciate your work. |
#157
|
|||
|
|||
Hi mad@max,
your mod is working perfectly (vB 3.6.7), thanks for sharing. But I have one request. I am also using mod vBi-Gallery for vB 3.6.X (https://vborg.vbsupport.ru/showthread.php?t=128598), which can transform specific sections of forum to simple galleries using own versions of some templates with modifications of layout (for this mod are relevant own versions of templates showthread and threadbit, there are also own verions of postbit and forumdisplay, others are only for gallery purposes like to show newest threads/pictures in forumhome etc.) - in the way of functionality of sections, threads and posts is everything standard, image for gallery is based on ordinary vB attachment in first post - modifications are only in the way of presentation of threads in forumhome and first post in threads). From this reason of own templates your mod "[AJAX] Threads rating" doesn't work or to be more specific the box of rating system doesn't appear in these sections, which are set to be "galleries". I suppose, that it needs only minor modifications of conditions in some places to appear also in these sections using another versions of templates, but my attempts were useless so far :-(. Could you please direct me to what is needed to get this work also in mentioned situation with another versions of mentioned templates? I would like to use your rating modification in "gallery showthread" and "standard vB showthread" as well, but if it is too complicated, then I rather choose only "gallery showthread", becouse I really need better presentation of thread rating in these sections. I really like your solution and I would like to use it also for our "galleries" (I looked for some hack just becouse of using it in our "galleries"). Please, help :-). |
#158
|
||||
|
||||
Wow, how many words Please, type your site.
|
#159
|
|||
|
|||
Thanks for fast reply. Our forum is www.svethardware.cz/forum and section with mentioned functionality of simple gallery is for example this: http://www.svethardware.cz/forum/forumdisplay.php?f=212 (we have competition for our users in creating wallpapers on specific topic, every month new round with new topic and this way via only modified templates it is the best for this purpose - I don't want to use for this some special gallery with own database, comments and rating system). For viewing wallpaper (picture) in full size is needed to be logged in, but if you click on name of thread (first row in small boxes in forumdisplay), then you will se own template showthread of this gallery plugin.
Your plugin is disabled for whole forum right now. If you need it to be enabled somewhere for info, just let me know. |
#160
|
|||
|
|||
Installed, tnx
Two questions, if later for some reason (no support or whatever) we unistalled it, ratings still stay? Can we somehowe enable guests to viewing rating? |
#161
|
||||
|
||||
Would it be possible to have the ajax rating bit (stars) only for vb blog as well perhaps?
If preferred after some kind of donation of course. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|