Home arrow Forum Virtuemart+joomla+smf = arghhhh
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 04:35:15 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Virtuemart+joomla+smf = arghhhh
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Virtuemart+joomla+smf = arghhhh  (Read 900 times)
simon n
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Virtuemart+joomla+smf = arghhhh
« on: April 08, 2007, 03:47:46 PM »

Okay so I have virtuemart up and running, I have smf and community builder installed and running so now comes the bridge part.

I install and do everything except it wont patch the index.php file; this is because its different to the standard one as it contains the virtuemart extra code.

So does anyone have a list of the code changes I need to make by hand to index.php?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Virtuemart+joomla+smf = arghhhh
« Reply #1 on: April 08, 2007, 04:43:00 PM »

virtuemart extra code?  I'm not aware of any extra code needed by virtuemart.  Can you be more specific?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
simon n
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Re: Virtuemart+joomla+smf = arghhhh
« Reply #2 on: April 09, 2007, 06:01:21 AM »

OK I have printed out my virtuemart modded index.php and also printed out the prehacked index.php and a plain unaltered index.php.

From here I can decipher whats going on and the changes made by both virtuemart and the smf bridge.

Virtuemart has (at a quick glance) the following added:

Code:
// VIRTUEMART MOD
// Let's see how long this page takes to load.
list($usec, $sec) = explode(" ", microtime());
$joomla_start = ((float)$usec + (float)$sec);

Code:
// loads template file
if ( !file_exists( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) {
echo _TEMPLATE_WARN . $cur_template;
} else {
       
        ///////////////////////
        // VIRTUEMART MOD
        ob_start();
       
require_once( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' );
        echo "<!-- ".date("r")." -->";
       
        // Catch the Site Output
        $my_content = ob_get_contents();
        ob_end_clean();
       
        // XHTML compliance: Safely replace all occurences of & with &amp;
        $my_content = preg_replace("/&(?!([a-zA-z0-9|#]+[;]))/msi","&amp;", $my_content);
       
        // Javascripts sometimes contain such logical operators: &&
        // we must re-convert them from &amp; to &, otherwise the Scripts and links in it don't work
        if (preg_match_all("'<script[^>]*?>(.*?)<\/script>'si", $my_content, $scripts) > 0) {
          foreach( $scripts as $script ) {
                $my_content = str_replace( $script, str_replace( "&amp;", "&", $script ), $my_content );
          }
        }
        // Finally output the HTML String to the Browser
        echo $my_content;
       
        // END VIRTUEMART MOD
        ////////////////////////
        // Original Version follows:
        /*     
        require_once( 'templates/'. $cur_template .'/index.php' );
        echo "<!-- ".time()." -->";
        */
       
}
Logged
Greg Wunderlich
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: Virtuemart+joomla+smf = arghhhh
« Reply #3 on: April 23, 2007, 03:25:54 PM »

I think the joomla 1.0.12 virtumart ecommerce edition (vm 1.0.10) index.php is different than the standard joomla 1.0.12 index.php.

The standard joomla index.php can be automatically patched by the joomla-smf bridge component (version 2.02), but patching the ecommerce version throw up an error. Something about, can't find the code....

I think you can run virtumart and smf by using the the bridge and the standard index.php
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login