User Tools Hack


Notice: Undefined variable: params in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 63

Warning: array_merge(): Expected parameter 2 to be an array, null given in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 63

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 70

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 80

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 85

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 91

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 93

I didn't like the way the Login plugin didn't give an alternative Log Out option.

It was inconvenient and messed with the symmetry of layout I wanted so I replaced the Menu Link [Log in form] with the User Tools widget but had to mess with User Tools to get approximately what I wanted.

I blanked out some of the links by using   text. It took a while before I didn't like the way the spaces were aligned etc., then I noticed 6 XHTML errors so I thought I'd try a widget hack after my success with the More Tags one

I thought I may be able to remove most options just to leave a Log In, Log Out option.

Took a few hacks:

  1. I removed some options and changed some output text, which put me back as they all came back up on reinstalling. Still had the XHMTL errors
  2. Realised I had only altered the GUI admin options, not that displayed on the menu bar. Found the 'display' code and removed some of the parameters. This was better the output was fine but I still had 3 errors
  3. On further investigation I removed the [Block] part, which was of course is the 'User Tools' tile which had the H2 tag the source of the errors, which doesn't fit in the position I placed the widget - the 'menu' as it puts the H2 outside a list item section.

    Had to go back and remove the last [/Block] parameter and all is fine.:)


function display( $params )
{

$this->init_display( $params );
echo $this->disp_params['list_start'];
user_login_link( $this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params[ 'user_login_link' ] );
user_logout_link( $this->disp_params['item_start'], $this->disp_params['item_end'], $this->disp_params[ 'user_logout_link' ] );
echo $this->disp_params['list_end'];
}