kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

[theme] - [component] - ["disable" friends page]

because it seems to be popular...
replaces this.
function FriendsPage::print_body() {
  if((size($.entries) == 0)) {
    # hacked from custom title bar comps tutorial by lj:masterslacker

    # entry header text
    var string entry_header = "Error";

    # print the header
    print_entry_header("<b>$entry_header<b>");


    # open entry area
    """
    <table cellspacing="0" cellpadding="0" border="0" width="100%">
      <tr>
        <td width="1" class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
        <td class="entryHolderBg" width="100%">
    """;
    print_content_top();
    """<div>""";

    # start html block

    """
    Viewing of my Friends Page has been disabled.
    """;

    # end html block

    """</div>""";
    # close off the component and place a spacer.
    print_content_bottom();
    print_system_box_bottom();
    print_spacer();

  } else {
    # print as normal
    foreach var Entry e ($.entries) {
      $this->print_entry($e);
    }
    print_bottom_nav($this);
  }
}
Tags: admin: deprecated, user: kunzite1
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 1 comment