Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 26th December 2007, 03:24
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Cool Rating in Comments
TBDev MOD :

Open bittorrent.php


Find:

Code:
($row["editedby"] && get_user_class() >= UC_MODERATOR ? "- [<a href=comment.php?action=vieworiginal&cid=$row[id]>View original</a>]" : "") . "</p>\n");
		$avatar = ($CURUSER["avatars"] == "yes" ? htmlspecialchars($row["avatar"]) : "");
		if (!$avatar)
			$avatar = "pic/default_avatar.gif";
After, add:

Code:
$id = $_GET["id"];
			 {
				$xres = mysql_query("SELECT rating, added FROM ratings WHERE torrent = $id AND user = " . $row["user"]);
				$xrow = mysql_fetch_array($xres);
			}


$rate = "Rated as: " . "".($xrow["rating"] . "");
and replace

Code:
print("<tr valign=top>\n");
		print("<td align=center width=150 style='padding: 0px'><img width=150 src=$avatar></td>\n");
		print("<td class=text>$text</td>\n");
		print("</tr>\n");
with

Code:
print("<tr valign=top>\n");
		print("<td align=center width=150 style='padding: 0px'><img width=150 src=$avatar></td>\n");
		print("<td class=text>$text \n");
		
		 if ($xrow["rating"])
		   print("

$rate</p></td>\n");
	

		print("</tr>\n");
Reply With Quote
The Following User Says Thank You to Fynnon For This Useful Post:
Tibys08 (29th May 2011)
  #2  
Old 4th June 2008, 10:06
Tarix22 Tarix22 is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default Re: Rating in Comments
screen please
Reply With Quote
  #3  
Old 4th June 2008, 11:40
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default Re: Rating in Comments
I don`t have time to test all mods so there will be no screenshots!

You could test it yourself on a test tbdev install!
Reply With Quote
  #4  
Old 5th June 2008, 12:37
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Re: Rating in Comments
nice 1 works well
Reply With Quote
  #5  
Old 16th June 2008, 08:19
Tarix22 Tarix22 is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default Re: Rating in Comments
But not see any change! :roll:
Reply With Quote
  #6  
Old 4th May 2010, 18:40
djblackout djblackout is offline
Senior Member
 
Join Date: Aug 2009
Denmark
Posts: 51
Default
find in bittorent.php

($row["editedby"] && get_user_class() >= UC_MODERATOR ? "- [<a href=comment.php?action=vieworiginal&cid=$row[id]>View original</a>]" : "") . "</p>\n");
$avatar = ($CURUSER["avatars"] == "yes" ? htmlspecialchars($row["avatar"]) : "");
if (!$avatar)
$avatar = "pic/default_avatar.gif";

--------------------------------------

i dont find this in bittorent.php in tbdev09
Reply With Quote
  #7  
Old 5th May 2010, 06:27
danbank danbank is offline
Member
 
Join Date: Apr 2010
P2P
Posts: 13
Default
Because comment not is in bittorrent.php in 2009.

Open include/torrenttable_functions.php and try find it
__________________
You think you know me? Well, find out, ask me
Reply With Quote
Reply

Tags
comments , rating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Rating in browse lovebeer TBDev 3 31st May 2010 23:54
Anonymous Comments Rendevous Mods & Themes 0 4th May 2010 12:17
PM on Comments xxx2008 Free Torrent Source 5 17th January 2010 13:16
Dead IMDB rating proba10 Community Cafe 2 7th January 2010 15:24
comments wMan BT.Manager (phpMyBitTorrent) 0 2nd September 2009 18:32



All times are GMT +2. The time now is 07:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.