Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: theslam2006 - toukokuu 01, 2006, 05:30:21 IP

Otsikko: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 05:30:21 IP
I am starting a new topic as the owner of the bridge file does not want support questions posted in there...

Everything works great, except I seem to notice something weird. The edit button (the little icon) does not work when the forum is Wrapped. When its UnWrapped, it works fine.

Is this a known bug? Is this possible to fix? Is it a joomla problem or SMF?

Thanks for anyone who can answer me.
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: Orstio - toukokuu 01, 2006, 05:53:43 IP
Do you have a URL?
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 08:19:22 IP
www.thecompletets.com

Its not wrapped right now...as I took it off so the edit would work. But, I will put it back on until you answer back here.
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: Orstio - toukokuu 01, 2006, 08:53:35 IP
First, you should remove the code you added to your Joomla template header.  There is no need for that.  It is needed only for Mambo, not for Joomla.

(As a hint:  The inline editing is generated by javascript, which is included in the header.  So, what I'm looking for is duplication of the javascript calls in the headers.  These are the most likely causes of javascript errors.)
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 09:36:58 IP
Alright, well I didnt make the skin. My friend did, and as far as I know, he has no idea about any code like that. And I didnt enter it in, so I dont know why its there. I know thats only for mambo...

I will attach the index.php file for you if you want to check it out. I dont really know what to look for. And if you know where the code is for the mambo only, could you remove that too?

Thanks man. Appreciate it.

http://ultrashare.net/hosting/fl/1b53a2536d/

(putting my forum back so edit works)
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: Orstio - toukokuu 01, 2006, 09:43:38 IP
You can't send a file named index.php that way.  The server where the download is residing is trying to execute it.

You can paste the code here in between [ code ] [ /code ] tags.
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 09:54:33 IP
erm. No, just do save to disk. Worked for me.

But, ok. Ill paste it


<?php
defined
'_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
?>

<!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">
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/prototype.lite.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.pack.js"></script>
<script type="text/javascript">
window.onload = function() {
fadesize = new fx.FadeSize('left_outer', {duration: 500});
}
</script>
<head>
<?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'" />';
?>


<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}

?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center">
<tr>
<td><?php mosLoadModules 'top' ); ?>
</td>
</tr>
<tr>
<td class="outline">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<div id="buttons_outer">
<div id="buttons_inner">
<div id="buttons">
<?php mosLoadModules 'user3', -1); ?>
</div>
</div>
</div>
<div id="search_outer">
<div id="search_inner">
<?php mosLoadModules 'user4', -); ?>
</div>
</div>
</td>
  </tr>
  <tr align="center">
<td align="center">
<div id="header_outer">
<div align="center" id="header">
<div id="pathway_text">
<a href="#" onclick="opacity.toggle();"></a>
<a href="#" onclick="fadesize.toggle('width');"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/showhide.png" id="showhide" border="0"></a><?php mosPathWay(); ?>
</div>
</div>
<div id="top_outer">
</div>
</div>
</td>
  </tr>
  <tr>
    <td id="main_area">
<table width="100%" cellpadding="0" cellspacing="0" align="center">
              <tr>
  <td id="left_side">
<div id="left_outer">
  <div id="left_inner">
<?php mosLoadModules 'left', -); ?>
  </div>
</div>
</td>
  <td id="main_body">
<?php
if ( mosCountModules ('banner') ) {
?>

<div id="banner_inner">
<?php mosLoadModules'banner', -); ?>
</div><?php ?>

<?php if (mosCountModules('user1') || mosCountModules('user2')) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="100%">
<div class="user1_inner">
<?php mosLoadModules 'user1', -); ?>
    <span class="user2_inner">
    <?php mosLoadModules 'user2', -); ?>
    </span></div> </td>
  </tr>
</table>
<?php ?>
<div id="body_outer">
  <p>
    <?php mosMainBody(); ?>
    </p>
  <p> <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="50%">
<div class="user1_inner">
<?php mosLoadModules 'user8' ); ?>
</div>
</td>
    <td width="50%">
<div class="user2_inner">
<?php mosLoadModules 'user9' ); ?>

</div>
</td>
  </tr>
</table>&nbsp;  </p>
  <div class="clr"></div>
