Ragazzi ho scaricato questa contribution quella con il Lighbox ed è fantastica.
L'ho installata ma ho notato che mi sballa un po tutto sia a livello in impostazione prodotti nella homepage sia per il fatto che l'immagine che poi sarà ingrandita me la mette a destra combinando casino con la grafica.
Volevo allora provare ad installarla a manina modificando i singole file, ma purtroppo il file delle istruzioni è poco completo.
Mi aiutate ?
Grazie
Ultra pics installazione
Moderatore: mod Generali
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Questa è la guida all'installazione che ho trovato insiere alla contribution.
Io ho scaricato questa: UltraPics 2.08 with Lightbox 2.04
Queste sono le istruzione in essa riportata:
Ho spulciato un po i vari file
nella fattispecie
catalog/product_info.php
catalog/product_reviews.php
catalog/product_reviews_info.php
catalog/product_reviews_write.php
catalog/admin/categories.php
e presentato tutti delle modifiche non commentate nelle istruzioni.
Mi sapere consigliare una guida all'installazione completa e ben fatta ??
Grazie
Io ho scaricato questa: UltraPics 2.08 with Lightbox 2.04
Queste sono le istruzione in essa riportata:
Codice: Seleziona tutto
This is the UltraPics 2.08 with Lightbox 2.04
* I have included the following files converted to use lightbox (product_info.php was already made, just done a few improvement)
catalog/product_info.php
catalog/product_reviews.php
catalog/product_reviews_info.php
catalog/product_reviews_write.php
* Now it should also work even if the image_med is not present, it display the default image instead.
* removed the old java script to popup the picture as it was no more used
* changed additional_images.php to add the else case with <td></td> in all cases.
Without this the wc3 page validator return an error because of the <tr></tr> without any <td> inside.
for a demo you can try this url :
http://www.custamazing.com/
PS : this package use the latest Lightbox (2.04) but I use the previous version because animated gif have a small problem with ie6 and ie7 and I also think there are some glitches when displaying a large picture for the first time.
Don't you have the same things ?
PS2 : I hope this works, as I made some changes for the package, my version also as some others modifications that have nothing to do with this contribution so I clean this to make the package.
PS3 : I did not change the following installation, sorry. if you have a clean install of osC2.2rc2a, just replace the files, otherwise, you'll have to make a diff.
----------------------------------------
This is the UltraPics 2.04 with Lightbox
I have merged the two installation packs (regular ultrapics and lightbox) to make things easier.
Corrected several bugs in additional_images.php
according to the specifications when small image x is available and large image x is available too
ultrapics should generate a thumbnail of small image x that pops up large image x upon clicking. but this didn't work properly as the "if condition" was worded wrong. This error was found in the UltraPics package and since the Lightbox package is based on UltraPics it carried the same bugs.
all fixed now.
Demo oscommerce equipped with Light Boxed Ultra Pics 2.04:
http://www.webgurustudio.net/osc/catalog
Lightbox2 Website:
http://www.huddletogether.com/projects/lightbox2/
Installation:
1) MAKE A BACK OF THESE FILES:
admin/categories.php
admin/includes/languages/(Your-Language)/categories.php
catalog/product_info.php
catalog/popup_image.php
2) Copy the one's from the contribution over them,
and add the new file/s
catalog/includes/modules/additional_images.php
catalog/images/*.*
catalog/js
catalog/lightbox.css
3) DO THE FOLLOWINGS IN THESE THREE FILES:
catalog/product_info.php
catalog/product_reviews.php
catalog/product_reviews_write.php
A) FIND THIS LINE:
<link rel="stylesheet" type="text/css" href="stylesheet.css">
ADD BELOW:
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
B) FIND THIS LINE:
<script language="javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
ADD BELOW:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
C) FIND THIS LINE:
<script language="javascript">
<!--document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
REPLACE WITH:
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
4) in catalog/product_reviews_info.php
DO PREVIOUS STEPS 3-A AND 3-B
5) FIND THIS LINE:
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $review['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $review['products_image'], addslashes($review['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $review['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $review['products_image'], $review['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
REPLACE WITH:
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $review['products_image']) . '" target="_blank" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $review['products_image'], $review['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
5) run the SQL script into your database with PHPMyAdmin or other DB Manager...
That's it. You are all done. Enjoy this wonderful add-on.
Credits to: Lee Nielsen (MaxiDVD), ammmze, faaliyet, -GuiGui-, xTiNcTion, mattwa,
Bushmaster, Jordi, aliadoleo, Conny Schlicht, sakebomz
Dec, 08, 2007
nimz
nella fattispecie
catalog/product_info.php
catalog/product_reviews.php
catalog/product_reviews_info.php
catalog/product_reviews_write.php
catalog/admin/categories.php
e presentato tutti delle modifiche non commentate nelle istruzioni.
Mi sapere consigliare una guida all'installazione completa e ben fatta ??
Grazie
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
la guida se non è stata messa nella contribution non c'è.
In ogni caso se usi winmerge, puoi comparare i tuoi files con quelli della contribution e con un attimo di pazienza puoi inserire le modifiche nei tuoi. è facile. Ci vuole solo molta calma e precisione. (parlo dei files che loro consigliano di sovrascrivere).
In ogni caso se usi winmerge, puoi comparare i tuoi files con quelli della contribution e con un attimo di pazienza puoi inserire le modifiche nei tuoi. è facile. Ci vuole solo molta calma e precisione. (parlo dei files che loro consigliano di sovrascrivere).
La funzione CERCA si trova sotto al logo Oscommerce italia in questa pagina. - I Love Marketing!
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
uso more pics... ultrapics non la uso.
La funzione CERCA si trova sotto al logo Oscommerce italia in questa pagina. - I Love Marketing!
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis