Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:06 am EST

Geeklog Forums

Cool lib-common hack for help file in block header


Status: offline

tgc

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

Enjoy/Frank
 Quote

All times are EST. The time is now 05:06 am.

  • 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