Hi Folks!
First I want to say, that TBS is awesome!
But when I changed from Version 2 to 3 I got a lot of trouble with my CMS. I programmed it completely by myself, so I know the Code and Stuff really good.
You have to know, that my System is completely OO and so there are a lot of cool possibilities, e.g. inheritance, overloading and so on...
I'm using modules for managing the Content. There are 2 different Tyes. "Generic"-Ones with a global Template, calling an inherited function, with complete different functionality in it. And "Individual"-Ones with complete different Templates and Functions.
The problem where I ran into was at the "Generic"-Ones, they displayed always the same Content of the first module on the site...
After Debugging hours and hours (thanks ZDE) I found the Tricky Part:
FILE: tbs_class_php5.php
ROW: 2201
There is a "Cache" for called "onformat"-userfunctions, which sets references to objects. Good Programmers may get what happened :) It deters the functionality of my inherited functions and calls everytime the function of the first "Generic"-module :)
If you get into the same trouble here is the solution... (maybe the TBS programmer knews a better way). Comment out the check and return of the "Cache"-System for "onformat"-userfunctions.
function meth_Misc_UserFctCheck(&$FctInfo,&$ErrMsg,$DataFct) {
$Ref = ($FctInfo[0]==='~');
/*
if (isset($this->_UserFctLst[$FctInfo])) {
if ($Ref) $FctInfo = $this->_UserFctLst[$FctInfo];
return true;
}
*/
|
I hope this helps someone, if not... forget it :)
Sven Jansen