Resourceful Coding Tips

Coding tips, links to coding, social networking, programming, and content management system tools.

  • Moodle Tips: Modify the login box

    Need to modify the "Your are logged in as...(Logout)" link text" that is at the top right of your Moodle site? It usually looks like this: The parentheses are hard coded but they can be removed without any problems as far as I have seen. Find your weblib.php file. Do this for all the code that refers to 'login,' 'logout,' 'switchrolereturn,' and 'loggedinas' In my weblib.php this runs from lines 3477 to 3497 Remove the ( that occurs after the " and the ) that is just before the last '; Original:
    $loggedinas = $realuserinfo.get_string('loggedinas', 'moodle', $username). " (<a $CFG->frametarget href=\"$CFG->wwwroot/login/logout.php?sesskey=".sesskey()."\">".get_string('logout').'</a>)';
    After:
    $loggedinas = $realuserinfo.get_string('loggedinas', 'moodle',...

    More Details Here »


  • WordPress: Category Custom Styling

    If you want to do some sophisticated styling of Wordpress categories, this is a must-read: Include the Category ID via postclass For added goodness, here is a plugin that will show post, page, and category ID's in your Wordpress admin. Plus, you can designate what user levels are allowed to see them. It's called (drumroll...):  Reveal IDs for WP-Admin A code snippet/tidbit for Wordpress: You can have 'current' highlighted states for page items in a menu ("current_page_item"), but did you know there is a class in Wordpress that you can use for current category items? It is...

    More Details Here »


  • Resources

    Wordpress, Joomla, Drupal, blogging, and general internet tips and goodies will be...

    More Details Here »