
##############################################################
## Author Notes:
## This MOD is tested on phpBB 2.0.8, but should work on older versions from 2.0.6.
## It has not been tested on phpBB 2.0.10, feedback on any problems is welcome.
## This is designed and intended for standard phpBB installations. It has not been
## tested on portals or pre-modded boards, and is not guaranteed to work with them.
## Support will NOT be given where this is installed on a portal or pre-modded board.
Code: Select all
##############################################################
## MOD Title: My Dashboard Ultra Update Patch - v1.0.0 to v1.0.1
## MOD Author: safeTsurfa < safetsurfa@hotmail.com > (n/a) http://www.safetsurfa.co.uk
## MOD Description: Contains the changes from version 1.0.0 to 1.0.1.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~5 minutes
##
## Files To Edit: 3
## includes/page_header.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
## This MOD is tested on phpBB 2.0.8, but should work on older versions from 2.0.6.
## It has not been tested on phpBB 2.0.10, feedback on any problems is welcome.
## This is designed and intended for standard phpBB installations. It has not been
## tested on portals or pre-modded boards, and is not guaranteed to work with them.
## Support will NOT be given where this is installed on a portal or pre-modded board.
##
##############################################################
## MOD History:
##
## 2004-08-15 - Version 1.0.0
## - Fixed a small bug to make avatar display obey ACP general config restrictions.
## - Added switch to hide show avatar option if avatars disabled for board or user.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------
#
if ( $userdata['dashboard_avatar'] == 1 && $userdata['user_allowavatar'] )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $userdata['dashboard_avatar'] == 1 && $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
$template->assign_block_vars('switch_dashboard_avatar', array() );
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_DASHBOARD_AVATAR}:</span></td>
<td class="row2">
<input type="radio" name="dashboardavatar" value="1" {DASHBOARD_AVATAR_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="dashboardavatar" value="0" {DASHBOARD_AVATAR_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN switch_dashboard_avatar -->
<tr>
<td class="row1"><span class="gen">{L_DASHBOARD_AVATAR}:</span></td>
<td class="row2">
<input type="radio" name="dashboardavatar" value="1" {DASHBOARD_AVATAR_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="dashboardavatar" value="0" {DASHBOARD_AVATAR_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<!-- END switch_dashboard_avatar -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
fubarweb wrote: eh? what have you been smoking?
what possible mod could be using dashboard_show except yours? yours is the only mod i have called anything like dashboard
Shof515 wrote: this anit from the dashboard ultra since i did not update,but on the advanced verison of the dashboard,i get this:
My posts: [ 5 ] topics :: [ -4 ] replies