[tngusers2] Custom Function - Roger & Ken

Tony Lilley tonylilley at yahoo.com
Wed Aug 27 06:17:26 CDT 2008


Roger, Ken
Thanks for your response and suggestions, they gave me a couple of ideas to pursue.
Regards
Tony



----- Original Message ----
From: Ken Roy <kenroy_tnguser at verizon.net>
To: TNG Users List <tngusers2 at lythgoes.net>
Sent: Tuesday, 26 August, 2008 2:49:38 PM
Subject: Re: [tngusers2] Custom Function

I think with TNG 7.0 and above, the include now may need to be

include_once($subroot . "config.php");

Ken

Roger Moffat wrote:
>
> On Aug 26, 2008, at 8:13 AM, Tony Lilley wrote:
>
>> Can someone please advise where best to place a custom function.
>>  
>> My current setup is:
>> I have adapted the tng_coreicons function in genlib.php which I have 
>> stored at the end of genlib.php and renamed it tng_tl_coreicons.
>> In topmenu.php I call the new function and all works fine.
>>  
>> My problem is the usual one when there is a new release and the 
>> custom stuff needs to be migrated forward.
>> I did try putting it in customconfig.php, but then got errors when 
>> loading the index page - something about session-start and headers 
>> already being loaded (I can recreate the message if required, but not 
>> until I get home tonight).
>>  
>> Any suggestions will be gratefully received.
>
> When you put the function into customconfig.php did you use any 
> include lines - if so, change them to include_once and it might/should 
> not generate those errors. eg
>
> include_once("config.php");
>
> You could also put your function into its own file and call it that 
> way, but again use include_once for other files you're including into 
> the function.
>
> "I think". :-)
>
> Roger
> =
> ------------------------------------------------------------------------
>
> _______________________________________________
> tngusers2 mailing list
> tngusers2 at lythgoes.net
> http://lythgoes.net/mailman/listinfo/tngusers2_lythgoes.net
>  

_______________________________________________
tngusers2 mailing list
tngusers2 at lythgoes.net
http://lythgoes.net/mailman/listinfo/tngusers2_lythgoes.net


Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lythgoes.net/pipermail/tngusers2_lythgoes.net/attachments/20080827/c119e5e1/attachment.html>


More information about the tngusers2 mailing list