• b2evo
  • Front Page
  • Contact
  • Login
  • reset page

Far Fields

  • Andromeda ¦ First Contact
  • Blush ¦ Private
  • Dad ¦ Private
  • Vyaj ¦ Immigration & Asylum Cases

Near Fields

  • My Bits
  • Behind the Sceanic
  • vOw ¦ Vegan Organic Wholefood

Old Fields

  • 1996 Site
  • Old Search Site

Blogs

  • b2Evo ¦ Blog techie stuff
  • eLf ¦ Updates on the land
  • blInk ¦ Some useless links
  • spAce ¦ Thoughts on being
  • j&j ¦ Prospectors of Kern
  • av0id ¦ How I Got Here

User Tools HackUpdated: April 24th, 2008

Created: 24/04/08

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'];
}

  roger
print   Print     
 
  •  Paged Index of 133 Posts

  • Last nineteen

    • Add html figure tag
    • Validation 7.2.5
    • elfgifs_plugin
    • Add sub text button
    • [autocorrect] validation
    • Versions & Database
    • Math Terms & Plugin
    • My Search Hack
    • figure tag
    • evobar toolbar
    • Front Page Collections #
    • Move to a new line using CSS not <br />
    • Version 6.10.6 & php 7
    • Stuck on Version 6.10.5
    • Limit Login Attempts
    • 6.10.5
    • Add Number to Comment
    • 6.10.4
    • v 6.10.*
  • Search


Valid HTML 5.0    ubuntu link    duckduckgo link    b2evolution link    firefox link    Creative Commons Licence    Valid CSS!