PHP Classes

File: htdocs/modules/profile/templates/profile_userinfo.tpl

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/modules/profile/templates/profile_userinfo.tpl   Download  
File: htdocs/modules/profile/templates/profile_userinfo.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change: Smarty
Merge pull request #1388 from mambax7/feature/array_merge_resources_greedy_construction

Merge pull request #1239 from Andrew-Staves-Activ/notificationhandler_subscribe_success

Merge pull request #1058 from mambax7/feature/replace_foreachq

replace foreachq with foreach in Smarty templates
Bad form in profile_userinfo.tpl

Issue involves form element inside a form element. Noticeable
when self_delete is enabled. Besides the html error, the
form buttons from the rouge forms, such as if delete_user
is enabled, are squashed into the surrounding buttons degrading
visual appearance.

Forms within forms had propagated from the module default to
all included themes.
Template fixes user and profile for php8
Merge xswatch4
Date: 2 months ago
Size: 4,601 bytes
 

Contents

Class file image Download
<{include file="db:profile_breadcrumbs.tpl"}> <div> <{if !empty($avatar)}> <div class="floatleft pad5"> <img src="<{$avatar}>" alt="<{$uname}>"/> </div> <{/if}> <div class="floatleft pad10 block"> <strong><{$uname}></strong> <{if !empty($email)}> <{$email}> <br> <{/if}> <{if !$user_ownpage && $xoops_isuser == true}> <form name="usernav" action="user.php" method="post"> <input type="button" value="<{$smarty.const._PROFILE_MA_SENDPM}>" onclick="openWithSelfMain('<{$xoops_url}>/pmlite.php?send2=1&amp;to_userid=<{$user_uid}>', 'pmlite', 565, 500);"/> </form> <{/if}> </div> </div> <br class="clear"/> <{if isset($user_ownpage) && $user_ownpage == true}> <div class="floatleft pad5"> <form name="usernav" action="user.php" method="post"> <input type="button" value="<{$lang_editprofile}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/edituser.php'"/> <input type="button" value="<{$lang_changepassword}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/changepass.php'"/> <{if !empty($user_changeemail)}> <input type="button" value="<{$smarty.const._PROFILE_MA_CHANGEMAIL}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/changemail.php'"/> <{/if}> <{if isset($user_candelete) && $user_candelete== true}> <input type="button" value="<{$lang_deleteaccount}>" onclick="location='user.php?op=delete'"> <{/if}> <input type="button" value="<{$lang_avatar}>" onclick="location='edituser.php?op=avatarform'"/> <input type="button" value="<{$lang_inbox}>" onclick="location='<{$xoops_url}>/viewpmsg.php'"/> <input type="button" value="<{$lang_logout}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/user.php?op=logout'"/> </form> </div> <{elseif isset($xoops_isadmin) && $xoops_isadmin != false}> <div class="floatleft pad5"> <form method="post" action="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/deactivate.php"> <input type="button" value="<{$lang_editprofile}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/user.php?op=edit&amp;id=<{$user_uid}>'"/> <input type="hidden" name="uid" value="<{$user_uid}>"/> <{securityToken}> <{if isset($userlevel) && $userlevel == 1}> <input type="hidden" name="level" value="0"/> <input type="button" value="<{$smarty.const._PROFILE_MA_DEACTIVATE}>" onclick="submit();"/> <{else}> <input type="hidden" name="level" value="1"/> <input type="button" value="<{$smarty.const._PROFILE_MA_ACTIVATE}>" onclick="submit();"/> <{/if}> </form> </div> <{/if}> <br class="clear"/> <{foreach item=category from=$categories|default:null}> <{if isset($category.fields)}> <div class="profile-list-category" id="profile-category-<{$category.cat_id}>"> <table class="outer" cellpadding="4" cellspacing="1"> <tr> <th class="txtcenter" colspan="2"><{$category.cat_title}></th> </tr> <{foreach item=field from=$category.fields|default:null}> <tr> <td class="head"><{$field.title}></td> <td class="even"><{$field.value}></td> </tr> <{/foreach}> </table> </div> <{/if}> <{/foreach}> <{if !empty($modules)}> <br class="clear"/> <div class="profile-list-activity"> <h2><{$recent_activity}></h2> <!-- start module search results loop --> <{foreach item=module from=$modules|default:null}> <h4><{$module.name}></h4> <!-- start results item loop --> <{foreach item=result from=$module.results|default:null}> <img src="<{$result.image}>" alt="<{$module.name}>"/> &nbsp; <strong><a href="<{$result.link}>"><{$result.title}></a></strong> <br> <span class="x-small">(<{$result.time}>)</span> <br> <{/foreach}> <!-- end results item loop --> <{$module.showall_link}> <{/foreach}> <!-- end module search results loop --> </div> <{/if}>