</div>
  </td>
  <?php if ( mosCountModules'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) { ?>
  <td id="right_side">
<div id="right_outer">
  <div id="right_inner">
<?php mosLoadModules 'right', -); ?>
  </div>
</div>
  </td>
  <?php ?>
</tr>
</table>
  </td>
  </tr>
</table>
    </td>
  </tr>
</table>
<div align="center" class="dd">Black & Blue design by  <a target="_blank" href="http://www.ang-sites.co.uk/portaltest">Wolfenrook</a></div>
<br />
<?php mosLoadModules'debug', -);?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>

</html>
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: Orstio - toukokuu 01, 2006, 10:01:55 IP
Here's what it should look like:

<?php
defined
'_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
?>

<!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">
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/prototype.lite.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/scripts/moo.fx.pack.js"></script>
<script type="text/javascript">
window.onload = function() {
fadesize = new fx.FadeSize('left_outer', {duration: 500});
}
</script>
<head>

<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}

?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center">
<tr>
<td><?php mosLoadModules 'top' ); ?>
</td>
</tr>
<tr>
<td class="outline">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<div id="buttons_outer">
<div id="buttons_inner">
<div id="buttons">
<?php mosLoadModules 'user3', -1); ?>
</div>
</div>
</div>
<div id="search_outer">
<div id="search_inner">
<?php mosLoadModules 'user4', -); ?>
</div>
</div>
</td>
  </tr>
  <tr align="center">
<td align="center">
<div id="header_outer">
<div align="center" id="header">
<div id="pathway_text">
<a href="#" onclick="opacity.toggle();"></a>
<a href="#" onclick="fadesize.toggle('width');"><img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/showhide.png" id="showhide" border="0"></a><?php mosPathWay(); ?>
</div>
</div>
<div id="top_outer">
</div>
</div>
</td>
  </tr>
  <tr>
    <td id="main_area">
<table width="100%" cellpadding="0" cellspacing="0" align="center">
              <tr>
  <td id="left_side">
<div id="left_outer">
  <div id="left_inner">
<?php mosLoadModules 'left', -); ?>
  </div>
</div>
</td>
  <td id="main_body">
<?php
if ( mosCountModules ('banner') ) {
?>

<div id="banner_inner">
<?php mosLoadModules'banner', -); ?>
</div><?php ?>

<?php if (mosCountModules('user1') || mosCountModules('user2')) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="100%">
<div class="user1_inner">
<?php mosLoadModules 'user1', -); ?>
    <span class="user2_inner">
    <?php mosLoadModules 'user2', -); ?>
    </span></div> </td>
  </tr>
</table>
<?php ?>
<div id="body_outer">
  <p>
    <?php mosMainBody(); ?>
    </p>
  <p> <table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="50%">
<div class="user1_inner">
<?php mosLoadModules 'user8' ); ?>
</div>
</td>
    <td width="50%">
<div class="user2_inner">
<?php mosLoadModules 'user9' ); ?>

</div>
</td>
  </tr>
</table>&nbsp;  </p>
  <div class="clr"></div>
</div>
  </td>
  <?php if ( mosCountModules'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) { ?>
  <td id="right_side">
<div id="right_outer">
  <div id="right_inner">
<?php mosLoadModules 'right', -); ?>
  </div>
</div>
  </td>
  <?php ?>
</tr>
</table>
  </td>
  </tr>
</table>
    </td>
  </tr>
</table>
<div align="center" class="dd">Black & Blue design by  <a target="_blank" href="http://www.ang-sites.co.uk/portaltest">Wolfenrook</a></div>
<br />
<?php mosLoadModules'debug', -);?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>

</html>
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 10:28:22 IP
Still nothing. I know its not the forum either, because if you go to www.thecompletets.com/forum and hit an edit icon it does work....
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: Orstio - toukokuu 01, 2006, 10:31:29 IP
Right.  One more thing....

Install this mod in your SMF package manager:

http://mods.simplemachines.org/index.php?action=download;mod=265;id=13101
Otsikko: Re: Bridge Problem (1.1.4) (edit dont work)
Kirjoitti: theslam2006 - toukokuu 01, 2006, 10:45:33 IP
Yay. Congratulation. Works now.

Thanks alot. Very helpful. I would close and check it for others that have this problem.