Subject: Cool lib-common hack for help file in block header

Posted on: 20/07/06 08:30am
By: tgc

I never liked it when you click on the help icon of the block header (in case you cared to put a link in) and the link opens in a new window. If you use a static page as a help file, then you want to have it open within your page (at least I do).
So here is my first geeklog hack:
Open lib-common.php and go about to line 1292
{
            $help = '<a class="blocktitle" href="' . $helpfile
                . '" target="_blank"><img src="' . $helpimg
                . '" border="0" alt="?"></a>';
        }
and change it to
{
            $help = '<a class="blocktitle" href="' . $helpfile
                . '" target="_self"><img src="' . $helpimg
                . '" border="0" alt="?"></a>';
        }

Enjoy/Frank

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=68495