| Re: Plan on how to merge 2.2 and 2.0 |
| by wizanda on 2008/7/27 15:19:18 Since on topic of merge sorry this wasn't earlier, yet had a think about it and here is a better way for future compatibility : common.php le="color: #000000"><?php $xTheme = new XTheme($xoopsConfig['banners'] == 1, in_array(3, $xoopsConfig['debug_mode'])); <--------------------------add below here $xoTheme =& $xTheme; That for our $xoTheme object....Next in class/theme.php somewhere within the class xTheme: le="color: #000000"><?php /* added for compatibility */ function addStylesheet($src = '', $attributes = array(), $content = ''){$XaddStyle = $this->addCSS($src,$attributes,$content); return $XaddStyle;} function addScript($src = '', $attributes = array(), $content = ''){$XaddScript = $this->addJS($src,$attributes,$content); return $XaddScript;} Then that's to redirect all references automatically to the other version doing the exact same thing
|
| Re: Plan on how to merge 2.2 and 2.0 |
by tzvook on 2008/7/27 14:24:20 The smile on my face is much much much wider ![]() Thanks !!! you made my day !!!!!!! ( I tried replacing $xoTheme->addScript with $xTheme->addScript .... stupid me )
|
| Re: Plan on how to merge 2.2 and 2.0 |
| by wizanda on 2008/7/27 13:46:14 It needed the userinfo.php language files added to the user.php in languages. le="color: #000000"><?php //%%%%%%File Name userinfo.php%%%%% define('_US_NICKNAME','Username'); define('_US_REALNAME','Real Name'); define('_US_EMAIL','Email'); define('_US_PM','PM'); define('_US_ICQ','ICQ'); define('_US_AIM','AIM'); define('_US_YIM','YIM'); define('_US_MSNM','MSNM'); define('_US_WEBSITE','Website'); define('_US_LOCATION','Location'); define('_US_OCCUPATION','Occupation'); define('_US_INTEREST','Interest'); define('_US_SIGNATURE','Signature'); define('_US_EXTRAINFO','Extra Info'); define('_US_EDITPROFILE','Edit Profile'); define('_US_MEMBERSINCE','Member Since'); define('_US_RANK','Rank'); define('_US_POSTS','Comments/Posts'); define('_US_LASTLOGIN','Last Login'); define('_US_ALLABOUT','All about %s'); define('_US_STATISTICS','Statistics'); define('_US_MYINFO','My Info'); define('_US_BASICINFO','Basic information'); define('_US_MOREABOUT','More About Me'); define('_US_SHOWALL','Show All'); Then to fix the header we can either use: le="color: #000000"><?php $xoopsOption['xoops_module_header'] = '<link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/yogurt/templates/style.css" />'; $xoopsOption['xoops_module_header'] .= ‘all items needed’; The other is: le="color: #000000"><?php $xTheme->addCSS( $xTheme->addJS( Just replace the $xoTheme, for $xTheme and use these methods to include it exactly the same.
|
| Re: Plan on how to merge 2.2 and 2.0 |
| by tzvook on 2008/7/27 12:50:25 @ wizanda I understand that you made Yogurt function with the 2.2.x series. I had a few fights with the $xotheme staff, and had no success .... can you post the hack please ? I have 4 2.2.x sites which I can't upgrade to 2.3 and Yogurt will be a great addition. |
| Re: Plan on how to merge 2.2 and 2.0 |
| by wizanda on 2007/10/29 10:49:34 Ok maybe you don’t need to change the userinfo.php, as they messed up the new profiles….yet since I changed that back yesterday on realizing and then today I still had Yogurt still installed on my home PC, with xoops_module_header in exchange for the $xoTheme->addstylesheet…….. Then on going to it, it still works….other then the user language files, which within the profiles module have been defined with PROFILE_ in front….so on adding the language alone in the language/../user.php this then works…… So we need to add $xotheme back into XOOPS 2.2 so that isn’t comprised….as it is far better system then Xoops_module_header…. |