Hello all,
Happy to join your community at vbdesigns.de
I have an urgent question:
I’m running VbCMS 1.2.5 in vbulletin 3.7.2 all in the same ROOT folder and it works great.
I’ve made a
php file module which is simply independent php file (I use addt-interakt framework) see my file here:
http://www.elcamajan.com/vbcmsmodul_homepage.php (works perfect)
Since I’m forced to have this file inside the folder “vbcms_global_modules” I moved the file there without any code change, just moved it and It still works fine but some function (thumbnails) do not work anymore: see it here
Inicio - El Camajan.com … thumbnail on right top news is not created.
The error is: “
Fatal error: Call to a member function on a non-object in <b>/web/htdocs/www.elcamajan.com/home/vbcms_global_modules/vbcmsmodul_homepage.php on line
263”
Line
263 cotains: “<img src="<?php echo $objDynamicThumb1->Execute(); ?>”
Above in the line 84 is this related code for thumbnail creation:
// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("camajancms/tabs/images_2news/");
$objDynamicThumb1->setRenameRule("{rs2news.img_news}");
$objDynamicThumb1->setResize(120, 85, true);
$objDynamicThumb1->setWatermark(false);
(I already tried changing paths here but not work)
The thing is that if I place this file in the ROOT works perfect, why not inside “vbcms_global_modules”. Should I declare something additionally ? … can I use a php file located in the ROOT ?... Should I add some extra code to vbcmsmodul_homepage.?
What am I doing wrong ?
Is this the best practice to add custom php files ?
Please HELP, I need urgent to solve this even if I have to pay.
Thanks in advance.