#
#-----[ FIND ]------------------------------------------------
#
$tables = array(
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Fully integrated shoutbox MOD
$tables[] = 'shout';
// End add - Fully integrated shoutbox MOD
#
// Start add - Fully integrated shoutbox MOD
$tables[] = 'shout',
// End add - Fully integrated shoutbox MOD
$tables = array('auth_access', 'banlist', .......);
// Start add - Fully integrated shoutbox MOD
$tables[] = 'shout';
// End add - Fully integrated shoutbox MOD
)//simple
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_LOCKED_IMG' =>
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Fully integrated shoutbox MOD
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD
#
#-----[ OPEN ]------------------------------------------------
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Start add - Fully integrated shoutbox MOD -->
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
<div class="forumline">
<p class="row-header"><span><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></p>
<p class="row1 gensmall"><iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true">U kunt de shoutbox niet gebruiken</iframe></p>
</div>
</table>
<br/>
<!-- End add - Fully integrated shoutbox MOD -->
#
#-----[ OPEN ]----------------------------------------------
//
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
// then get it's value, find the number of topics with dates newer than it (to properly
// handle pagination) and alter the main query
//
// Start add - Fully integrated shoutbox MOD
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
<span class="gensmall"><b>{PAGINATION}</b><br />
</span></td>
</tr>
</table>
<!-- Start add - Fully integrated shoutbox MOD -->
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
<div class="forumline">
<p class="row-header"><span><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></p>
<p class="row1 gensmall"><iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true">U kunt de shoutbox niet gebruiken</iframe></p>
</div>
</table>
<br/>
<!-- End add - Fully integrated shoutbox MOD -->
Yunus Çengel yazdı:http://www.siteismi/phpbb2/shoutbox_max.php dosyasındaki forum yazları şeklinde çıkan eski chat yazılarını elle tek tek silmek çok uzun sürüyor bunun kısa yolu yok mudur?
sahip yazdı:Yunus Çengel yazdı:http://www.siteismi/phpbb2/shoutbox_max.php dosyasındaki forum yazları şeklinde çıkan eski chat yazılarını elle tek tek silmek çok uzun sürüyor bunun kısa yolu yok mudur?
PhpMyAdminden dene daha rahat edersin tek tek zor oluyor...
<?php
/***************************************************************************
* admin_truncate_shoutbox.php
* -------------------
*
* Version : 1.0.0
* Email : sophiia@users.sourceforge.net
* Copyright : Sophiia 2005
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['Empty Shoutbox'] = $file;
return;
}
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('pagestart.' . $phpEx);
//
//check for userlevel
//
if( !$userdata['session_logged_in'] )
{
header('Location: ' . append_sid("login.$phpEx?redirect=admin/admin_truncate_shoutbox.$phpEx", true));
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
//end check
//
// Begin erasing the stuff in the Shoutbox by Sophiia
//
$page_title = 'Updating the database and Erasing contents of the Shoutbox';
echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database and Erasing contents of the Shoutbox</th></tr><tr><td><span class="genmed"><ul type="circle">';
$sql = array();
$sql[] = "TRUNCATE TABLE `" . $table_prefix . "shout`";
for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successful</b></font></li><br />';
}
}
echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>';
echo '<tr><th>Truncate of table is complete</th></tr><tr><td><span class="genmed"><br /></span></td></table>';
include('page_footer_admin.' . $phpEx);
?>
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir