https://www.icyphoenix.com/viewtopic.php?f=28&t=5039&p=33854#p33854 ----------------------------------- salcedaka Sun 16 Nov, 2008 12:12 [Mod] Signature Of The Week ----------------------------------- Hello, looking for the network since I found this wonderful change that serves a lot of forums for graphic design. The pattern that has to follow are these: Up to the root of the forum file: db_update.php Create file: db_update.php: [codeblock] sql_query($sql_array[$i]) ) { $error = true; $error_sql[] = $sql_array[$i]; $error_msg[] = $db->sql_error(); } else { $error_one = true; } } } if ( $error && !$error_one ) { $msg = 'The queries failed.'; } else if ( $error ) { $msg = 'Some queries failed.'; } else { $delete = false; if ( $delete_me ) { $delete = @unlink(__FILE__); } $msg = 'The Mod was installed successful. ' . ( $delete ? 'This file was deleted successful.' : 'Don't forget to delete this file.' ); } if ( $error ) { $msg .= '

Error list:'; for ( $i = 0; $i < count($error_sql); $i++ ) { $msg .= '
SQL Error: ' . $error_msg[$i]['code'] . ' ' . $error_msg[$i]['message'] . '
SQL Query: ' . $error_sql[$i] . '
'; } } message_die( ( $error ) ? GENERAL_ERROR : GENERAL_MESSAGE, $msg); ?> [/codeblock] Create in /images/ directory called sotw, and get there [URL=http://img389.imageshack.us/img389/5408/defaultqx2.jpg] this image. (Or you want to display as a signature of the week) And now to modify a few files. Open: forum.php Search: [codeblock] 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], [/codeblock] After Add: [codeblock] 'L_SOTW' => $lang['sotw_title'], 'SOTW_IMG' => $board_config['sotw_image'], 'SOTW_DESC' => $board_config['sotw_desc'], [/codeblock] Open: adm/admin_board.php Search: [codeblock] $new['sitename'] = str_replace('"', '"', strip_tags($new['sitename'])); [/codeblock] After Add: [codeblock] $new['sotw_desc'] = str_replace('"', '"', strip_tags($new['sotw_desc'])); [/codeblock] Search: [codeblock] 'L_SITE_DESCRIPTION' => $lang['Site_desc'], [/codeblock] After Add: [codeblock] 'L_SOTW_DESC' => $lang['sotw_desc'], 'L_SOTW_DESC_EXPLAIN' => $lang['sotw_desc_explain'], 'L_SOTW_IMG' => $lang['sotw_img'], 'L_SOTW_IMG_EXPLAIN' => $lang['sotw_img_explain'], [/codeblock] Search: [codeblock] 'SITE_DESCRIPTION' => $new['site_desc'], [/codeblock] After Add: [codeblock] 'SOTW_SETTING_DESC' => $new['sotw_desc'], 'SOTW_SETTING' => $new['sotw_image'], [/codeblock] Open: language/lang_xxxxxxx/lang_admin.php Search: [codeblock] // // That's all Folks! // ------------------------------------------------- [/codeblock] Before Add: [codeblock] $lang['sotw_desc'] = 'SOTW description'; $lang['sotw_desc_explain'] = 'Small description to describe this week's SOTW'; $lang['sotw_img'] = 'Path to SOTW image'; $lang['sotw_img_explain'] = 'Path to the image can either be relative to the forum directory or an absolute path linking offsite.'; [/codeblock] Open: language/lang_xxxxxxx/lang_main.php Search: [codeblock] //$lang[''] = ''; [/codeblock] Before Add: [codeblock] $lang['sotw_title'] = 'Signature Of The Week'; [/codeblock] Open: templates/mg_themes/index_body.tpl Search: [codeblock]
[/codeblock] Before Add: [codeblock]
{L_SOTW}
{SOTW_DESC}
{L_SOTW}
[/codeblock] Open: templates/common/acp/board_config_body.tpl Search: [codeblock] {L_DEFAULT_STYLE} {STYLE_SELECT} [/codeblock] Before Add: [codeblock] {L_SOTW_DESC}
{L_SOTW_DESC_EXPLAIN} {L_SOTW_IMG}
{L_SOTW_IMG_EXPLAIN} [/codeblock] That's all folks! I hope you serve. Bye Creator of the mod -> DooBDee Adapted to Icy Phoenix by -> Salcedaka