News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Text formatting broken when wrapped

Started by Worsin, October 26, 2006, 03:02:52 PM

Previous topic - Next topic

BadCluster

round and round we go but there is no solution on the horizon...

the bad thing is that i dont want to use joomlahacks code....

BadCluster

Worsin try this module for smf
http://mods.simplemachines.org/index.php?mod=265
(Joomla Mambo Tag Cleanup)
and see if this fixes the problems.
of course take a backup first

Kindred

that will NOT fix his problem.

The problem is that the theme he is using has been pre-modified to work with the joomlahacks bridge.  Which means that it will NOT work with Orstio's bridge without major modification. period.
Сл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."

Aravot


BadCluster


Kindred

I would assume that he used a better theme/template
Сл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."

Aravot

It seems he is using a different SMF theme (link in the first post)

Worsin

#27
Quote from: Aravot on November 03, 2006, 05:01:10 PM
It seems he is using a different SMF theme (link in the first post)

I used the Mercury Theme by Bloc found on this site, it is a great template that didnt change hardly anything from the default template.  I then changed all the CSS settings and replaced the English folder with the one from Versatiliy 2 (better icons with the Versatiliy 2 version).

It turned out fantastic i think.  Also, i get the SMF header available which i was not able to get to show using the Versatiliy 2.  So far i have had 0 problems with the mercury template.

Here is my site if you want to check it out

www.teenhelpcenter.us
Joomla! 1.0.11 Stable
SMF 1.1 RC3 w/ Bridge 1.1.6
JACLPlus 1.0.11
CB 1.0.1
Versatility 2 Template (Rocket Themes)

moribund

I think i found a way to fix this:

On line 95 of index.template.php insert the following line

$context['jsmf_wrapped']=false;

Here is my before

   // test for joomla integration
   global $wrapped, $jsmfConfig, $header_style , $toolbar_style , $footer_style;

   if(isset($wrapped) && $wrapped==true)
      $context['joomla_wrapped']=true;
   elseif(isset($wrapped) && $wrapped==false)
      $context['joomla_wrapped']=false;
   elseif(isset($jsmfConfig) && $jsmfConfig->wrapped)
      $context['joomla_wrapped']=true;
   elseif(isset($jsmfConfig) && !$jsmfConfig->wrapped)
      $context['joomla_wrapped']=false;
   else
      $context['joomla_wrapped']=false;

   if(isset($jsmfConfig) && $jsmfConfig->wrapped)
      $context['jsmf_wrapped']=true;

  if (!$context['joomla_wrapped'] || $context['jsmf_wrapped']) {
     
  if (!$context['jsmf_wrapped']) {
   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "hxxp:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [nonactive]">
<html xmlns="hxxp:www.w3.org/1999/xhtml"' [nonactive];, $context['right_to_left'] ? ' dir="rtl"' : '', '>';
  }


And here is my after

   // test for joomla integration
   global $wrapped, $jsmfConfig, $header_style , $toolbar_style , $footer_style;

   $context['jsmf_wrapped']=false;

   if(isset($wrapped) && $wrapped==true)
      $context['joomla_wrapped']=true;
   elseif(isset($wrapped) && $wrapped==false)
      $context['joomla_wrapped']=false;
   elseif(isset($jsmfConfig) && $jsmfConfig->wrapped)
      $context['joomla_wrapped']=true;
   elseif(isset($jsmfConfig) && !$jsmfConfig->wrapped)
      $context['joomla_wrapped']=false;
   else
      $context['joomla_wrapped']=false;

   if(isset($jsmfConfig) && $jsmfConfig->wrapped)
      $context['jsmf_wrapped']=true;

  if (!$context['joomla_wrapped'] || $context['jsmf_wrapped']) {
     
  if (!$context['jsmf_wrapped']) {
   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "hxxp:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [nonactive]">
<html xmlns="hxxp:www.w3.org/1999/xhtml"' [nonactive];, $context['right_to_left'] ? ' dir="rtl"' : '', '>';
  }


Hope that helps!

Kindred

Quote from: Kindred on November 03, 2006, 01:00:57 PM
that will NOT fix his problem.

The problem is that the theme he is using has been pre-modified to work with the joomlahacks bridge. Which means that it will NOT work with Orstio's bridge without major modification. period.
Сл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: