https://www.icyphoenix.com/viewtopic.php?f=36&t=8671&p=56640#p56640
-----------------------------------
mort
Tue 04 Sep, 2012 12:45

Re: Need Help Adding Link Variables
-----------------------------------
I was going to go this way.  :mryellow: 

[b]Open:[/b]

default.cfg

[b]Find:[/b]

?>

[b]Before Add:[/b]

[code linenumbers=false]// My Own template variables

// START About MOD
$template->assign_vars(array(
'L_ABOUT' => $lang['About'],
'U_ABOUT' => append_sid(IP_ROOT_PATH . 'about.' . PHP_EXT),
	)
);
// END About MOD[/code]

Create a file: lang_extend_my_mods.php with the script below and copy it to your language folder.


[code linenumbers=false]<?php
/**
*
* @package Icy Phoenix Modifications
* @File $Id: lang_extend_aboutl_mod.php
* @copyright (c) 
* @license: http://opensource.org/licenses/gpl-license.php GNU Public License
*/

/**
*
* @Extra credits for this file
* Modified for Icy Phoenix by Lopalong - 31-January-2009
*
*/

if (!defined('IN_ICYPHOENIX'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(

// START My Language

	'ABOUT' => 'About',

// END My Language
	)
);

?>
[/code]

So now you have umpteen ways of doing it.  :lol:


