
Adding Bbcode In Admin File For Mod In Beta
Hi
I am working on a mod for new ICY release but I need to show the bbcode images in an admin file...
the bbcode works if you type it in the message box but the images are being called from the wrong path...
I have added
// BBCBMG - BEGIN
include_once(IP_ROOT_PATH . 'language/lang_' . $board_config['default_lang'] . '/lang_bbcb_mg.' . PHP_EXT);
include(IP_ROOT_PATH . 'includes/bbcb_mg.' . PHP_EXT);
$template->assign_var_from_handle('BBCB_MG', 'bbcb_mg');
// BBCBMG - END
// BBCBMG SMILEYS - BEGIN
include(IP_ROOT_PATH . 'includes/bbcb_smileys_mg.' . PHP_EXT);
$template->assign_var_from_handle('BBCB_SMILEYS_MG', 'bbcb_smileys_mg');
// BBCBMG SMILEYS - END
to the file and the IP_ROOT_PATH is
but it only looks for the images at root/adm/images
where as I need it to look in root/images..
I have many combinations but cannot make it work..
Any help would be greatly appreciated as this is stopping me from releasing a beta version of the mod...
Thanks
____________
Mods and themes for Icy Phoenix 1.3
IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.