Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: arco on May 11, 2006, 07:25:36 AM

Title: Theme: Planetfall RC2/RC3
Post by: arco on May 11, 2006, 07:25:36 AM
Theme Planetfall RC2/RC3

For Joomla!/SMF integration. Based on Rhuk_Planetfall theme.



First of all, thanks to xenovanis (http://www.simplemachines.org/community/index.php?action=profile;u=6985) for the original work on this theme.
- Original Planetfall thread: Theme Planetfall (http://www.simplemachines.org/community/index.php?topic=26690.0)

I've simply made some changes to it so that it's more up-to-date with SMF 1.1RC2/RC3.
Also fixed some small layout issues here and there.

It also uses the simple black mini buttons by Andrea (http://www.simplemachines.org/community/index.php?action=profile;u=10).
- Button thread: Simple black mini buttons (http://www.simplemachines.org/community/index.php?topic=6981.0)

Preview (http://fusionracing.dreamhosters.com/)
Download RC2 (http://fusionracing.dreamhosters.com/component/option,com_docman/task,doc_details/gid,33/Itemid,44/)
Download RC3 (http://fusionracing.dreamhosters.com/component/option,com_docman/task,doc_details/gid,48/Itemid,44/)

29.08.06
Updated for RC3

16.08.06
Removing the excess headers when running wrapped.

Users of the Joomlahacks bridge:
You need to add the following code before the </head> tag in your Mambo/Joomla template.

Orstio bridge users don't need to change anything.

If doing theses changes for RC3, changes all instances of rc2 to rc3.

<?php 
global $sc$context$settings;

if (!
defined('SMF')){
  require (
"administrator/components/com_smf/config.smf.php");
  require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc2"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_session_id = "'
$context['session_id'], '";
// ]]></script>'
;

echo 
'
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?rc2" media="print" />
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';
?>
Title: Re: Theme: Planetfall RC2
Post by: SlammedDime on August 16, 2006, 05:45:10 AM
A large, IMO, problem with this is that you are printing out all of the information in the <head> tags after joomla has already loaded, as well as DocType, and then after the forum has printed, it throws in the 'proper' </body> and </html> tags that the theme has...
Title: Re: Theme: Planetfall RC2
Post by: arco on August 16, 2006, 12:17:34 PM
You're right. How can that be fixed?
Title: Re: Theme: Planetfall RC2
Post by: arco on August 16, 2006, 01:50:23 PM
Never mind, I think I've fixed it. Inline editing even started to work now. :)
Updated main post. Let me know if things don't work.
Title: Re: Theme: Planetfall RC2
Post by: SlammedDime on August 16, 2006, 04:08:22 PM
If the latest version of the bridge is being used, well at least the one I have (Joomla 1.0.10 and SMF 1.1RC2), it isn't necessary to put those items in the Joomla template, as Orstio already has them there.
Title: Re: Theme: Planetfall RC2
Post by: arco on August 16, 2006, 04:47:50 PM
Okay. I'm using the Joomlahacks bridge, and others who use that bridge will have to add the code to the Joomla template. Users of Orstio's bridge can disregard that step.
Title: Re: Theme: Planetfall RC2/RC3
Post by: arco on August 29, 2006, 08:01:22 AM
Updated for RC3...
Title: Re: Theme: Planetfall RC2/RC3
Post by: SlammedDime on August 30, 2006, 04:58:23 AM
What exactly has been changed?  I used the previous version with RC3 and everything is fine (I had to edit some things to make it XHTML compliant, but otherwise its fine)
Title: Re: Theme: Planetfall RC2/RC3
Post by: arco on August 30, 2006, 10:57:23 AM
Mostly changes for the UTF8 support and adding the AJAX loading indicator.

More specifically, changes from RC2 to RC3 is outlined here:
http://www.simplemachines.org/community/index.php?topic=104247.0
Title: Re: Theme: Planetfall RC2/RC3
Post by: SlammedDime on August 30, 2006, 08:05:23 PM
Whats this 'CustomProfile.php' stuff that I do not have anywhere on any system, nor was it in the previous 'version' of this template?

Also a call to displayfieldpostspictures()...

I assume this is left over from some sort of mod you have on your system?  Testing it on a virgin install of the software is a pretty good idea, and its probably a good idea to validate the html as well.
Title: Re: Theme: Planetfall RC2/RC3
Post by: arco on August 31, 2006, 01:47:22 AM
Hmm, dunno how that sneaked in there. :-\ I have removed it and uploaded a new package.

Validating I know nothing about, I just picked up the work from a previous version.

This will be the last time I will be making available modifications to this theme so it it's up to par with new SMF versions. From here on I will only do it for my own use. Hope some of you had some valuable use of my work.
Title: Re: Theme: Planetfall RC2/RC3
Post by: IbrahimA on September 23, 2006, 01:25:56 PM
Wow, this theme with cool_raji is the only good smf/joomla combination theme I've seen. The only problem is, I had to get cool_raji off a german site because I couldn't find an english version. Is there one, or do I have to translate some stuff manually? It's kind of obvious what Suche is (search I guess) and there's always google translator, but I don't want to waste my time if there is an English version. Very nice theme, and I like your site.
Title: Re: Theme: Planetfall RC2/RC3
Post by: arco on September 30, 2006, 02:22:59 PM
Thanks. The search stuff is the only thing that needs to be translated. I'm using that space for the logo, so I have removed it from the index file. If you want it, my modified template is here:

http://fusionracing.dreamhosters.com/component/option,com_docman/task,doc_details/Itemid,44/gid,62/
Title: Re: Theme: Planetfall RC2/RC3
Post by: Tylius on March 30, 2007, 11:31:41 PM
I've been unable to find a download for this anywhere that's still active, does anyone happen to have a copy laying around?

Thanks in advance!