This tutorial is how to prevent other users with admin powers to delete the main admin account (usually ID no.1) Open file: adminapplicationsmembersmodules_adminmembersmembers.phpFind: by pressing cntrl + f $ids = IPSLib::cleanIntArray( $ids ); Add above: if( in_array( 1, $ids ) ) { $this->registry->output->global_message = "Can't remove main admin account. Sorry."; $this->request['do'] = 'members_list'; $this->_memberList(); return; }the click save
Not tested on 3.4
This is a simple way to display a default avatar based on if the member has chosen a gender.
You will need to upload three images to your skin's root folder:
defaultav.gif
femaleav.gif
maleav.gif
If you would like a JPG or PNG then change the code accordingly.
In Global Templates > userInfoPane
Find:
<if test="avatar:|:$author['member_id'] AND $author['avatar']"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li> <else /> <li class='avatar'>{$author['avatar']}</li> </if>
Replace:
<if test="avatar:|:$author['member_id'] AND !$author['avatar']"> <if test="gender:|:$author['field_5'] == 'f'"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/femaleav.gif"></a></li> </if> <if test="gender:|:$author['field_5'] == 'm'"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/maleav.gif"></a></li> </if> <if test="gender:|:$author['field_5'] != ''"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/defaultav.gif"></a></li> </if> </if> <if test="avatar:|:$author['member_id'] AND $author['avatar']"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li> <else /> <li class='avatar'>{$author['avatar']}</li> </if>
Save and it's done.
Note: If you remove the Gender field or it is not field_5 (the default number) then this will not work.
Credits goes to Morrigan.
A little image package for you. (edit the code or rename the image)
Hello to all, With this simple edit we can have auto code tag to all links when create a topic or a post with live links.Open: /admin/sources/classes/bbcode/custom/defaults.phpFind:return "<a href='{$option}' class='bbc_url' title='{$_title}'{$rel}>{$content}</a>";Replace with:return "<pre class='prettyprint'>{$option}</pre>";