Jump to content

Archived

This topic is now archived and is closed to further replies.

FF|Skyrider

PHP & CMS Joomla!

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.