Jamie_Garland
Jun 28th, 2006, 07:44 PM
Hello Guys can you help me please i need the following codes links to open in a new window at the moment it only opens up in the frames you can see them here. MBSOFTWARE.BIZ (http://mbsoftware.biz) ...
LATEST ON THE FORUMS.PHP
<?php
//--------------------------//
// Created by Miles Johnson //
// www.terralabs.net //
// Version 1.1.0 //
//--------------------------//
// Put this file in your http://domain.com/forum directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at admin@terralabs.net
// Put this code into your website for the script to work
/* <?php include("http://domain.com/forum_url/latest_posts.php");?> */
// CHANGES SINCE 1.0.0
// 1.1.0
// The echoed links have changed to fit 2.0 and html standards
////////////////
// X of Posts //
////////////////
$posts = "5"; // Change this to how many posts you want displayed
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT last_poster_name, last_poster_id, title, tid, forum_id, last_post FROM ibf_topics ORDER BY last_post DESC LIMIT 0,".$posts);
/////////////////
// Post Format //
/////////////////
while($out = $db->fetch_row($query))
{
echo "
<a href=\"$INFO[board_url]/index.php?showtopic=$out[tid]&view=getnewpost\">$out[title]</a> by
<a href=\"$INFO[board_url]/index.php?showuser=$out[last_poster_id]\">$out[last_poster_name]</a><br />";
}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
?>
NEWEST MEMBER.PHP
<?php
//--------------------------//
// Created by Kris Nixon //
// www.knixon.info //
// Version 1.0 //
//--------------------------//
// Put this file in your http://domain.com/forum directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at krischian.nixon@gmail.com
// Put this code into your website for the script to work
/* <?php include("http://domain.com/forum_url/newest_members.php");?> */
////////////////
// X of members //
////////////////
$members = "5"; // Change this to how many members you want displayed
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT id, name, email, ip_address, posts FROM ibf_members ORDER BY id DESC LIMIT 0,".$members);
/////////////////
// Member Format //
/////////////////
while($out = $db->fetch_row($query))
{
echo "
Welcome to <a href=\"$INFO[board_url]/index.php?showuser=$out[id]\">$out[name]</a><br>
";}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
?>
MEMBERS LIST.PHP
<?php
//===============================================
//DZMemberlist v1.0.0
//By Zappix
//http://dzone.d-padnetwork.com
//===============================================
// Setup variables
$host = "localhost";
$dbname = "mbsoft_forum";
$dbuser = "mbsoft_forum";
$dbpass = "brodie";
$link = mysql_connect($host, $dbuser, $dbpass)
or die("Could not connect: " . mysql_error());
mysql_select_db($dbname) or die("Could not select database");
$members = "5";
$getuser = mysql_query("SELECT * from ibf_members order by name asc");
echo("<table width=\"100%\" border=\"0\"><tr> <td>Username</td><td>Group</td><td></td></tr>");
while ($user = mysql_fetch_array($getuser))
{
$getgroup = mysql_query("SELECT * from ibf_groups where g_id = '$user[mgroup]'");
$group = mysql_fetch_array($getgroup);
echo ("<tr><td><a href=\"forum/index.php?showuser=$user[id]\">$user[name]</a>
</td><td> $group[g_title] </td><td> </td></tr>
");
}
echo("</table>");
?>
TOP POSTERS.PHP
<?php
//--------------------------//
// Created by Kris Nixon //////
// www.knixon.info //////
// Version 1.0 //////
//--------------------------//
// Put this file in your http://www.yourdomain.com/yourforum/ directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at krischian.nixon@gmail.com
// Put this code into your website for the script to work.
// Must edit to your domain name.
/* <?php include("http://www.domain.com/youbb/top_posters.php");?> */
//////////////////////////////
// X of Top Posters to Show //
//////////////////////////////
$members = "5"; // Change this number to the number of Top Posters you want displayed.
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT id, name, posts FROM ibf_members ORDER BY posts DESC LIMIT 0,".$members);
//////////////
// Format //
//////////////
while($out = $db->fetch_row($query))
{
echo "
<a href=\"$INFO[board_url]/index.php?showuser=$out[id]\">$out[name]</a> ($out[posts]) posts<br/>";
}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
// If you want a customized Format please feel free to Private Message me!
?>
LATEST ON THE FORUMS.PHP
<?php
//--------------------------//
// Created by Miles Johnson //
// www.terralabs.net //
// Version 1.1.0 //
//--------------------------//
// Put this file in your http://domain.com/forum directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at admin@terralabs.net
// Put this code into your website for the script to work
/* <?php include("http://domain.com/forum_url/latest_posts.php");?> */
// CHANGES SINCE 1.0.0
// 1.1.0
// The echoed links have changed to fit 2.0 and html standards
////////////////
// X of Posts //
////////////////
$posts = "5"; // Change this to how many posts you want displayed
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT last_poster_name, last_poster_id, title, tid, forum_id, last_post FROM ibf_topics ORDER BY last_post DESC LIMIT 0,".$posts);
/////////////////
// Post Format //
/////////////////
while($out = $db->fetch_row($query))
{
echo "
<a href=\"$INFO[board_url]/index.php?showtopic=$out[tid]&view=getnewpost\">$out[title]</a> by
<a href=\"$INFO[board_url]/index.php?showuser=$out[last_poster_id]\">$out[last_poster_name]</a><br />";
}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
?>
NEWEST MEMBER.PHP
<?php
//--------------------------//
// Created by Kris Nixon //
// www.knixon.info //
// Version 1.0 //
//--------------------------//
// Put this file in your http://domain.com/forum directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at krischian.nixon@gmail.com
// Put this code into your website for the script to work
/* <?php include("http://domain.com/forum_url/newest_members.php");?> */
////////////////
// X of members //
////////////////
$members = "5"; // Change this to how many members you want displayed
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT id, name, email, ip_address, posts FROM ibf_members ORDER BY id DESC LIMIT 0,".$members);
/////////////////
// Member Format //
/////////////////
while($out = $db->fetch_row($query))
{
echo "
Welcome to <a href=\"$INFO[board_url]/index.php?showuser=$out[id]\">$out[name]</a><br>
";}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
?>
MEMBERS LIST.PHP
<?php
//===============================================
//DZMemberlist v1.0.0
//By Zappix
//http://dzone.d-padnetwork.com
//===============================================
// Setup variables
$host = "localhost";
$dbname = "mbsoft_forum";
$dbuser = "mbsoft_forum";
$dbpass = "brodie";
$link = mysql_connect($host, $dbuser, $dbpass)
or die("Could not connect: " . mysql_error());
mysql_select_db($dbname) or die("Could not select database");
$members = "5";
$getuser = mysql_query("SELECT * from ibf_members order by name asc");
echo("<table width=\"100%\" border=\"0\"><tr> <td>Username</td><td>Group</td><td></td></tr>");
while ($user = mysql_fetch_array($getuser))
{
$getgroup = mysql_query("SELECT * from ibf_groups where g_id = '$user[mgroup]'");
$group = mysql_fetch_array($getgroup);
echo ("<tr><td><a href=\"forum/index.php?showuser=$user[id]\">$user[name]</a>
</td><td> $group[g_title] </td><td> </td></tr>
");
}
echo("</table>");
?>
TOP POSTERS.PHP
<?php
//--------------------------//
// Created by Kris Nixon //////
// www.knixon.info //////
// Version 1.0 //////
//--------------------------//
// Put this file in your http://www.yourdomain.com/yourforum/ directory
// Should be in the same path as conf_global.php
// Do not change anything unless I have added the tag at the end of it
// Any questions email me at krischian.nixon@gmail.com
// Put this code into your website for the script to work.
// Must edit to your domain name.
/* <?php include("http://www.domain.com/youbb/top_posters.php");?> */
//////////////////////////////
// X of Top Posters to Show //
//////////////////////////////
$members = "5"; // Change this number to the number of Top Posters you want displayed.
//////////////
// Required //
//////////////
require "ips_kernel/class_db_mysql.php";
require "conf_global.php";
//////////////
// Database //
//////////////
$db = new db_driver;
$db->obj['sql_database'] = $INFO['sql_database'];
$db->obj['sql_user'] = $INFO['sql_user'];
$db->obj['sql_pass'] = $INFO['sql_pass'];
$db->obj['sql_host'] = $INFO['sql_host'];
$db->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$db->connect();
$query = $db->query("SELECT id, name, posts FROM ibf_members ORDER BY posts DESC LIMIT 0,".$members);
//////////////
// Format //
//////////////
while($out = $db->fetch_row($query))
{
echo "
<a href=\"$INFO[board_url]/index.php?showuser=$out[id]\">$out[name]</a> ($out[posts]) posts<br/>";
}
// Change this to the format you want but make sure its in the echo ""; command,
// and has the whole link that is inside the <a> command or it will not work
// If you want a customized Format please feel free to Private Message me!
?>