Welcome to Geeklog Thursday, October 17 2019 @ 04:32 pm EDT

Geeklog Forums

Cool lib-common hack for help file in block header


Status: offline

tgc

Forum User
Regular Poster
Registered: 15/03/06
Posts: 82
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
PHP Formatted Code
{
            $help = '<a class="blocktitle" href="' . $helpfile
                . '" target="_blank"><img src="' . $helpimg
                . '" border="0" alt="?"></a>';
        }
 
and change it to
PHP Formatted Code
{
            $help = '<a class="blocktitle" href="' . $helpfile
                . '" target="_self"><img src="' . $helpimg
                . '" border="0" alt="?"></a>';
        }
 

Enjoy/Frank

All times are EDT. The time is now 04:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content