[REQ] ThreadsRating | Collapsable user info

Threads rating

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 stars" in the threads or forums 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:
        $xml->add_tag('voteavg', process_replacement_vars("$vbphrase[rating]: <img class=\"inlineimg\" src=\"$stylevar[imgdir_rating]/rating_$thread[rating].gif\" alt=\"" . construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\" border=\"0\" />"));
Replace with:
PHP:
      $currate = ($thread['voteavg']*25 . px);
        $xml->add_tag('voteavg', process_replacement_vars("<table cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td align=\"right\" width=\"45%\" nowrap=\"nowrap\"><div><strong>$vbphrase[trate_currate]</strong></div></td><td align=\"left\" width=\"55%\" nowrap=\"nowrap\"><ul class=\"star-rating\" title=\"" . construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\"><li class=\"current-rating\" style=\"width:$currate;\"></li></td></tr></table>"));

Using the Product Manager, upload the Product that came with this modification.

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
MixPlay Forum // choose any thread
user: Test
pass: 123456

Click Install, if you like this mod

RapidShare: Easy Filehosting
RapidShare: Easy Filehosting

_________________________________________________________________

Collapsable user info


This mod is cast here by it DI - BBCode
.

Installation is simple:
Upload all files from a folder upload in a root of a forum and to import a product.

To add an option of a choice the user to collapse or not to collapse the information on the user, it is necessary for you:
1. In admincp to open User Profile Fields
2. Choose to Add New User Profile Field
3. Choose Multiple-Selection Checkbox
4. Then fill:
Title: to Turn off the information on the user?
Description: Check No if want that in the list of messages the information on the user not collapse.
Maximum of options: 1
Elements for the line: 1
Options: No
Personal field: Yes
Search in this field in the list of users is accessible: Yes
To display in mimberlist: No
Which page displays this option?: options: show thread
5. Into options of mod in field write the name of just created option (for example field5).

Troubleshooting
If to happen so, that together with the information of the user has collapse also its avatars () then open a template postbit_legacy, find $template_hook [postbit_userinfo_left] and move it below a condition

HTML:
<if condition="$show['avatar']">
				<div class="smallfont">
					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
				</div>
			</if>
DEMO

PS sorry for English

RapidShare: Easy Filehosting
 
Back
Top