|
#1
|
||||
|
||||
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"; 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"] . ""); 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"); 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"); |
The Following User Says Thank You to Fynnon For This Useful Post: | ||
Tibys08 (29th May 2011)
|
#2
|
|||
|
|||
Re: Rating in Comments
screen please
|
#3
|
||||
|
||||
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! |
#4
|
|||
|
|||
Re: Rating in Comments
nice 1 works well
|
#5
|
|||
|
|||
Re: Rating in Comments
But not see any change! :roll:
|
#6
|
|||
|
|||
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 |
#7
|
|||
|
|||
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 |
Tags |
comments , rating |
|
|
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 |