The effects: (I have some suggestion from 1.1.4 ,see http://www.gossamer-threads.com/...i?post=197567#197567)
The lists is blow :
all icons put in images/icons directory.
The modify :
in user.pm(under admin/GForum)
search "sub icons", change
if ($USER and $USER->{user_icon} and $USER->{user_icon} =~ m|^users/|) {
to
if ($USER and $USER->{user_icon} and $USER->{user_icon} =~ m:^users/|^icons/:) {
search "elsif (/^(user_icon\w*)_upload$/" and add the code blow before it:
elsif ($_ eq 'user_icon_list') {
my $column = 'user_icon';
$value .= ".gif" if ($value !~ /\.gif$/);
$update->{$column} = "icons/$value";
$skip{$column}++; # The list overrides the user_icon parameter
next;
}
in user_profile_basic.html ,change the code in <%loop icons%> and <% if not last and not row_num % $icon_cols%> to :
<%body_font%><%if first%>select from lists(<u>Icon list</u>). Input the file name of the icon you selet in lists<%elsif last and user_icon_allow_upload%>Upload new image<%else%><%icon_name%><%endif%><%/body_font%>
<%if first%><input type="text" size="20" name="user_icon_list" value="" class="button" onClick="document.getElementById('list_radio').checked = 1"><%elsif last and user_icon_allow_upload%><input type="file" class="button" name="user_icon_upload" onClick="document.getElementById('upload_radio').checked = 1"><%else%><img src="<%image_url%>/<%icon_filename%>" align="top" width="<%icon_width%>" height="<%icon_height%>"><%endif%>
</td>
set icon_cols to 1.
It 's OK.
The lists is blow :
all icons put in images/icons directory.
The modify :
in user.pm(under admin/GForum)
search "sub icons", change
if ($USER and $USER->{user_icon} and $USER->{user_icon} =~ m|^users/|) {
to
if ($USER and $USER->{user_icon} and $USER->{user_icon} =~ m:^users/|^icons/:) {
search "elsif (/^(user_icon\w*)_upload$/" and add the code blow before it:
elsif ($_ eq 'user_icon_list') {
my $column = 'user_icon';
$value .= ".gif" if ($value !~ /\.gif$/);
$update->{$column} = "icons/$value";
$skip{$column}++; # The list overrides the user_icon parameter
next;
}
in user_profile_basic.html ,change the code in <%loop icons%> and <% if not last and not row_num % $icon_cols%> to :
Code:
<td><input type="radio" name="user_icon" value="<%if first%>" id="list_radio<%elsif user_icon_allow_upload and last%>" id="upload_radio<%else%><%icon_filename%><%endif%>"<%if user_icon eq $icon_filename and not last%> checked<%endif%>> <%body_font%><%if first%>select from lists(<u>Icon list</u>). Input the file name of the icon you selet in lists<%elsif last and user_icon_allow_upload%>Upload new image<%else%><%icon_name%><%endif%><%/body_font%>
<%if first%><input type="text" size="20" name="user_icon_list" value="" class="button" onClick="document.getElementById('list_radio').checked = 1"><%elsif last and user_icon_allow_upload%><input type="file" class="button" name="user_icon_upload" onClick="document.getElementById('upload_radio').checked = 1"><%else%><img src="<%image_url%>/<%icon_filename%>" align="top" width="<%icon_width%>" height="<%icon_height%>"><%endif%>
</td>
set icon_cols to 1.
It 's OK.