[2.0.6] Custom Title MOD

The cleanup is complete. This forum is now read only.
bratzer
Registered User
Posts: 7
Joined: Sun Jul 24, 2005 9:54 am

Post by bratzer »

bratzer wrote: Hey all,

Installed everything perfectly but ran into an error...
Parse error: parse error, unexpected '}' in /home2/wrsquad/public_html/forum/includes/template.php(127) : eval()'d code on line 59


ANy help plz?


Bomp :P

bratzer
Registered User
Posts: 7
Joined: Sun Jul 24, 2005 9:54 am

Post by bratzer »

bratzer wrote:
bratzer wrote:Hey all,

Installed everything perfectly but ran into an error...
Parse error: parse error, unexpected '}' in /home2/wrsquad/public_html/forum/includes/template.php(127) : eval()'d code on line 59


ANy help plz?


Bomp :P


Comon guys, sorry for the rush...but i could really need some help...

Barton244
Registered User
Posts: 1
Joined: Wed Jul 27, 2005 3:40 am

Post by Barton244 »

Well not sure if its this mod or not causeing the problem but i installed the easymod add-on and then installed the custom title mod (prior to installing made sure everything worked ok) and now i can view forum's and topics but not posts any help would be appreciative possible linkage too :)

Thanks in advance
Barton

nba1341
Registered User
Posts: 46
Joined: Sun Mar 13, 2005 1:07 pm

Post by nba1341 »

nba1341 wrote: ive asked this before but never gotten an answer

what would i do to change my ranks color im not sure which code to use

what would i use? someone please post an example ive tried lots of codes but havent gotten any to work


anybody at all

Selderaya
Registered User
Posts: 36
Joined: Mon Jul 04, 2005 8:03 pm
Location: Amsterdam
Contact:

Post by Selderaya »

I looked through the last 30 pages or so and ran out of time (and, quite frankly, interest - dang, but this topic is long), so I thought I'd just ask.


Is there a way to get rid of the character limit? Only admins have the ability to change CTs so I don't have to worry about users abusing it. I changed it so that HTML is allowed, except now we're running out of space in some cases. Help would be greatly appreciated.

Thanks in advance!

DaveSmooth
Registered User
Posts: 69
Joined: Mon Jul 11, 2005 11:24 pm
Contact:

Post by DaveSmooth »

DaveSmooth wrote:
van_Gogh wrote:@DaveSmooth:
You're welcome! But i'm afraid to tell you i can't find an error in your file. the modifications seem correct. Can you pleasy specify your problem.
However, when clicking a users name in a post, you get this link
What exactly do you mean by this? When clicking the button "profile" under the post, right to the pm-button? Does the rest of the mod work correctly? so you should see the custom title next to the post someone makes under his nick. and in the profile also. does this work?


OK..what I meant by that is this. When you are viewing a post and you click on the users name, not the profile button, you get:

Code: Select all

javascript:emoticon('[b]DaveSmooth[/b], ')
Only when you click their name though, the Profile button works and takes you their profile or if you click their name anywhere else, it takes you to their profile.

As for the rest of the mod working correctly, no, it doesn't. You don't see the users custom title in the post under their nick. It does appear in their profile, but not in posts.

If you'd like to take a look at it, my board is here:

http://www.deepprogressions.com/board/

Thanks again to all who are trying to help me with this.



Wondering if anybody has figured this one out yet? I know by default you can't click on the users name in a post anyway, but I have the option now since installing this mod and get the strange code above. It doesn't take you anywhere, but thats what the link is.

Or, how can I get this mod uninstalled? Manually.

Aexoden
Registered User
Posts: 364
Joined: Mon Jan 14, 2002 1:18 am
Location: Medical Lake, WA
Name: Jason Lynch
Contact:

Post by Aexoden »

DaveSmooth wrote: Wondering if anybody has figured this one out yet? I know by default you can't click on the users name in a post anyway, but I have the option now since installing this mod and get the strange code above. It doesn't take you anywhere, but thats what the link is.

Or, how can I get this mod uninstalled? Manually.


It's most likely going to be in the template files. I don't remember the name for the file. Maybe viewtopic_body.tpl.

Selderaya: If you're at all adept at PHP, it should be fairly trivial to remove the limit check in admin_users.php (though I didn't even recall that I activated the limit check for admins). Otherwise, you can just set the limit really high (1000 characters? 10000?), and you shouldn't have any problems. (Unless of course I was stupid and prevented you from entering such a high limit.)

Selderaya
Registered User
Posts: 36
Joined: Mon Jul 04, 2005 8:03 pm
Location: Amsterdam
Contact:

Post by Selderaya »

If you're at all adept at PHP, it should be fairly trivial to remove the limit check in admin_users.php

I looked through admin_users.php and everything relating to/surrounding the custom_title thing, but couldn't find where/how to remove the limit check. (I'm not all that adept at PHP, I'm afraid - only started using it a few weeks back.) If you could point me the right way, that'd be awesome.
Otherwise, you can just set the limit really high (1000 characters? 10000?), and you shouldn't have any problems. (Unless of course I was stupid and prevented you from entering such a high limit.)

I'm guessing it's the second then *g* Because even if I change the limit in the configuration screen, disregarding the "This controls how long a user may set their custom title. Please enter a number from 0 to 255" message, it won't work when I enter a title longer than 255 characters in the user management screen (having changed the length allowed in the input box in user_edit_body.tpl). Or rather, I can enter a title that long - it just cuts off all characters past the 255 character limit as soon as I submit it.

Aexoden
Registered User
Posts: 364
Joined: Mon Jan 14, 2002 1:18 am
Location: Medical Lake, WA
Name: Jason Lynch
Contact:

Post by Aexoden »

Selderaya wrote:
If you're at all adept at PHP, it should be fairly trivial to remove the limit check in admin_users.php

I looked through admin_users.php and everything relating to/surrounding the custom_title thing, but couldn't find where/how to remove the limit check. (I'm not all that adept at PHP, I'm afraid - only started using it a few weeks back.) If you could point me the right way, that'd be awesome.
Otherwise, you can just set the limit really high (1000 characters? 10000?), and you shouldn't have any problems. (Unless of course I was stupid and prevented you from entering such a high limit.)

I'm guessing it's the second then *g* Because even if I change the limit in the configuration screen, disregarding the "This controls how long a user may set their custom title. Please enter a number from 0 to 255" message, it won't work when I enter a title longer than 255 characters in the user management screen (having changed the length allowed in the input box in user_edit_body.tpl). Or rather, I can enter a title that long - it just cuts off all characters past the 255 character limit as soon as I submit it.


Well, now that I know the limit is 255, I remember why I did it. But that does mean to fix the problem, we'll need to make some code changes anyway. From my quick look over the MOD, I don't think I even check against the length in the admin panel (I think because I wanted admins to be exempt from the requirements, because they supposedly know what they're doing.)

However, the field in the database I'm using for the title is a VARCHAR, and under many versions of MySQL, that's limited to 255 characters. So if you have access to phpMyAdmin, you'd need to go into the database, go to the phpbb_users table (or something else_users if you changed the prefix), and change the type of the user_custom_title field from VARCHAR to TEXT. If worse comes to worse, I may be able to provide a script to do that, but I'd rather not go to all that trouble if it's something you can handle on your own. If not, let me know.

Selderaya
Registered User
Posts: 36
Joined: Mon Jul 04, 2005 8:03 pm
Location: Amsterdam
Contact:

Post by Selderaya »

Worked like a charm! :D Thank you so much for your help :)

DaveSmooth
Registered User
Posts: 69
Joined: Mon Jul 11, 2005 11:24 pm
Contact:

Post by DaveSmooth »

Aexoden wrote:
DaveSmooth wrote:Wondering if anybody has figured this one out yet? I know by default you can't click on the users name in a post anyway, but I have the option now since installing this mod and get the strange code above. It doesn't take you anywhere, but thats what the link is.

Or, how can I get this mod uninstalled? Manually.


It's most likely going to be in the template files. I don't remember the name for the file. Maybe viewtopic_body.tpl.


What would be in the viewtopic_body.tpl file? The error link I get? Will this cause the mod to behave correctly if I fix whatever may be in this file? I have no clue...I'm sorry. Will this fix the problem that the users title does not appear in posts?

Aexoden
Registered User
Posts: 364
Joined: Mon Jan 14, 2002 1:18 am
Location: Medical Lake, WA
Name: Jason Lynch
Contact:

Post by Aexoden »

DaveSmooth wrote: What would be in the viewtopic_body.tpl file? The error link I get? Will this cause the mod to behave correctly if I fix whatever may be in this file? I have no clue...I'm sorry. Will this fix the problem that the users title does not appear in posts?


Depending on what the problem actually is, and if the problem is in the template, it may work. I don't know what other problems there may be. Have you installed any other mods?

theophilus
Registered User
Posts: 51
Joined: Tue May 24, 2005 8:27 pm
Location: Oregon
Contact:

Post by theophilus »

nevermind

User avatar
cardude
Registered User
Posts: 67
Joined: Sat May 07, 2005 2:06 am

Post by cardude »

When I installed this mod, I get an error in the admincp. That frame on the left has an error in it. It says -

Code: Select all

Parse error: parse error, unexpected $ in /usr/export/www/hosting/myforum/forum/admin/admin_board.php on line 382
I look in that file and I don't see what is wrong with line 382.

That line -

Code: Select all

?>
My whole file -

Code: Select all

<?php
/***************************************************************************
 *                              admin_board.php
 *                            -------------------
 *   begin                : Thursday, Jul 12, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: admin_board.php,v 1.51.2.9 2004/11/18 17:49:33 acydburn Exp $
 *
 *
 ***************************************************************************/

define('IN_PHPBB', 1);

if( !empty($setmodules) )
{
	$file = basename(__FILE__);
	$module['General']['Configuration'] = "$file";
	return;
}

//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);

//
// Pull all config data
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
	message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql);
}
else
{
	while( $row = $db->sql_fetchrow($result) )
	{
		$config_name = $row['config_name'];
		$config_value = $row['config_value'];
		$default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;
		
		$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];

		if ($config_name == 'cookie_name')
		{
			$cookie_name = str_replace('.', '_', $new['cookie_name']);
		}

		if( isset($HTTP_POST_VARS['submit']) )
		{
			$sql = "UPDATE " . CONFIG_TABLE . " SET
				config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
				WHERE config_name = '$config_name'";
			if( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
			}
		}
	}

	if( isset($HTTP_POST_VARS['submit']) )
	{
		$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], "<a href=\"" . append_sid("admin_board.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

		message_die(GENERAL_MESSAGE, $message);
	}
}

$style_select = style_select($new['default_style'], 'default_style', "../templates");
$lang_select = language_select($new['default_lang'], 'default_lang', "language");
$timezone_select = tz_select($new['board_timezone'], 'board_timezone');

$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";

$cookie_secure_yes = ( $new['cookie_secure'] ) ? "checked=\"checked\"" : "";
$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : "";

$html_tags = $new['allow_html_tags'];

$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : "";
$override_user_style_no = ( !$new['override_user_style'] ) ? "checked=\"checked\"" : "";

$html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : "";
$html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : "";

$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : "";

$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : "";
$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : "";
$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";

$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : '';
$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : '';

$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";

$gzip_yes = ( $new['gzip_compress'] ) ? "checked=\"checked\"" : "";
$gzip_no = ( !$new['gzip_compress'] ) ? "checked=\"checked\"" : "";

