Joomla! 1.0.12 & smf bridge wrapped page titles do not show

Started by arillas, April 12, 2007, 02:07:32 AM

Previous topic - Next topic

arillas

Hello again, I noticed that the page titles of my smf do not show while it is bridged & wrapped with the joomla site. it only shows the title of the main joomla site.
What I would like to do is while the forum is used to be able to have the smf titles on the top. Is this possible with the bridge?

I would also like to change the index.teplate.php (SMF default Theme) that in a way all the user details, date ,avatar and etc. not to show on the wrapped forum as it will all be desplayed on the left side of the site by the bridge's module,
Screen shot follows.
I have no experience in PHP so if anyone could show me how, it will be much apreciated.


SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

arillas

Thank you ,
The advise from this site (1st step) was this:
QuoteStep 1: Insert this between the <head></head> codes just above "mosShowHead();"

if(!empty($context['page_title']))

     $mainframe->setPageTitle($context['page_title']);

It should look like this:

<head>

<?php

if ( $my->id ) {

    initEditor();

}

if(!empty($context['page_title']))

     $mainframe->setPageTitle($context['page_title']);

mosShowHead();

?>
but I'm using a customized template and the first lines  look like the folowing.
There is not a mosShowHead(); tag! How can I add it on my template?

<?php echo "<?xml version=\"1.0\"?>";
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="alternate" title="<?php echo $mosConfig_sitename; ?>" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<?php include ("editor/editor.php"); ?>
<?php initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php include ("includes/metadata.php"); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/arillas/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/arillas/images/favicon.ico" />
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

Orstio

QuoteThere is not a mosShowHead(); tag!

Then you should get a better template.

arillas


Orstio

You can probably put it right after this:

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

But, your site might not validate.

arillas

hmm I ll try and let you know can you please show me the exact line I have to add? I'm very scary doing thins like that.
I could also fix another template for Joomla and have it asighned it to the smf
Which do you reccomend?

arillas

YES!! it worked on my local instalation.!!
Thanks a lot!
it seems that all functions are working too! what did you mean by "your site may not validate"?


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

arillas

everything is fine with the titles now.
I stil have not found a solution with the folowing:
Quote from: arillas on April 12, 2007, 02:07:32 AM
I would also like to change the index.teplate.php (SMF default Theme) that in a way all the user details, date ,avatar and etc. not to show on the wrapped forum as it will all be desplayed on the left side of the site by the bridge's module,
Screen shot follows.
I have no experience in PHP so if anyone could show me how, it will be much apreciated.



Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

arillas

Yes I know what I would like is just a tag that keeps the header Shrinked without the posibility to expand it.

I have tryed to edid many times the index.template.php for simple thinks.
This time I'm tryong to take off all the thinks I said but I always end up with an error.
I;m not so good in php you know.!

arillas

I have just realized that allthough everything runs OK , the sourcecode of my joomla bridged smf shows two copies of keywords and html tags.
How bad is this for the searsch engines?
Can I use "Joomla Mambo Tag Cleanup"
After I did the previous addition when I started this thread?

regards,

Dimitris


Kindred

yes, the clean up mod should help you, so long as you are using the default theme in SMF
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

arillas

Thanks,
I'm using a coppy of default theme which is actually the same theme but renamed and the ccs and buttons are a bit changed. would that work on it?

Kindred

The mod will ony make changes to files in the default directory.

Any other theme directory, you will have to manually apply the changes.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

arillas

Quote from: Kindred on April 24, 2007, 07:49:08 AM
The mod will ony make changes to files in the default directory.

Any other theme directory, you will have to manually apply the changes.
OK how do I do that?


Kindred

read the install.xml in the mod package and apply the changes to your other theme's template files.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: