https://www.icyphoenix.com/viewtopic.php?f=35&t=5549
-----------------------------------
DWho
Sat 07 Mar, 2009 11:52

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 

[spoiler][code linenumbers=false]// 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[/code][/spoiler]

to the file and the IP_ROOT_PATH is

[code linenumbers=false]'IP_ROOT_PATH', '../'[/code]

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


-----------------------------------
Lopalong
Mon 09 Mar, 2009 12:18

Re: Adding Bbcode In Admin File For Mod In Beta
-----------------------------------
Then one can only assume that the paths are wrong in the .php files for the mod you are trying to convert, or sometimes you need to add the "Full" path (Variables) in the MOD.php files you are playing with so that it doesn't use the Unix path.

Don't know? - Difficult to work out what you are doing without a full example of the MOD. ;)


