In total there are 4 users online :: 0 registered, 0 hidden and 4 guests.
Most users ever online was 264 on Fri Jan 21, 2005 8:06 am
Registered users: No registered users based on users active over the past 5 minutes
Yahoo [Bot]
Fri. Feb. 03 2012, 23:37
Google [Bot]
Fri. Feb. 03 2012, 20:14
Majestic-12 [Bot]
Fri. Feb. 03 2012, 11:55
TurnitinBot [Bot]
Wed. Feb. 01 2012, 19:57
MSN [Bot]
Tue. Jan. 31 2012, 05:05
Exabot [Bot]
Wed. Jan. 18 2012, 07:37
psbot [Picsearch]
Wed. Jan. 11 2012, 07:57
Alexa [Bot]
Tue. Dec. 20 2011, 04:57
Gigabot [Bot]
Tue. Dec. 13 2011, 14:23
MSNbot Media
Wed. Sep. 14 2011, 18:33
|
 |
| Author |
Message |
|
MisfitMom
|
Post subject: User CUSTOM color posts? Posted: Tue Mar 07, 2006 11:25 am |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
I WANT THISMOD  Cans someone please please please please pretty please!! Port it!!
I have the zip file but heres the code edit for it........
-
- ##############################################################
- ## MOD Title: Custom post color defined in profile
- ## MOD Version: 1.0.1
- ## MOD Author: Nycon < nycon@nyconnh.net > (David W. Watson) http://www.nyconnh.net
- ## MOD Description: Lets users choose a custom color for their
- ## posts in profile if they have enough posts.
- ##
- ## Installation Level: (moderate)
- ## Installation Time: ~ 20 Minutes
- ## Files To Edit: admin/admin_board.php,
- ## admin/admin_users.php,
- ## includes/function_validate.php,
- ## includes/usercp_avatar.php,
- ## includes/usercp_register.php,
- ## language/lang_english/lang_admin.php,
- ## language/lang_english/lang_main.php,
- ## templates/xxx/profile_add_body.tpl,
- ## templates/xxx/viewtopic_body.tpl,
- ## templates/xxx/admin/board_config.php,
- ## templates/xxx/admin/user_edit.php,
- ## viewtopic.php
- ##
- ## Included Files: phpBB2/mods/colors.html
- ## phpBB2/custompostcolor_install.php
- ##
- ## PRE EDITED FILES ARE IN THE "Changed Files" Folder.
- ## Please Keep in mind these preedited files came from
- ## the subsilver theme.
- ##
- ##############################################################
- ## Author Note: Thanks for downloading :-) This mod is made from
- ## the custom username color mod version 2.0.2, BUT
- ## is modified to change the color of the post
- ## instead of username. The only real changes made
- ## to the custom username mod, where the change of
- ## of the variable names. So there would be no conflicts
- ## between the two mods.
- ##
- ##############################################################
- ## Update History:
- ##
- ## 1.0.1 -- Added the ability to work with the Custom Username Color MOd installed
- ## 1.0.0 -- Initial Release (not released to the public)
- ##
- ##############################################################
- ## Known Issues:
- ##
- ## If a user doesn't select a color, their color for their posts
- ## will be black just like it is with the Custom Username Color Mod.
- ## I'm currently trying to figure a way to make this a default color
- ## besides black for the people that don't select a color. If any one
- ## has any ideas on how to do this, please do. And send me your revisions.
- ##
- ##############################################################
- ## Special Thanks:
- ##
- ## Acecool < webmaster@acecoolco.com > ( Josh M. M. ) http://www.acecoolco.com
- ## (for providing the custom username color mod, and everybody who helped him with his mod)
- ##
- ##############################################################
- ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
- ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
- ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
- ## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
- ##############################################################
- ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
- ##############################################################
-
- #
- #-----[ SQL ]------------------------------------------
- #
- #
- #-----[ NOTE ]---------------------------------
- #
- If you dont have phpMyAdmin installed, you can go to this webiste.
- http://www.phpbbhacks.com/forums/db_generator.php to generate a php file
- to install the new SQL variables. This is not a problem any more, as i added the
- custompostcolor_install.php file. it will add the neccassary varibles to
- your sql database for you.
-
- ALTER TABLE phpbb_users ADD user_post_color VARCHAR(6);
- ALTER TABLE phpbb_users ADD user_custom_post_color VARCHAR(6);
- INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_custom_post_color', '250');
-
- #
- #-----[ COPY ]------------------------------------------
- #
-
- phpBB2/mods/colors.html to phpBB2/mods/colors.html
- custompostcolor_install.php to phpBB2/custompostcolor_install.php
-
- #
- #-----[ Run ]-------------------------------------------
- #
-
- custompostcolor_install.php from your browser
-
- #
- #-----[ OPEN ]------------------------------------------
- #
- admin/admin_board.php
-
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- "L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- "L_ALLOW_CUSTOM_post_color" => $lang['Allow_custom_post_color'],
- "L_ALLOW_CUSTOM_post_color_EXPLAIN" => $lang['Allow_custom_post_color_explain'],
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- "NAMECHANGE_YES" => $namechange_yes,
- "NAMECHANGE_NO" => $namechange_no,
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- "CUSTOM_post_color" => $new['allow_custom_post_color'],
- // Custom Post Color MOd
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- admin/admin_users.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = ( !empty($HTTP_POST_VARS['custom_post_color']) ) ? trim(strip_tags( $HTTP_POST_VARS['custom_post_color'] ) ) : '';
- // Custom Post Color Mod
-
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- $interests
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , $custom_post_color
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = htmlspecialchars(stripslashes($interests));
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = htmlspecialchars(stripslashes($custom_post_color));
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $sql = "UPDATE " . USERS_TABLE . "
- SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) . "', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", $aim) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- user_interests = '" . str_replace("'", "''", $interests) . "',
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- user_custom_post_color = '" . str_replace("'", "''", $custom_post_color) . "',
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = htmlspecialchars(stripslashes($interests));
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = htmlspecialchars(stripslashes($custom_post_color));
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = htmlspecialchars($this_userdata['user_interests']);
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = htmlspecialchars($this_userdata['user_custom_post_color']);
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $s_hidden_fields = '<input type="hidden" name="mode" value="edit" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />';
-
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $s_hidden_fields .= '<input type="hidden" name="custom_post_color" value="' . str_replace("\"", """, $custom_post_color) . '" />';
- // Custom Post Color MOd
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- 'INTERESTS' => $interests,
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- 'CUSTOM_post_color' => $custom_post_color,
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- 'L_INTERESTS' => $lang['Interests'],
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- 'L_CUSTOM_post_color' => $lang['Custom_post_color'],
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- includes/function_validate.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- //
- // Does supplementary validation of optional profile fields. This expects common stuff like trim() and strip_tags()
- // to have already been run. Params are passed by-ref, so we can set them to the empty string if they fail.
- //
- function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig)
- {
- $check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig');
-
- for($i = 0; $i < count($check_var_length); $i++)
- {
- if ( strlen($$check_var_length[$i]) < 2 )
- {
- $$check_var_length[$i] = '';
- }
- }
-
- // ICQ number has to be only numbers.
- if ( !preg_match('/^[0-9]+$/', $icq) )
- {
- $icq = '';
- }
-
- // website has to start with http://, followed by something with length at least 3 that
- // contains at least one dot.
- if ( $website != "" )
- {
- if ( !preg_match('#^http:\/\/#i', $website) )
- {
- $website = 'http://' . $website;
- }
-
- if ( !preg_match('#^http\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website) )
- {
- $website = '';
- }
- }
-
- return;
- }
-
- #
- #-----[ IN-LINE FIND]------------------------------------------
- #
-
- &$interests
-
- #
- #-----[ IN-LINE AFTER, ADD]------------------------------------------
- #
-
- , &$custom_post_color
-
- #
- #-----[ IN-LINE FIND]
- #
-
- if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website))
- {
- $website = '';
- }
- }
-
- #
- #-----[ AFTER, ADD]
- #
-
- // Custom Post Color MOd
- // Custom_post_color should not contain characters that are not usable in HTML color code
- If ( !preg_match('/^[0-9A-Fa-f]{6}$/', $custom_post_color) )
- {
- $custom_post_color = '';
- }
- // Custom Post Color Mod
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- includes/usercp_avatar.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- , &$session_id
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , &$custom_post_color
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- 'dateformat'
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , 'custom_post_color'
-
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- includes/usercp_register.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- 'interests' => 'interests'
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , 'custom_post_color' => 'custom_post_color'
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- $interests,
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- $custom_post_color,
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = stripslashes($interests);
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = stripslashes($custom_post_color);
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $sql = "UPDATE " . USERS_TABLE . "
- SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) ."', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("'", "''", $user_actkey) . "'" . $avatar_sql . "
-
-
- #
- #-----[ IN-LINE FIND ]--------------------------------------------------------
- #
-
- user_sig = '" . str_replace("'", "''", $signature) . "',
-
- #
- #-----[ IN-LINE AFTER, ADD ]--------------------------------------------------
- #
-
- user_custom_post_color = '" . str_replace("'", "''", $custom_post_color) . "',
-
- #
- #-----[ FIND ]----------------------------------------------------------------
- #
-
- //
- // Get current date
- //
- $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
- VALUES ($user_id, '" . str_replace("'", "''", $username) . "', " . time() . ", '" . str_replace("'", "''", $new_password) . "', '" . str_replace("'", "''", $email) . "', '" . str_replace("'", "''", $icq) . "', '" . str_replace("'", "''", $website) . "', '" . str_replace("'", "''", $occupation) . "', '" . str_replace("'", "''", $location) . "', '" . str_replace("'", "''", $interests) . "', '" . str_replace("'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("'", "''", $yim) . "', '" . str_replace("'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("'", "''", $user_dateformat) . "', '" . str_replace("'", "''", $user_lang) . "', $user_style, 0, 1, ";
-
-
- #
- #-----[ IN-LINE FIND ]--------------------------------------------------------
- #
-
- , user_allow_pm
-
- #
- #-----[ IN-LINE AFTER, ADD ]--------------------------------------------------
- #
-
- , user_custom_post_color
-
- #
- #-----[ IN-LINE FIND ]--------------------------------------------------------
- #
-
- "', $user_style, 0, 1, "
-
- #
- #-----[ IN-LINE REPLACE WITH ]-------------------------------------------------
- #
-
- "', $user_style, 0, 1, '" . str_replace("'", "''", $custom_post_color) . "', "
-
- #
- #-----[ NOTE ]-----------------------------------------------------------------
- #
- If you have the custom username mod installed follow these instructions for the above two
-
- #
- #-----[ FIND ]-------------------------------------------------
- #
- "', $user_style, 0, 1, '" . str_replace("'", "''", $custom_color) . "', "
-
- #
- #-----[ INLINE FIND ]------------------------------------------
- #
- . "', ";
-
- #
- #-----[ INLINE, REPLACE WITH ]---------------------------------
- #
- . "', '" . str_replace("'", "''", $custom_post_color) . "', ";
-
- #
- #-----[ FIND ]-----------------------------------------------------------------
- #
-
- $interests = stripslashes($interests);
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = stripslashes($custom_post_color);
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $interests = $userdata['user_interests'];
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $custom_post_color = $userdata['user_custom_post_color'];
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']);
- }
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- $user_dateformat
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , $custom_post_color
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- 'S_FORM_ENCTYPE' => $form_enctype,
- 'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
- );
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- if ( $userdata['user_posts'] >= $board_config['allow_custom_post_color'] )
- {
- $template->assign_block_vars('custom_post_color', array(
- 'CUSTOM_post_color' => $custom_post_color,
- 'L_CUSTOM_post_color' => $lang['Custom_post_color'],
- 'L_CUSTOM_post_color_EXPLAIN' => $lang['Custom_post_color_Explain'])
- );
- }
- // Custom Post Color Mod
-
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- language/lang_english/lang_admin.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- //
- // That's all Folks!
-
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
-
- //BEGIN CUSTOM POST COLOR MOD
- $lang['Custom_post_color'] = "Post Color";
- $lang['Allow_custom_post_color'] = "Allow Custom Post Color";
- $lang['Allow_custom_post_color_explain'] = "Posts needed before user can choose post color.";
- //END CUSTOM POST COLOR MOD
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- language/lang_english/lang_main.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- //
- // That's all Folks!
-
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
-
- //BEGIN CUSTOM POST COLOR MOD
- $lang['Custom_post_color'] = "Post Color";
- $lang['Custom_post_color_Explain'] = "Define your Custom Post color. <a href=\"mods/colors.html\" target=\"_colors\">Color Examples.</a>";
- //END CUSTOM POST COLOR MOD
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- templates/xxx/profile_add_body.tpl
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- <tr>
- <td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
- <td class="row2"><input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="{USERNAME}" /></td>
- </tr>
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- <!-- BEGIN custom_post_color -->
- <tr>
- <td class="row1"><span class="gen">{custom_post_color.L_CUSTOM_post_color}:</span><br /><span class="gensmall">{custom_post_color.L_CUSTOM_post_color_EXPLAIN}<br /></td>
- <td class="row2">
- <input type="text" class="post"style="width: 200px" name="custom_post_color" size="35" maxlength="6" value="{custom_post_color.CUSTOM_post_color}" />
- </td>
- </tr>
- <!-- END custom_post_color -->
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- templates/xxx/viewtopic_body.tpl
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- {postrow.MESSAGE}
-
-
- #
- #-----[ INLINE BEFORE, ADD ]------------------------------------------
- #
-
- <font color="#{postrow.CUSTOM_post_color}">
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- {postrow.POSTER_MESSAGE}
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- </font>
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- templates/xxx/admin/board_config_body.tpl
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- <tr>
- <td class="row1">{L_ALLOW_NAME_CHANGE}</td>
- <td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES} /> {L_YES} <input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO} /> {L_NO}</td>
- </tr>
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- <tr>
- <td class="row1">{L_ALLOW_CUSTOM_post_color}<br /><span class="gensmall">{L_ALLOW_CUSTOM_post_color_EXPLAIN}</span></td>
- <td class="row2"><input type="text" class="post" size="5" maxlength="4" name="allow_custom_post_color" value="{CUSTOM_post_color}" /></td>
- </tr>
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- templates/xxx/admin/user_edit_body.tpl
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- <tr>
- <td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
- <td class="row2">
- <input type="text" name="username" size="35" maxlength="40" value="{USERNAME}" />
- </td>
- </tr>
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- <tr>
- <td class="row1"><span class="gen">{L_CUSTOM_post_color}</span></td>
- <td class="row2"><input type="text" name="custom_post_color" size="35" maxlength="6" value="{CUSTOM_post_color}" class="post" /></td>
- </tr>
-
- #
- #-----[ OPEN ]------------------------------------------
- #
-
- viewtopic.php
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
-
- #
- #-----[ IN-LINE FIND ]------------------------------------------
- #
-
- u.user_from
-
- #
- #-----[ IN-LINE AFTER, ADD ]------------------------------------------
- #
-
- , u.user_custom_post_color
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- $poster_custom_post_color = ( $postrow[$i]['user_custom_post_color'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $postrow[$i]['user_custom_post_color'] : '';
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- //
- // Again this will be handled by the templating
- // code at some point
- //
- $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
- $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- // Custom Post Color Mod
- if ( $postrow[$i]['user_custom_post_color'] )
- {
- $poster_custom_post_color = ( $postrow[$i]['user_custom_post_color'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $postrow[$i]['user_custom_post_color'] : '';
- $poster_color = '';
- }
- // Custom Post Color Mod
-
- #
- #-----[ FIND ]------------------------------------------
- #
-
- 'RANK_IMAGE' => $rank_image,
-
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
-
- 'CUSTOM_post_color' => $poster_custom_post_color,
-
- #
- #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
- #
- # EoM
-
|
|
| Top |
|
 |
|
MrDSL
|
Post subject: Posted: Tue Mar 07, 2006 12:25 pm |
|
Joined: Sun May 30, 2004 8:15 pm Posts: 1865 Gender:
|
|
This should work pretty close to out of the box per say. Have you tried installing it yet?
As far as getting the option to show up in the profile section you could easily just copy whats used for the realname field for custom color posts..
_________________ .....................................................
|
|
| Top |
|
 |
|
MisfitMom
|
Post subject: Posted: Tue Mar 07, 2006 8:10 pm |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
MrDSL\";p=\"65325 wrote: you could easily just copy whats used for the realname field for custom color posts..
You had me till this part  b4 6 weeks ago I barely new PHP was more then some phrase for a cool message board  Aaaah, but now I'm addicted! hehe
I could just give it a go but there is A LOT of little tedious edits (for me) And I have seen how different some of the integra files can be compared to standard PHPBB......HEY, wait a minute! are you trying to break me in!
I'll let you know if I get brave, lol someone is more then welcome to it first HAHA!
|
|
| Top |
|
 |
|
MisfitMom
|
Post subject: Posted: Tue Mar 07, 2006 9:12 pm |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
|
I cant find this file??
includes/usercp_avatar.php
|
|
| Top |
|
 |
|
MrDSL
|
Post subject: Posted: Wed Mar 08, 2006 7:29 am |
|
Joined: Sun May 30, 2004 8:15 pm Posts: 1865 Gender:
|
|
You would skip that file edit..
_________________ .....................................................
|
|
| Top |
|
 |
|
MisfitMom
|
Post subject: Posted: Wed Mar 08, 2006 9:37 am |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
Gotcha!
Ill be back Im sure  I did have to change some of the placement on code (common sence) so if I get it figured out and remember  I'll put togeter a Intergamod code edit
THANKS FOR YOUR HELP MrDSL!
*edit* That is if my code edit even works LOL!
|
|
| Top |
|
 |
|
MisfitMom
|
Post subject: Posted: Wed Mar 08, 2006 10:13 am |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
Okay skip this one too? includes/usercp_register.php
and now I cant find.... templates/xxx/profile_add_body.tpl in my fisubice template??? stuck again 
|
|
| Top |
|
 |
|
MrDSL
|
Post subject: Posted: Wed Mar 08, 2006 11:29 am |
|
Joined: Sun May 30, 2004 8:15 pm Posts: 1865 Gender:
|
Skip it....
This is what calls the code in the profile
-
- // Custom Post Color Mod
- if ( $userdata['user_posts'] >= $board_config['allow_custom_post_color'] )
- {
- $template->assign_block_vars('custom_post_color', array(
- 'CUSTOM_post_color' => $custom_post_color,
- 'L_CUSTOM_post_color' => $lang['Custom_post_color'],
- 'L_CUSTOM_post_color_EXPLAIN' => $lang['Custom_post_color_Explain'])
- );
- }
- // Custom Post Color Mod
This is what will need to be defined in PCP. This one is a bit more tricky then what I thought.
The weird thing is the mod calls to create
- ALTER TABLE phpbb_users ADD user_post_color VARCHAR(6);
- ALTER TABLE phpbb_users ADD user_custom_post_color VARCHAR(6);
I don't see where users_post_color is used at all in the mod
_________________ .....................................................
|
|
| Top |
|
 |
|
MisfitMom
|
Post subject: Posted: Wed Mar 08, 2006 11:42 am |
|
Offline
| IM Regular poster |
 |
Joined: Mon Feb 06, 2006 11:05 am Posts: 65 Gender:
|
Dunno?? Do we remove that? I taked to the author some time oag via email but he didnt know anyting about integramod and told me to ask you guys
I couldnt find anythingg on it at phpbb.com and I believe I DL'ed it from phphacks. Good knews is I have seen it working on a php forum  and tis MOD would be loved by many!
I really appriciate your help!!
|
|
| Top |
|
 |
| Page 1 of 2 [ 13 posts ] |
|
| Go to page 1, 2 |
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|