I thout to post a slight change i made on the code.
The reason for this change was that my users all had a difrent thinking of how many comment per page they what to see. yeah i know they can user the pulldown menue but that wasnt anought LOL .
The thing i did is to put a inputfield in the users controllcenter that they can give in how many comments they want to see per page.
I thout maybe someone would be intressed in this change. Hope i dont get someone made abaut it
NEVER forget to backup all files and databank befor doing changes.add this in ( includes/db_field_definitions.php )
$additional_user_fields['user_comments_perpage'] = array($lang['user_comments_perpage'], "text", 0);
in meber.php
sereach for
"lang_icq" => $lang['icq'],
insert under
"lang_comments_per_page_settings" => $lang['comments_per_page_settings'],
in you lang file main.php
sereach for
$lang['icq'] = "ICQ:";
insert under
$lang['comments_per_page_settings'] = "Comments per page:";
in member_editeprofile.html sereach for ( if you dont fid in code then ist because my class="cat2". your could be deffernt so normalyou you can inser the code under any </tr> or above any <tr> depends on were you want to show the input field.
<tr>
<td class="cat2"><b>{lang_icq}</b></td>
<td colspan="3" class="cat2"><input type="text" name="user_icq" size="30" value="{user_icq}" class="input" /></td>
</tr>
insert under
<tr>
<td class="cat2"><b>{lang_comments_per_page_settings}</b></td>
<td colspan="3" class="cat2">
<input type="text" name="user_comments_perpage" size="30" value="{user_comments_perpage}" class="input" />
</td>
</tr>
in details.php
sereach for
$commentperpage = 5;
replace with
if ($user_info['user_level'] == GUEST) {
$commentperpage = 5;
}
else {
$commentperpage = $user_info['user_comments_perpage'];
}
now you need to insert a new feld in tha table `4images_users` called user_comments_perpage with a standard value 5 and Typ decimal
mabe oracle could post a easy way for users how to put in a new feld in the table.
Greetzzzz from Flatermann