FF|Skyrider Posted September 10, 2008 Share Posted September 10, 2008 Hey everyone, I'm new and had a question about PHP. I downloaded a CMS named Joomla yesterday, and I'm trying to merge some of the code within our site. The problem is that the whole code (that I took from a default template to test it out) is completely in a special PHP code. Example (and the first <php may be wrong, but it was something like that): <php. /* + ----------------------------------------------------------------------------+ | e107 website system | | Steve Dunstan 2001-2002 | http://e107.org | jalist@e107.org | | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | | $Source: /cvsroot/e107/e107_0.7/e107_themes/interfectus/theme.php,v $ | $Revision: 1.11 $ | $Date: 2007/03/18 11:20:30 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } // [multilanguage] @include_once(e_THEME."esfv1.0/languages/".e_LANGUAGE.".php"); @include_once(e_THEME."esfv1.0/languages/English.php"); // [theme] $themename = "ESF v1.0 Theme"; $themeversion = "1.0"; $themeauthor = "DJ Raven [jalist]"; $themeemail = "jalist@e107.org"; $themewebsite = "http://www.esforces.com"; $themedate = "16/03/2005"; $themeinfo = "Dark theme suitable for gaming / clan sites."; define("STANDARDS_MODE", TRUE); $xhtmlcompliant = TRUE; $csscompliant = TRUE; define("THEME_DISCLAIMER", " ".LAN_THEME_1.""); define("IMODE", "dark"); // [layout] $layout = "_default"; $HEADER = " [ {SITENAME} ] {CUSTOM=search+".THEME_ABS."images/search.png} {CUSTOM=clock} {SETSTYLE=main} "; $FOOTER = " {SETSTYLE=menu1} {SITELINKS} {MENU=1} {SITEDISCLAIMER} {THEME_DISCLAIMER} "; /* {PLUGIN=other_news_menu/other_news2_menu} */ $CUSTOMHEADER = "" ; ?> I have no idea, but is this a special PHP code or something? If I leave the <php instact in the beginning and place it on where the code should be, it will work.. But it'll only display below our site. If I remove the php code in the beginning, it'll show as this: http://esf.filefront.com/cms/news.php Possible someone can help me with this how to add this code on our site correctly? If I made this thread in the wrong section, please do move it . Regards, Skyrider Quote Link to comment https://forums.phpfreaks.com/topic/123582-php-cms-joomla/ Share on other sites More sharing options...
JasonLewis Posted September 10, 2008 Share Posted September 10, 2008 You need the ? in <php. It should be <?php That looks like only a snippet, and no it's nothing special. Just their template system by the looks of it. But it is missing stuff at the start. Quote Link to comment https://forums.phpfreaks.com/topic/123582-php-cms-joomla/#findComment-638226 Share on other sites More sharing options...
JonnoTheDev Posted September 10, 2008 Share Posted September 10, 2008 This is not special code. These are php constants with template replacement markers. So {SITEDISCLAIMER} will be replaced with whatever the value is set to using whatever template processor Joomla uses. Quote Link to comment https://forums.phpfreaks.com/topic/123582-php-cms-joomla/#findComment-638227 Share on other sites More sharing options...
FF|Skyrider Posted September 10, 2008 Author Share Posted September 10, 2008 I still have a problem though. Even with the <?php code and the ending code on the end of the whole code stuff, it works as it should.. But it only displays under our website, not where I placed the code (it should be on the news area). So, what should I do now? How do I make this to work at the location where you see at the text on the site? Quote Link to comment https://forums.phpfreaks.com/topic/123582-php-cms-joomla/#findComment-638240 Share on other sites More sharing options...
toivo Posted September 15, 2008 Share Posted September 15, 2008 That code does not look like a Joomla template. It refers to e107 which is another CMS. Is that what your site is implemented in? Quote Link to comment https://forums.phpfreaks.com/topic/123582-php-cms-joomla/#findComment-642270 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.