http://www.icyphoenix.com/viewtopic.php?f=28&t=3701&p=25625#p25625
-----------------------------------
moreteavicar
Sat 08 Mar, 2008 19:58

Re: Track Visitors To Your Website Using Google Maps
-----------------------------------
[quote user="babbman" post="25568"][quote user="moreteavicar" post="25563"]
I think you'll be better off adding it to page_header.php, then it will be called whatever page is viewed.[/quote]

I almost hate asking this question... but I'm not a php programmer at all...

I have the gmap and other associated php files in the root.

If I wanted to put the add_geoip() function call in page_header.php, what's the proper syntax?

Thanks![/quote]
Actually I was jumping the gun a bit when I said that - I had in mind the idea of putting the function inside page_header.php and calling it from there. If you were going to use the original files, then use:
[code linenumbers=false]
include_once($phpbb_root_path . 'gmap.' . $phpEx); [/code] Put it somewhere near the top of includes/page_header.php, e.g. after the line [code linenumbers=false]define('HEADER_INC', true);[/code] let me know if that works ;)


