I'm also very interested in that!playerfr wrote:Any plans to do this in future version ?playerfr wrote:Any way to add an option to work with cashmod ? what I mean is people can buy the rights to have a custom title. But they cant change , to change they have to buy new custom title that would be great
Thanks
Code: Select all
Open: styles/subsilver2/template/ucp_profile_profile_info.html
Find:
<!-- IF S_BIRTHDAYS_ENABLED -->
<tr>
<td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
<td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
</tr>
<!-- ENDIF -->
Add Before:
<tr>
<td class="row1" width="35%"><b class="genmed">{L_CUSTOM_TITLE}:</b><br /><span class="gensmall">{L_CUSTOM_TITLE_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="custom_title" size="30" maxlength="{CUSTOM_TITLE_MAXLENGTH}" value="{CUSTOM_TITLE}" /></td>
</tr>
Open: styles/subsilver2/template/viewtopic_body.html
Find:
<!-- IF postrow.RANK_TITLE -->
<tr>
<td class="postdetails">{postrow.RANK_TITLE}</td>
</tr>
<!-- ENDIF -->
<!-- IF postrow.RANK_IMG -->
<tr>
<td>{postrow.RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Replace with:
<!-- IF postrow.CUSTOM_TITLE or postrow.RANK_TITLE or postrow.RANK_IMG -->
<tr>
<td class="postdetails">{postrow.CUSTOM_TITLE}</td>
</tr>
<!-- IF postrow.CUSTOM_TITLE and postrow.RANK_TITLE or postrow.CUSTOM_TITLE and postrow.RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td class="postdetails">{postrow.RANK_TITLE}</td>
</tr><!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td>{postrow.RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Open: styles/subsilver2/template/memberlist_view.html
Find:
<!-- IF RANK_TITLE -->
<tr>
<td class="postdetails" align="center">{RANK_TITLE}</td>
</tr>
<!-- ENDIF -->
<!-- IF RANK_IMG -->
<tr>
<td align="center">{RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Replace with:
<!-- IF CUSTOM_TITLE or RANK_TITLE or RANK_IMG -->
<tr>
<td class="postdetails" align="center">{postrow.CUSTOM_TITLE}</td>
</tr>
<!-- IF CUSTOM_TITLE and RANK_TITLE or CUSTOM_TITLE and RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td class="postdetails" align="center">{RANK_TITLE}</td>
</tr><!-- IF RANK_TITLE and RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td align="center">{RANK_IMG}</td>
</tr>
<!-- ENDIF -->
I was getting the same errors and came up with the following which has worked for me.CrimsonThunder wrote:Now I'm having another problem, when I go to edit someones custom title I get this error:
SQL ERROR [ mysql4 ]
Unknown column 'user_custom_title' in 'field list' [1054]
Code: Select all
ALTER TABLE phpbb_users MODIFY user_custom_title varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin;
Code: Select all
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_title_edit', 1);
INSERT INTO phpbb_acl_options (auth_option, is_global) VALUES ('u_title_ignore_reqs', 1);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('custom_title_days', 30);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('custom_title_posts', 10);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('custom_title_mode', '');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('custom_title_maxlength', 45);
ALTER TABLE phpbb_users ADD COLUMN user_custom_title varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin;
Thank you it did help!Gremlinn wrote:I noticed that changes for the subSilver2 template don't exist in your install.
I took the liberty of quickly putting one together so I could see what this would look like in that template. Here is what I came up with (I hope others will find it useful)
Code: Select all
Find:
<!-- IF postrow.RANK_TITLE -->
<tr>
<td class="postdetails">{postrow.RANK_TITLE}</td>
</tr>
<!-- ENDIF -->
<!-- IF postrow.RANK_IMG -->
<tr>
<td>{postrow.RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Replace with:
<!-- IF postrow.CUSTOM_TITLE or postrow.RANK_TITLE or postrow.RANK_IMG -->
<tr>
<td class="postdetails"><b>{postrow.CUSTOM_TITLE}</b></td>
</tr>
<!-- IF postrow.CUSTOM_TITLE and postrow.RANK_TITLE or postrow.CUSTOM_TITLE and postrow.RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td class="postdetails">{postrow.RANK_TITLE}</td>
</tr>
<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td>{postrow.RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Code: Select all
Find:
<!-- IF S_BIRTHDAYS_ENABLED -->
<tr>
<td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
<td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
</tr>
<!-- ENDIF -->
Add Before:
<!-- IF S_CUSTOM_TITLE_ENABLED -->
<tr>
<td class="row1" width="35%"><b class="genmed">{L_CUSTOM_TITLE}:</b><br /><span class="gensmall">{L_CUSTOM_TITLE_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="custom_title" size="30" maxlength="{CUSTOM_TITLE_MAXLENGTH}" value="{CUSTOM_TITLE}" /></td>
</tr>
<!-- ENDIF -->
Code: Select all
Find:
<!-- IF RANK_TITLE -->
<tr>
<td class="postdetails" align="center">{RANK_TITLE}</td>
</tr>
<!-- ENDIF -->
<!-- IF RANK_IMG -->
<tr>
<td align="center">{RANK_IMG}</td>
</tr>
<!-- ENDIF -->
Replace with:
<!-- IF CUSTOM_TITLE or RANK_TITLE or RANK_IMG -->
<tr>
<td align="center"><strong>{CUSTOM_TITLE}</strong></td>
</tr>
<!-- IF CUSTOM_TITLE and RANK_TITLE or CUSTOM_TITLE and RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td align="center">{RANK_TITLE}</td>
</tr><!-- IF RANK_TITLE and RANK_IMG --><br />
<!-- ENDIF -->
<tr>
<td align="center">{RANK_IMG}</td>
</tr>
<!-- ENDIF -->