$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : "";

$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";

$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";

$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : "";
$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : "";

$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : "";
$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : "";

$quickreply_yes = ( $new['allow_quickreply'] ) ? "checked=\"checked\"" : "";
$quickreply_no = ( !$new['allow_quickreply'] ) ? "checked=\"checked\"" : "";

$anonymous_sqr_mode_basic = ( $new['anonymous_sqr_mode']==0 ) ? 'checked="checked"' : '';
$anonymous_sqr_mode_advanced = ( $new['anonymous_sqr_mode']!=0 ) ? 'checked="checked"' : '';

$anonymous_sqr_select = quick_reply_select($new['anonymous_show_sqr'], 'anonymous_show_sqr');

$anonymous_open_sqr_yes = ( $new['anonymous_open_sqr'] ) ? "checked=\"checked\"" : "";
$anonymous_open_sqr_no = ( !$new['anonymous_open_sqr'] ) ? "checked=\"checked\"" : "";
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";

$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
switch( $new['custom_title_mode'] )
{
	case CUSTOM_TITLE_MODE_INDEPENDENT: 
		$custom_title_mode_independent = "checked=\"checked\"";
		break;
	case CUSTOM_TITLE_MODE_REPLACE_RANK:
		$custom_title_mode_replace_rank = "checked=\"checked\"";
		break;
	case CUSTOM_TITLE_MODE_REPLACE_BOTH:
		$custom_title_mode_replace_both = "checked=\"checked\"";
		break;
	default:
		break;

$template->set_filenames(array(
	"body" => "admin/board_config_body.tpl")
);

//
// Escape any quotes in the site description for proper display in the text
// box on the admin page 
//
$new['site_desc'] = str_replace('"', '"', $new['site_desc']);
$new['sitename'] = str_replace('"', '"', strip_tags($new['sitename']));
$template->assign_vars(array(
	"S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"),

	"L_YES" => $lang['Yes'],
	"L_NO" => $lang['No'],
	"L_CONFIGURATION_TITLE" => $lang['General_Config'],
	"L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'],
	"L_GENERAL_SETTINGS" => $lang['General_settings'],
	"L_SERVER_NAME" => $lang['Server_name'], 
	"L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'], 
	"L_SERVER_PORT" => $lang['Server_port'], 
	"L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'], 
	"L_SCRIPT_PATH" => $lang['Script_path'], 
	"L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'], 
	"L_SITE_NAME" => $lang['Site_name'],
	"L_SITE_DESCRIPTION" => $lang['Site_desc'],
	"L_DISABLE_BOARD" => $lang['Board_disable'], 
	"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'], 
	"L_ACCT_ACTIVATION" => $lang['Acct_activation'], 
	"L_NONE" => $lang['Acc_None'], 
	"L_USER" => $lang['Acc_User'], 
	"L_ADMIN" => $lang['Acc_Admin'], 
	"L_VISUAL_CONFIRM" => $lang['Visual_confirm'], 
	"L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'], 
	"L_COOKIE_SETTINGS" => $lang['Cookie_settings'], 
	"L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'], 
	"L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
	"L_COOKIE_NAME" => $lang['Cookie_name'], 
	"L_COOKIE_PATH" => $lang['Cookie_path'], 
	"L_COOKIE_SECURE" => $lang['Cookie_secure'], 
	"L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'], 
	"L_SESSION_LENGTH" => $lang['Session_length'], 
	"L_PRIVATE_MESSAGING" => $lang['Private_Messaging'], 
	"L_INBOX_LIMIT" => $lang['Inbox_limits'], 
	"L_SENTBOX_LIMIT" => $lang['Sentbox_limits'], 
	"L_SAVEBOX_LIMIT" => $lang['Savebox_limits'], 
	"L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'], 
	"L_ENABLED" => $lang['Enabled'], 
	"L_DISABLED" => $lang['Disabled'], 
	"L_ABILITIES_SETTINGS" => $lang['Abilities_settings'],
	"L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'],
	"L_FLOOD_INTERVAL" => $lang['Flood_Interval'],
	"L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'], 
	"L_BOARD_EMAIL_FORM" => $lang['Board_email_form'], 
	"L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'], 
	"L_TOPICS_PER_PAGE" => $lang['Topics_per_page'],
	"L_POSTS_PER_PAGE" => $lang['Posts_per_page'],
	"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
	"L_DEFAULT_STYLE" => $lang['Default_style'],
	"L_OVERRIDE_STYLE" => $lang['Override_style'],
	"L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'],
	"L_DEFAULT_LANGUAGE" => $lang['Default_language'],
	"L_DATE_FORMAT" => $lang['Date_format'],
	"L_SYSTEM_TIMEZONE" => $lang['System_timezone'],
	"L_ENABLE_GZIP" => $lang['Enable_gzip'],
	"L_CUSTOM_TITLE_SETTINGS" => $lang['Custom_title_settings'],
	"L_CUSTOM_TITLE_DAYS" => $lang['Custom_title_days'], 
	"L_CUSTOM_TITLE_POSTS" => $lang['Custom_title_posts'],
	"L_CUSTOM_TITLE_MODE" => $lang['Custom_title_mode'],
	"L_CUSTOM_TITLE_MODE_EXPLAIN" => $lang['Custom_title_mode_explain'],
	"L_CUSTOM_TITLE_MODE_INDEPENDENT" => $lang['Custom_title_mode_independent'],
	"L_CUSTOM_TITLE_MODE_REPLACE_RANK" => $lang['Custom_title_mode_replace_rank'],
	"L_CUSTOM_TITLE_MODE_REPLACE_BOTH" => $lang['Custom_title_mode_replace_both'],
	"L_CUSTOM_TITLE_MAXLENGTH" => $lang['Custom_title_maxlength'],
	"L_CUSTOM_TITLE_MAXLENGTH_EXPLAIN" => $lang['Custom_title_maxlength_explain'],
	"L_ENABLE_PRUNE" => $lang['Enable_prune'],
	"L_ALLOW_HTML" => $lang['Allow_HTML'],
	"L_ALLOW_BBCODE" => $lang['Allow_BBCode'],
	"L_ALLOWED_TAGS" => $lang['Allowed_tags'],
	"L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'],
	"L_ALLOW_SMILIES" => $lang['Allow_smilies'],
	"L_SMILIES_PATH" => $lang['Smilies_path'],
	"L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'],
	"L_ALLOW_SIG" => $lang['Allow_sig'],
	"L_MAX_SIG_LENGTH" => $lang['Max_sig_length'],
	"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
	"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
	"L_SQR_SETTINGS" => $lang['SQR_settings'],
	"L_ALLOW_QUICK_REPLY" => $lang['Allow_quick_reply'],
	"L_ANONYMOUS_SHOW_SQR" => $lang['Anonymous_show_SQR'],
	"L_ANONYMOUS_SQR_MODE" => $lang['Anonymous_SQR_mode'],
	"L_ANONYMOUS_SQR_MODE_BASIC" => $lang['Quick_reply_mode_basic'],
	"L_ANONYMOUS_SQR_MODE_ADVANCED" => $lang['Quick_reply_mode_advanced'],
	"L_ANONYMOUS_OPEN_SQR" => $lang['Anonymous_open_SQR'],
	"L_AVATAR_SETTINGS" => $lang['Avatar_settings'],
	"L_ALLOW_LOCAL" => $lang['Allow_local'],
	"L_ALLOW_REMOTE" => $lang['Allow_remote'],
	"L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'],
	"L_ALLOW_UPLOAD" => $lang['Allow_upload'],
	"L_MAX_FILESIZE" => $lang['Max_filesize'],
	"L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'],
	"L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'],
	"L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'],
	"L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'],
	"L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'],
	"L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'],
	"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],
	"L_COPPA_SETTINGS" => $lang['COPPA_settings'],
	"L_COPPA_FAX" => $lang['COPPA_fax'],
	"L_COPPA_MAIL" => $lang['COPPA_mail'],
	"L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'],
	"L_EMAIL_SETTINGS" => $lang['Email_settings'],
	"L_ADMIN_EMAIL" => $lang['Admin_email'],
	"L_EMAIL_SIG" => $lang['Email_sig'],
	"L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'],
	"L_USE_SMTP" => $lang['Use_SMTP'],
	"L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'],
	"L_SMTP_SERVER" => $lang['SMTP_server'], 
	"L_SMTP_USERNAME" => $lang['SMTP_username'], 
	"L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'], 
	"L_SMTP_PASSWORD" => $lang['SMTP_password'], 
	"L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'], 
	"L_SUBMIT" => $lang['Submit'], 
	"L_RESET" => $lang['Reset'], 
	
	"SERVER_NAME" => $new['server_name'], 
	"SCRIPT_PATH" => $new['script_path'], 
	"SERVER_PORT" => $new['server_port'], 
	"SITENAME" => $new['sitename'],
	"SITE_DESCRIPTION" => $new['site_desc'], 
	"S_DISABLE_BOARD_YES" => $disable_board_yes,
	"S_DISABLE_BOARD_NO" => $disable_board_no,
	"ACTIVATION_NONE" => USER_ACTIVATION_NONE, 
	"ACTIVATION_NONE_CHECKED" => $activation_none,
	"ACTIVATION_USER" => USER_ACTIVATION_SELF, 
	"ACTIVATION_USER_CHECKED" => $activation_user,
	"ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN, 
	"ACTIVATION_ADMIN_CHECKED" => $activation_admin, 
	"CONFIRM_ENABLE" => $confirm_yes,
	"CONFIRM_DISABLE" => $confirm_no,
	"ACTIVATION_NONE_CHECKED" => $activation_none,
	"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes, 
	"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no, 
	"MAX_POLL_OPTIONS" => $new['max_poll_options'], 
	"FLOOD_INTERVAL" => $new['flood_interval'],
	"TOPICS_PER_PAGE" => $new['topics_per_page'],
	"POSTS_PER_PAGE" => $new['posts_per_page'],
	"HOT_TOPIC" => $new['hot_threshold'],
	"STYLE_SELECT" => $style_select,
	"OVERRIDE_STYLE_YES" => $override_user_style_yes,
	"OVERRIDE_STYLE_NO" => $override_user_style_no,
	"LANG_SELECT" => $lang_select,
	"L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'],
	"DEFAULT_DATEFORMAT" => $new['default_dateformat'],
	"TIMEZONE_SELECT" => $timezone_select,
	"S_PRIVMSG_ENABLED" => $privmsg_on, 
	"S_PRIVMSG_DISABLED" => $privmsg_off, 
	"INBOX_LIMIT" => $new['max_inbox_privmsgs'], 
	"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
	"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
	"COOKIE_DOMAIN" => $new['cookie_domain'], 
	"COOKIE_NAME" => $new['cookie_name'], 
	"COOKIE_PATH" => $new['cookie_path'], 
	"SESSION_LENGTH" => $new['session_length'], 
	"S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes, 
	"S_COOKIE_SECURE_DISABLED" => $cookie_secure_no, 
	"GZIP_YES" => $gzip_yes,
	"GZIP_NO" => $gzip_no,
	"CUSTOM_TITLE_DAYS" => $new['custom_title_days'], 
	"CUSTOM_TITLE_POSTS" => $new['custom_title_posts'],
	"CUSTOM_TITLE_MODE_INDEPENDENT" => $custom_title_mode_independent,
	"CUSTOM_TITLE_MODE_REPLACE_RANK" => $custom_title_mode_replace_rank,
	"CUSTOM_TITLE_MODE_REPLACE_BOTH" => $custom_title_mode_replace_both,
	"CUSTOM_TITLE_MAXLENGTH" => $new['custom_title_maxlength'],
	"PRUNE_YES" => $prune_yes,
	"PRUNE_NO" => $prune_no, 
	"HTML_TAGS" => $html_tags, 
	"HTML_YES" => $html_yes,
	"HTML_NO" => $html_no,
	"BBCODE_YES" => $bbcode_yes,
	"BBCODE_NO" => $bbcode_no,
	"SMILE_YES" => $smile_yes,
	"SMILE_NO" => $smile_no,
	"SIG_YES" => $sig_yes,
	"SIG_NO" => $sig_no,
	"SIG_SIZE" => $new['max_sig_chars'], 
	"NAMECHANGE_YES" => $namechange_yes,
	"NAMECHANGE_NO" => $namechange_no,
	"ANONYMOUS_SQR_SELECT" => $anonymous_sqr_select,
	"QUICKREPLY_YES" => $quickreply_yes,
	"QUICKREPLY_NO" => $quickreply_no,
	"ANONYMOUS_SQR_MODE_BASIC" => $anonymous_sqr_mode_basic,
	"ANONYMOUS_SQR_MODE_ADVANCED" => $anonymous_sqr_mode_advanced,
	"ANONYMOUS_OPEN_SQR_YES" => $anonymous_open_sqr_yes,
	"ANONYMOUS_OPEN_SQR_NO" => $anonymous_open_sqr_no,
	"AVATARS_LOCAL_YES" => $avatars_local_yes,
	"AVATARS_LOCAL_NO" => $avatars_local_no,
	"AVATARS_REMOTE_YES" => $avatars_remote_yes,
	"AVATARS_REMOTE_NO" => $avatars_remote_no,
	"AVATARS_UPLOAD_YES" => $avatars_upload_yes,
	"AVATARS_UPLOAD_NO" => $avatars_upload_no,
	"AVATAR_FILESIZE" => $new['avatar_filesize'],
	"AVATAR_MAX_HEIGHT" => $new['avatar_max_height'],
	"AVATAR_MAX_WIDTH" => $new['avatar_max_width'],
	"AVATAR_PATH" => $new['avatar_path'], 
	"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'], 
	"SMILIES_PATH" => $new['smilies_path'], 
	"INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'], 
	"SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'], 
	"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'], 
	"EMAIL_FROM" => $new['board_email'],
	"EMAIL_SIG" => $new['board_email_sig'],
	"SMTP_YES" => $smtp_yes,
	"SMTP_NO" => $smtp_no,
	"SMTP_HOST" => $new['smtp_host'],
	"SMTP_USERNAME" => $new['smtp_username'],
	"SMTP_PASSWORD" => $new['smtp_password'],
	"COPPA_MAIL" => $new['coppa_mail'],
	"COPPA_FAX" => $new['coppa_fax'])
);

$template->pparse("body");

include('./page_footer_admin.'.$phpEx);

?>

Aexoden
Registered User
Posts: 364
Joined: Mon Jan 14, 2002 1:18 am
Location: Medical Lake, WA
Name: Jason Lynch
Contact:

Post by Aexoden »

cardude wrote: When I installed this mod, I get an error in the admincp. That frame on the left has an error in it. It says -

Based on my quick glance at your file, you're missing a brace after the following lines:

Code: Select all

case CUSTOM_TITLE_MODE_REPLACE_BOTH:
		$custom_title_mode_replace_both = "checked=\"checked\"";
		break;
	default:
		break;
Add a '}' on the next line, and it should fix at least one problem.

Post Reply

Return to “[2.0.x] MOD Database Cleanup”