Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   News Mod problem (http://www.bvlist.com/showthread.php?t=4897)

lovebeer 26th April 2010 17:49

News Mod problem
 
Hi, i tried to install a news mod from tbdev.net put now the tabels from the index page are bigger
The mod is from here: [/U]http://www.tbdev.net/index.php?showt...0&hl=news&st=0

This is the code that I added in index after deleting the first one:
Code:

print("

Recent news");
if (get_user_class() >= UC_ADMINISTRATOR)
 print(" - [News page]");
print("

\n");
$res = mysql_query("SELECT * FROM news WHERE ADDDATE(added, INTERVAL 45 DAY) > NOW() ORDER BY added DESC LIMIT 4") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) > 0)
{
 print("
\n
    ");
     while($array = mysql_fetch_array($res))
     {
          $user = mysql_fetch_array(mysql_query("SELECT username FROM users WHERE id = $array[userid]")) or sqlerr();
    ?>

     
     

     
     
       print("");
     ?>
     
     
     
       print("");
     ?>
     
     
     ");
     ?>
     
     
    " . gmdate("Y-m-d",strtotime($array['added'])) . " - " . $array['title'] . "");
     if (get_user_class() >= UC_ADMINISTRATOR) {
     print(" - [E]");
     print(" [D]");
     }
     print("
    " . format_comment($array['body'],0) . "

       print("

    - $user[username]


     



     }
     print("
\n");
}

The index page looks like this now:

http://www.imagehost.ro/pict/261846184bd5b54aa53ac.PNG


The page should look like this:

http://www.imagehost.ro/pict/261846494bd5b5692543c.PNG

How can I fix this?
Thanks in advance!


All times are GMT +2. The time now is 07:04.

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