Jump to content

Leaderboard

  1. FlinTY

    FlinTY

    Contributor


    • Points

      2

    • Posts

      135


  2. Skye

    Skye

    Frost


    • Points

      1

    • Posts

      122


  3. Yuu

    Yuu

    Snow


    • Points

      1

    • Posts

      422


  4. Phun

    Phun

    Retired Staff


    • Points

      1

    • Posts

      1,119


Popular Content

Showing content with the highest reputation on 03/21/2013 in all areas

  1. 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
    2 points
  2. 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)
    1 point
  3. 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>";
    1 point
  4. Just like it for no reason.
    1 point
  5. I highlighted the area you failed to read.
    1 point
  6. No problem, I got them to increase it, hence the message has gone. -T
    1 point
  7. lmao. I got my breath stop . Hahaha.
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...