mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/avatars] Add subsilver2 support
This implementation might not be perfect though. PHPBB3-10018
This commit is contained in:
parent
1c3b3621db
commit
d8510356d6
6 changed files with 98 additions and 51 deletions
15
phpBB/styles/subsilver2/template/avatars.js
Normal file
15
phpBB/styles/subsilver2/template/avatars.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function avatar_simplify() {
|
||||||
|
$('.[class^="av_option_"]').hide();
|
||||||
|
|
||||||
|
var selected = $('#avatar_driver').val();
|
||||||
|
$('.av_option_' + selected).show();
|
||||||
|
}
|
||||||
|
|
||||||
|
avatar_simplify();
|
||||||
|
$('#avatar_driver').bind('change', avatar_simplify);
|
||||||
|
|
||||||
|
})(jQuery); // Avoid conflicts with other libraries
|
|
@ -0,0 +1,13 @@
|
||||||
|
<table class="tablebg" width="100%" cellspacing="1">
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_GRAVATAR_AVATAR_EMAIL}{L_COLON}</b><br /><span class="gensmall">{L_GRAVATAR_AVATAR_EMAIL_EXPLAIN}</span></td>
|
||||||
|
<td class="row2"><input type="text" name="av_gravatar_email" id="av_gravatar_email" value="{AV_GRAVATAR_EMAIL}" class="inputbox" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_GRAVATAR_AVATAR_SIZE}{L_COLON}</b><br /><span class="gensmall">{L_GRAVATAR_AVATAR_SIZE_EXPLAIN}</span></td>
|
||||||
|
<td class="row2">
|
||||||
|
<input type="text" name="av_gravatar_width" id="av_gravatar_width" size="3" value="{AV_GRAVATAR_WIDTH}" class="inputbox autowidth" /> {L_PIXEL} ×
|
||||||
|
<input type="text" name="av_gravatar_height" id="av_gravatar_height" size="3" value="{AV_GRAVATAR_HEIGHT}" class="inputbox autowidth" /> {L_PIXEL}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
|
@ -0,0 +1,29 @@
|
||||||
|
<table class="tablebg" width="100%" cellspacing="1">
|
||||||
|
<tr>
|
||||||
|
<td class="cat" colspan="2" align="center" valign="middle"><span class="genmed">{L_AVATAR_CATEGORY}{L_COLON} </span><select name="av_local_cat" id="category">
|
||||||
|
<option value="">{L_NO_AVATAR_CATEGORY}</option>
|
||||||
|
<!-- BEGIN av_local_cats -->
|
||||||
|
<option value="{av_local_cats.NAME}"<!-- IF av_local_cats.SELECTED --> selected="selected"<!-- ENDIF -->>{av_local_cats.NAME}</option>
|
||||||
|
<!-- END av_local_cats -->
|
||||||
|
</select> <input class="btnlite" tabindex="0" type="submit" value="{L_GO}" name="av_local_go" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" colspan="2" align="center">
|
||||||
|
<table cellspacing="1" cellpadding="4" border="0">
|
||||||
|
<!-- BEGIN av_local_row -->
|
||||||
|
<tr>
|
||||||
|
<!-- BEGIN av_local_col -->
|
||||||
|
<td class="row1" align="center"><img src="{av_local_col.av_local_col.AVATAR_IMAGE}" alt="{av_local_col.av_local_col.AVATAR_NAME}" title="{av_local_col.av_local_col.AVATAR_NAME}" /></td>
|
||||||
|
<!-- END av_local_col -->
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<!-- BEGIN av_local_option -->
|
||||||
|
<td class="row2" align="center"><input type="radio" class="radio" name="av_local_file" value="{av_local_col.av_local_option.S_OPTIONS_AVATAR}" /></td>
|
||||||
|
<!-- END av_local_option -->
|
||||||
|
</tr>
|
||||||
|
<!-- END av_local_col -->
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
|
@ -0,0 +1,10 @@
|
||||||
|
<table class="tablebg" width="100%" cellspacing="1">
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_LINK_REMOTE_AVATAR}{L_COLON} </b><br /><span class="gensmall">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></td>
|
||||||
|
<td class="row2"><input class="post" type="text" name="av_remote_url" size="40" value="{AV_REMOTE_URL}" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_LINK_REMOTE_SIZE}{L_COLON} </b><br /><span class="gensmall">{L_LINK_REMOTE_SIZE_EXPLAIN}</span></td>
|
||||||
|
<td class="row2"><input class="post" type="text" name="av_remote_width" size="3" value="{AV_REMOTE_WIDTH}" /> <span class="gen">{L_PIXEL} × </span> <input class="post" type="text" name="av_remote_height" size="3" value="{AV_REMOTE_HEIGHT}" /> <span class="gen">{L_PIXEL}</span></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<table class="tablebg" width="100%" cellspacing="1">
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_UPLOAD_AVATAR_FILE}{L_COLON} </b></td>
|
||||||
|
<td class="row2"><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" /><input class="post" type="file" name="av_upload_file" /></td>
|
||||||
|
</tr>
|
||||||
|
<!-- IF S_UPLOAD_AVATAR_URL -->
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="35%"><b class="genmed">{L_UPLOAD_AVATAR_URL}{L_COLON} </b><br /><span class="gensmall">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></td>
|
||||||
|
<td class="row2"><input class="post" type="text" name="av_upload_url" size="40" value="" /></td>
|
||||||
|
</tr>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
</table>
|
|
@ -21,61 +21,27 @@
|
||||||
<td class="row3" colspan="2" align="center">{L_AVATAR_FEATURES_DISABLED}</td>
|
<td class="row3" colspan="2" align="center">{L_AVATAR_FEATURES_DISABLED}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- IF S_UPLOAD_AVATAR_FILE -->
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_UPLOAD_AVATAR_FILE}{L_COLON} </b></td>
|
<th colspan="2">{L_AVATAR_SELECT}</th>
|
||||||
<td class="row2"><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" /><input class="post" type="file" name="uploadfile" /></td>
|
|
||||||
</tr>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- IF S_UPLOAD_AVATAR_URL -->
|
|
||||||
<tr>
|
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_UPLOAD_AVATAR_URL}{L_COLON} </b><br /><span class="gensmall">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></td>
|
|
||||||
<td class="row2"><input class="post" type="text" name="uploadurl" size="40" value="{AVATAR_URL}" /></td>
|
|
||||||
</tr>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- IF S_LINK_AVATAR -->
|
|
||||||
<tr>
|
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_LINK_REMOTE_AVATAR}{L_COLON} </b><br /><span class="gensmall">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></td>
|
|
||||||
<td class="row2"><input class="post" type="text" name="remotelink" size="40" value="{AVATAR_REMOTE}" /></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_LINK_REMOTE_SIZE}{L_COLON} </b><br /><span class="gensmall">{L_LINK_REMOTE_SIZE_EXPLAIN}</span></td>
|
<td class="row1" width="35%"><b class="genmed">{L_AVATAR_TYPE}{L_COLON}</b></td>
|
||||||
<td class="row2"><input class="post" type="text" name="width" size="3" value="{AVATAR_WIDTH}" /> <span class="gen">{L_PIXEL} × </span> <input class="post" type="text" name="height" size="3" value="{AVATAR_HEIGHT}" /> <span class="gen">{L_PIXEL}</span></td>
|
<td class="row2">
|
||||||
|
<select name="avatar_driver" id="avatar_driver">
|
||||||
|
<option value="">{L_NO_AVATAR_CATEGORY}</option>
|
||||||
|
<!-- BEGIN avatar_drivers -->
|
||||||
|
<option value="{avatar_drivers.DRIVER}"<!-- IF avatar_drivers.SELECTED --> selected="selected"<!-- ENDIF -->>{avatar_drivers.L_TITLE}</option>
|
||||||
|
<!-- END avatar_drivers -->
|
||||||
|
</select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- BEGIN avatar_drivers -->
|
||||||
<!-- IF S_DISPLAY_GALLERY -->
|
<tr class="av_option_{avatar_drivers.DRIVER}">
|
||||||
<tr>
|
<td class="row1" width="35%" colspan="2"><noscript><b class="genmed">{avatar_drivers.L_TITLE} </b><br /></noscript>{avatar_drivers.L_EXPLAIN}</span></td>
|
||||||
<td class="row1" width="35%"><b class="genmed">{L_AVATAR_GALLERY}{L_COLON} </b></td>
|
|
||||||
<td class="row2"><strong><a href="{U_GALLERY}">{L_DISPLAY_GALLERY}</a></strong></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<tr class="av_option_{avatar_drivers.DRIVER}">
|
||||||
|
<td colspan="2" style="padding: 0">{avatar_drivers.OUTPUT}</td>
|
||||||
<!-- IF S_IN_AVATAR_GALLERY -->
|
|
||||||
<tr>
|
|
||||||
<th colspan="2">{L_AVATAR_GALLERY}</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<!-- END avatar_drivers -->
|
||||||
<td class="cat" colspan="2" align="center" valign="middle"><span class="genmed">{L_AVATAR_CATEGORY}{L_COLON} </span><select name="category">{S_CAT_OPTIONS}</select> <input class="btnlite" tabindex="0" type="submit" value="{L_GO}" name="display_gallery" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="row1" colspan="2" align="center">
|
|
||||||
<table cellspacing="1" cellpadding="4" border="0">
|
|
||||||
<!-- BEGIN avatar_row -->
|
|
||||||
<tr>
|
|
||||||
<!-- BEGIN avatar_column -->
|
|
||||||
<td class="row1" align="center"><img src="{avatar_row.avatar_column.AVATAR_IMAGE}" alt="{avatar_row.avatar_column.AVATAR_NAME}" title="{avatar_row.avatar_column.AVATAR_NAME}" /></td>
|
|
||||||
<!-- END avatar_column -->
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<!-- BEGIN avatar_option_column -->
|
|
||||||
<td class="row2" align="center"><input type="radio" class="radio" name="avatar_select" value="{avatar_row.avatar_option_column.S_OPTIONS_AVATAR}" /></td>
|
|
||||||
<!-- END avatar_option_column -->
|
|
||||||
</tr>
|
|
||||||
<!-- END avatar_row -->
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_GALLERY or S_IN_AVATAR_GALLERY or S_LINK_AVATAR or S_UPLOAD_AVATAR_URL or S_UPLOAD_AVATAR_FILE or AVATAR -->
|
<!-- IF S_DISPLAY_GALLERY or S_IN_AVATAR_GALLERY or S_LINK_AVATAR or S_UPLOAD_AVATAR_URL or S_UPLOAD_AVATAR_FILE or AVATAR -->
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -84,4 +50,6 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<!-- INCLUDEJS template/avatars.js -->
|
||||||
|
|
||||||
<!-- INCLUDE ucp_footer.html -->
|
<!-- INCLUDE ucp_footer.html -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue