14 Ott 2008 | 00:22   
Non hai ancora un account? Ne puoi creare uno gratuitamente, basta cliccare qui.

come utente registrato avrai vantaggi come downloads gratuiti, possibilità di commentare articoli e intervenire sul forum, in base alle opzioni ed alla configurazione di questo sito.

Imposta dimensione carattere:

 •  Pannello di Controllo - Registrati/Login  • 
Clicca QUI
Scarica la versione stabile di MDpro Lite 1.0.821 Download
StaffStatus
Amministratore
Utenti:
Nuovi oggi:
0
Nuovi ieri:
12
Totali:
41511
Ultimo:
raneri
Online
Utenti:
2
Visitatori:
48
Totali:
50
Utenti online
proprio_me
 
asroma
 

Ultimi commenti
  Re: MD Pro 1.082 in ...
Ottimo, questa è una di quelle cose che spingono a fare...
Skin

  Re: Molte novità in ...
si era pensato di rilasciarla settimana prossima, nello...
TiMax

  Re: Molte novità in ...
ottime notizie a quanto pare... non vedo l'ora di pote...
edoluz

Il tuo sito web, la vostra immagine affidata ad un servizio da pochi Euro annuali ?
E' questo il vostro biglietto da visita ?
La qualità dei vostri servizi saranno in linea con questo ?
Cosa ne penseranno i vostri clienti e concorrenti ?
MAXsos per l'hosting professionale, MDLite per liberare la tua fantasia sul web, il tutto facile da usare e con risultato immediato.
www.maxsos.com

  FAQ ForumFAQ Forum   CercaCerca  Gruppi utentiGruppi utenti  ProfiloProfilo  Options forumOptions forum  Discussioni controllateDiscussioni controllate  Forum controllatiForum controllati
Le ultime dal forum Le ultime dal forum  Messaggi privati Messaggi privati    LoginLogin 
Nuova discussione   Rispondi
Precedente Versione stampabile Messaggi privati Successivo
Autore Messaggio
battl3hamm3rOffline
Nuovo entrato
Nuovo entrato


Registrato: 19 Mag 2008
Messaggi: 3

Utente
Status: Offline
Messaggio  Inviato: 20 Mag 2008 - 15:59 Rispondi citando Torna in cima
Oggetto: ERRORE CON AUTOTHEME

Salve a tutti
Ho un problema con la contributions AUTOTHEME
In pratica.... considerate che sono un novizio... sto facendo un po di prove con diversi contributions.
Ed ora sono arrivato a provare autotheme, mi sono installato opencommercio 2.2 ms2 (agosto 2006) che da quanto ho capito e la versione "stabile" e ci ho messo come contributions autotheme 0.81 che la supporta...
Installazione regolare seguendo passo passo le istruzioni ma....

Quando vado a collegarmi al catalogo online...mi viene ridato questo errore: "Parse error: parse error, unexpected T_ELSE in I:\NEGOZIO NO-LINE\EasyPHP 2.0b1\www\milestone\catalog\index.php on line 159"
Per completezza di info, il sito e' in locale, su piattafomra xp, cone easyphp 2.0.0.0

nb.
Da come mi e' parso mi sembrava un errore di scrittura (anche se non c'e scritto syntax, cmq sono andato a controllare la riga dove e scritto semplicemente else con due parentesi graffe...come nelle righe sopra..., avevo letto di un problema appunto di parentesi graffe su altri forum, ma in quel caso ridava un errore "syntax" e il problema era che una delle due non c'era...per cui sono punto e a capo.....
Profilo
caprettaOffline
Moderatore
Moderatore


Registrato: 01 Gen 1970
Messaggi: 3364
Località: Val d

Status: Offline
Messaggio  Inviato: 20 Mag 2008 - 17:12 Rispondi citando Torna in cima

ciao,
leggi quì e guarda che ci sia tutto nel nuovo file index.php come modificato da AutoTheme.
ciao
Profilo MSN messenger Numero ICQ
battl3hamm3rOffline
Nuovo entrato
Nuovo entrato


Registrato: 19 Mag 2008
Messaggi: 3

