aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-21 13:45:18 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-21 13:45:18 +0000
commitf0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49 (patch)
treeb0dad871b3d4793e4a76d63f422f9d491c17e88c /phpBB/profile.php
parent5706375aaccb53c902433c65b89621760c642c52 (diff)
downloadforums-f0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49.tar
forums-f0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49.tar.gz
forums-f0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49.tar.bz2
forums-f0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49.tar.xz
forums-f0b2e3beb11c0d0d05e5810ac5f8bfcd0e6a0b49.zip
Using block_vars to fake IF...ELSE...ENDIF capability
git-svn-id: file:///svn/phpbb/trunk@719 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 13d50421f3..0f47c7d822 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -1060,6 +1060,30 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
"S_PROFILE_ACTION" => append_sid("profile.$phpEx"))
);
+ //
+ // This is another cheat using the block_var capability
+ // of the templates to 'fake' an IF...ELSE...ENDIF solution
+ // it works well :)
+ //
+ if( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] )
+ {
+ $template->assign_block_vars("avatarblock", array() );
+
+ if($board_config['allow_avatar_upload'])
+ {
+ $template->assign_block_vars("avatarblock.avatarupload", array() );
+ }
+ if($board_config['allow_avatar_remote'])
+ {
+ $template->assign_block_vars("avatarblock.avatarremote", array() );
+ }
+ if($board_config['allow_avatar_local'])
+ {
+ $template->assign_block_vars("avatarblock.avatargallery", array() );
+ }
+
+ }
+
$template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);