Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=93)
-   -   New forum need testers (http://www.bvlist.com/showthread.php?t=4450)

joeroberts 8th February 2010 07:42

OK I well work on that!

...forgot to add bookmarks table
Code:

CREATE TABLE IF NOT EXISTS `torrent_bookmarks` (
  `topic_id` int(10) unsigned NOT NULL default '0',
  `user_id` int(10) unsigned NOT NULL default '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

forgot to post moresmiles.php
Code:

/*
*----------------------------phpMyBitTorrent V 2.0-beta4-----------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------  Created By Antonio Anzivino (aka DJ Echelon)  --------------*
*-------------              http://www.p2pmania.it              -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com            -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--  This program is free software; you can redistribute it and/or modify  --*
*--  it under the terms of the GNU General Public License as published by  --*
*--  the Free Software Foundation; either version 2 of the License, or      --*
*--  (at your option) any later version.                                    --*
*--                                                                          --*
*--  This program is distributed in the hope that it will be useful,        --*
*--  but WITHOUT ANY WARRANTY; without even the implied warranty of        --*
*--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--  GNU General Public License for more details.                          --*
*--                                                                          --*
*--  You should have received a copy of the GNU General Public License      --*
*--  along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------              http://phpmybittorrent.com              -----------*
*------------------------------------------------------------------------------*
*-----------------  Sunday, September 14, 2008 9:05 PM  ---------------------*
*/

require_once("include/config.php");
echo ' "http://www.w3.org/TR/html4/loose.dtd">



'.$sitename.'

';
?>



        if (!$user->user) loginrequired("user",true);
                $sql = "SELECT * FROM ".$db_prefix."_smiles GROUP BY file ORDER BY id ASC;";
        $smile_res = $db->sql_query($sql);
        echo"\n";
        echo"\n";
        echo"\n";
        echo"\n";
        echo"\n";
        echo"\n";
        echo"\n";
       
        if ($db->sql_numrows($smile_res) > 0) {
        $i=1;
                $smile_rows = $db->sql_fetchrowset($smile_res);
                foreach ($smile_rows as $smile) {
                if($i==1)echo "\n";
                echo"";
                if($i==2)echo "";
                if($i==2)$i=0;
                $i++;
                }
        }
        echo"
\n";
        echo"Smilie List\n";
        echo"
Click a smilie to insert it into your message.
\n";
        echo"
Generic Smilies
\n";
                echo $smile["code"];
                echo"
";
                echo "

";
                        echo " \"".$smile["alt"]."\"\n";
                echo "

";
                echo"
";
        $db->sql_freeresult($smile_res);

        ob_end_flush();
$db->sql_close();
echo '
';
?>


wMan 8th February 2010 08:31

forum moderators shoud be dropdown with user nick names "moderato and higher"

only one mod for forum i think is enough but that's just my opinion

double posting shoudn't be posible, before post shoud check if user is last one who posted

if is return to "don't double post please use "edit" " and link to edit part of users latest post ore some thing like that

cop1976 14th February 2010 16:09

I have a couple questions:

1 Will I be able to move posts from the old to the new forum?
2 Is the function "Last 5 posts on the Forum" will work?
3 That all users will automatically have an account on the new forum?

If all answers are positive, then I move willingly to the new forum.

If not, i stay with phpbb, but certainly many people will use this code.
As usual, good job.

joeroberts 14th February 2010 16:13

#1 not yet
#2 not yet
#3 yes because it is a phpMyBitTorrent forum which dont have a sign up to it
because to sign up you have to sign up to tracker :lol:

besides it is only in Beta testing now

cop1976 14th February 2010 16:50

I'm stupid :lol:

Ok i will wait then :ok:.

daffy 14th March 2010 18:56

any further updates on forums yet.

joeroberts 14th March 2010 18:59

working on Up dates now!:coffee:

daffy 14th March 2010 22:54

cool thanks. also, how can we show last 5 posts from forums to index page.

joeroberts 15th March 2010 12:32

PHP Code:

include_once("include/forum_config.php");
include_once
'themes/'.$theme.'/forums/main.php';
if(!
$user->ulanguage == '' && file_exists('language/forum/'.$user->ulanguage.'.php'))include'language/forum/'.$user->ulanguage.'.php';
elseif (
file_exists('language/forum/'.$language.'.php'))include_once'language/forum/'.$language.'.php';
else
include_once
'language/forum/english.php';
$themedir "" $siteurl "/themes/" $theme "/forums/";
function 
encodehtml($s$linebreaks true)
{
  
$s str_replace(array("<",">","\""), array("<",">","""), str_replace("&", "&", $s));
  if (
$linebreaks)
    
$s = nl2br($s);
  return 
$s;
}

OpenTable("
label");
latestforumposts();
CloseTable();



daffy 16th March 2010 19:39

Quote:

Originally Posted by joeroberts (Post 21817)
PHP Code:

include_once("include/forum_config.php");
include_once
'themes/'.$theme.'/forums/main.php';
if(!
$user->ulanguage == '' && file_exists('language/forum/'.$user->ulanguage.'.php'))include'language/forum/'.$user->ulanguage.'.php';
elseif (
file_exists('language/forum/'.$language.'.php'))include_once'language/forum/'.$language.'.php';
else
include_once
'language/forum/english.php';
$themedir "" $siteurl "/themes/" $theme "/forums/";
function 
encodehtml($s$linebreaks true)
{
  
$s str_replace(array("<",">","\""), array("<",">","""), str_replace("&", "&", $s));
  if (
$linebreaks)
    
$s = nl2br($s);
  return 
$s;
}

OpenTable("
label");
latestforumposts();
CloseTable();



PHP Code:


Warning
:  include_once(include/forum_config.php) [function.include-once]: failed to open streamNo such file or directory in /home/daffy/public_html/index2.php on line 69

Warning
:  include_once() [function.include]: Failed opening 'include/forum_config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/daffy/public_html/index2.php on line 69

Warning
:  include_once(language/forum/english.php) [function.include-once]: failed to open streamNo such file or directory in /home/daffy/public_html/index2.php on line 74

Warning
:  include_once() [function.include]: Failed opening 'language/forum/english.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/daffy/public_html/index2.php on line 74 

shouldnt forum_config be forum_settings as there is no config in include. also language/forum/english dosnt exists


All times are GMT +2. The time now is 01:17.

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