Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Rating in Comments (http://www.bvlist.com/showthread.php?t=76)

\n");
                print("\n");
                print("\n");
                print("\n");
with

Code:

print("
\n");
                print("
\n");
                print("
\n");
       

                print("
\n");
Fynnon 26th December 2007 03:24

Rating in Comments
 
TBDev MOD :

Open bittorrent.php


Find:

Code:

($row["editedby"] && get_user_class() >= UC_MODERATOR ? "- [View original]" : "") . "

\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("
$text
$text \n");
               
                if ($xrow["rating"])
                  print("

$rate


Tarix22 4th June 2008 10:06

Re: Rating in Comments
 
screen please

Fynnon 4th June 2008 11:40

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!

wMan 5th June 2008 12:37

Re: Rating in Comments
 
nice 1 works well

Tarix22 16th June 2008 08:19

Re: Rating in Comments
 
But not see any change! :roll:

djblackout 4th May 2010 18:40

find in bittorent.php

($row["editedby"] && get_user_class() >= UC_MODERATOR ? "- [View original]" : "") . "

\n");
$avatar = ($CURUSER["avatars"] == "yes" ? htmlspecialchars($row["avatar"]) : "");
if (!$avatar)
$avatar = "pic/default_avatar.gif";

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

i dont find this in bittorent.php in tbdev09

danbank 5th May 2010 06:27

Because comment not is in bittorrent.php in 2009.

Open include/torrenttable_functions.php and try find it


All times are GMT +2. The time now is 22:44.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.