Also das hier ist die Differenz, zwischen den beiden Versionen des Virtuemarts.
PHP-Code:
--- alt/shop.browse.php 2007-12-07 05:27:26.000000000 +0100
+++ html/shop.browse.php 2008-01-31 04:24:38.000000000 +0100
@@ -18,6 +18,12 @@
*/
mm_showMyFileName( __FILE__ );
+/* ---- Load mambots for VM ---- */
+ global $_MAMBOTS;
+ $_MAMBOTS->loadBotGroup( 'content' );
+ $plug_row = new stdClass();
+ $plug_params = new mosParameters('');
+
global $manufacturer_id,$keyword1,$keyword2,$search_category,$DescOrderBy,$search_limiter,
$search_op,$orderby,$product_type_id, $default, $vmInputFilter, $VM_BROWSE_ORDERBY_FIELDS;
@@ -81,6 +87,12 @@
}
if( trim(str_replace( "<br />", "" , $desc)) != "" ) {
echo '<div style="width:100%;float:left;">';
+
+ /* ---- Load mambots for VM ---- */
+ $plug_row->text = $desc;
+ $_MAMBOTS->trigger( 'onPrepareContent', array( &$plug_row, &$plug_params ), true );
+ $desc = $plug_row->text;
+
echo $desc;
echo '</div>
<br style="clear:both;" /><br />';
@@ -480,6 +492,11 @@
echo "<div style=\"margin-right: 5px; width:". intval(round(100/$cell_count)-4) ."%; float:left;\" id=\"".uniqid( "row_" ) ."\">";
}
+ /* ---- Load mambots for VM ---- */
+ $plug_row->text = $product_cell;
+ $_MAMBOTS->trigger( 'onPrepareContent', array( &$plug_row, &$plug_params ), true );
+ $product_cell = $plug_row->text;
+
echo $product_cell;
$i++;
diff -Nur alt/shop.product_details.php html/shop.product_details.php
--- alt/shop.product_details.php 2008-01-25 23:00:21.000000000 +0100
+++ html/shop.product_details.php 2008-01-31 04:19:42.000000000 +0100
@@ -393,6 +393,15 @@
*/
$template = preg_replace("/{vm_lang:([^}]*)}/ie", "\$VM_LANG->\\1", $template);
+/* ---- Load mambots for VM ---- */
+ global $_MAMBOTS;
+ $_MAMBOTS->loadBotGroup( 'content' );
+ $tmp_row = new stdClass();
+ $tmp_params = new mosParameters('');
+ $tmp_row->text = $template;
+ $_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
+ $template = $tmp_row->text;
+
/* Finish and Print out the Page */
echo $template;
Ich werde mal ein bisschen herumspielen und bei Erfolg ein kurzes Statement abgeben.
Lesezeichen