Utente passivo
Status: Offline
Messaggio  Inviato: 21 Mag 2008 - 09:22 Rispondi citando Torna in cima

Intanto grazie per il suggerimento, lo avevo gia' letto ma per sicurezza l'ho ricontrollato, purtroppo il problema non e li, difatti l'errore e' diverso in quel caso poiche parla di un errore di sintassi...
Fra l'altro per non sbagliare ho comunque messo una parentesi graffa in piu' e mi ha ridato un errore sulla riga 182...
Mi pare molto strana sta cosa in quanto non credo di essere l'unico ad utilizzare la contributions autotheme e se a tutti va, ne consegue che deve andare pure a me :d
per completezza (e spero di non violare nessuna regola) vi posto il codice fino alla riga 159, magari c'e dell'altro che come neofita non mi salta all'occhio...
Ma ripeto mi pare strano....
Citazione:
<?php
/*
$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $
ciao
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');
require(DIR_WS_INCLUDES . 'header.php');

// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
$category_depth = 'products'; // display products
} else {
$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
if ($category_parent['total'] > 0) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
}
}
}

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!-- body_text //-->
<?php
if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
?>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<?php
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
$category_links = array_reverse($cPath_array);
for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
$categories = tep_db_fetch_array($categories_query);
if ($categories['total'] < 1) {
// do nothing, go through the loop
} else {
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
break; // we've found the deepest category the customer is in
}
}
} else {
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
}

$number_of_categories = tep_db_num_rows($categories_query);

$rows = 0;
while ($categories = tep_db_fetch_array($categories_query)) {
$rows++;
$cPath_new = tep_get_path($categories['categories_id']);
$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";
if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
echo ' </tr>' . "\n";
echo ' <tr>' . "\n";
}
}

// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
</tr>
</table></td>
</tr>
</table></td>
<?php
} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

asort($define_list);

$column_list = array();
reset($define_list);
while (list($key, $value) = each($define_list)) {
if ($value > 0) $column_list[] = $key;
}

$select_column_list = '';

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
switch ($column_list[$i]) {
case 'PRODUCT_LIST_MODEL':
$select_column_list .= 'p.products_model, ';
break;
case 'PRODUCT_LIST_NAME':
$select_column_list .= 'pd.products_name, ';
break;
case 'PRODUCT_LIST_MANUFACTURER':
$select_column_list .= 'm.manufacturers_name, ';
break;
case 'PRODUCT_LIST_QUANTITY':
$select_column_list .= 'p.products_quantity, ';
break;
case 'PRODUCT_LIST_IMAGE':
$select_column_list .= 'p.products_image, ';
break;
case 'PRODUCT_LIST_WEIGHT':
$select_column_list .= 'p.products_weight, ';
break;
}
}

// show the products of a specified manufacturer
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";
} else {
// We show them all
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";
} else {


(come detto l'ultimo else in questo quote e' la fantomatica linea 159)
Profilo
battl3hamm3rOffline
Nuovo entrato
Nuovo entrato


Registrato: 19 Mag 2008
Messaggi: 3

Utente passivo
Status: Offline
Messaggio  Inviato: 21 Mag 2008 - 12:00 Rispondi citando Torna in cima

e.. qui a sugello di tutto il discorso...
Ho provato la versione rc2a, che e' meno stabile da quanto ho letto, con relativo autotheme, e ............funziona....O_O
boh questa non l'ho capita devo essere sincero
nb.
ho fatto le stesse identiche cose quando ho installato della versione 2006 (quella stabile)
boh....

nb
ovviamente sono accorso immediatamente sul file index.php linea 159...per vedere se cambiava qualcosa, ma c'e esattamente quello scritto nel codice che ho postato (parlo della linea 159) e cioe due parentesi graffe con in mezzo "else"

Citazione:
} else {
Profilo
Mostra prima i messaggi di:     
Vai a:  
Tutti i fusi orari sono GMT
Nuova discussione   Rispondi
Precedente Versione stampabile Messaggi privati Successivo
Powered by MDForum 2.0.8© 2003-2007 MAXdev
Tema grafico by subRebel del sito ktauber modificato e ottimizzato per MDForum da TiMax
Supporto italiano by Open Italia