- Code: Select all
ALTER TABLE prefix_shout CHANGE shout_id shout_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL AUTO_INCREMENT
the next upgrade will require this !
Moderator: Moderators
ALTER TABLE prefix_shout CHANGE shout_id shout_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL AUTO_INCREMENT 



[FIND]
define('PAGE_SHOUTBOX_MAX',-101);
[AFTER ADD]
define('PAGE_SHOUTBOX',-101);[FIND]
$view_pages_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
[AFTER ADD]
if ($view_pages_ary[''.PAGE_SHOUTBOX]['auth_view'])
{
$template->assign_block_vars('switch_shoutbox_on', array());
}[FIND - AND REMOVE]
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="cattitle">
<tr>
<td class="cattitle" width="170" valign="top">
<!-- Shoutbox -->
<table cellpadding="0" cellspacing="0" border="0" class="forumline" width="100%">
<tr>
<td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
</tr>
<tr>
<td>
<iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="280" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</td>
</tr>
</table>
<!-- Shoutbox -->
<br/>
</td>
<td class="cattitle" valign="top" > </td>
<td class="cattitle" valign="top" >
[FIND - AND REMOVE]
</td>
</tr>
</table>
[FIND]
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
[AFTER ADD]
<!-- BEGIN switch_shoutbox_on -->
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
<tr>
<tr>
<td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
</tr>
<td>
<iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</td>
</tr>
</table>
<br/>
<!-- END switch_shoutbox_on -->



###################################################################################################
##
## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
"DELETE FROM ".FORUMS_TABLE." WHERE forum_id<>'-101' AND forum_desc='Shoutbox Page Control'"
);
$mods = array (
'repair fully integrated shoutbox'
);
############################################### Do not change anything below this line ##########################################################################################################################################
##
## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
.
.
. some other SQL
.
.
############################################### Do not change anything below this line #######################################

[FIND]
'U_SHOUTBOX_MAX' => append_sid("shoutbox.$phpEx?max=400"),
[REPLACE WITH]
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),

## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
"CREATE TABLE ".SHOUTBOX_TABLE." (
shout_id MEDIUMINT(8) UNSIGNED NOT NULL,
shout_username VARCHAR(25) NOT NULL,
shout_user_id MEDIUMINT(8) NOT NULL,
shout_group_id MEDIUMINT(8) NOT NULL,
shout_session_time INT(11) NOT NULL,
shout_ip CHAR(8) NOT NULL,
shout_text TEXT NOT NULL,
shout_active MEDIUMINT(8) NOT NULL,
shout_bbcode_uid VARCHAR(10) NOT NULL,
INDEX (shout_id)
)",
"INSERT IGNORE INTO ".FORUMS_TABLE." (forum_id ,cat_id, forum_name, forum_desc, forum_status )
VALUES ('-101', '0', 'SHOUTBOX PAGE', 'Shoutbox Page Control', 1 )"
);
$mods = array (
'fully integrated shoutbox','fully integrated shoutbox'
);
############################################### Do not change anything below this line ######################################### put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
"DROP TABLE ".SHOUTBOX_TABLE,
"CREATE TABLE ".SHOUTBOX_TABLE." (
shout_id MEDIUMINT(8) UNSIGNED NOT NULL auto_increment,
shout_username VARCHAR(25) NOT NULL,
shout_user_id MEDIUMINT(8) NOT NULL,
shout_group_id MEDIUMINT(8) NOT NULL,
shout_session_time INT(11) NOT NULL,
shout_ip CHAR(8) NOT NULL,
shout_text TEXT NOT NULL,
shout_active MEDIUMINT(8) NOT NULL,
shout_bbcode_uid VARCHAR(10) NOT NULL,
INDEX (shout_id)
)"
);
$mods = array (
'fully integrated shoutbox','fully integrated shoutbox'
);
############################################### Do not change anything below this line #######################################

Return to Fully integrated shoutbox [2.0.6/EM]
Users browsing this forum: No registered users and 3 guests