Ultra pics installazione

Questo forum è dedicato alle discussioni riguardanti le contribution per osCommerce

Moderatore: mod Generali

Rispondi
3dstudiomax
membro Veteran
membro Veteran
Messaggi: 520
Iscritto il: 24/06/2008, 19:45

Ultra pics installazione

Messaggio da 3dstudiomax »

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
3dstudiomax
membro Veteran
membro Veteran
Messaggi: 520
Iscritto il: 24/06/2008, 19:45

Messaggio da 3dstudiomax »

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:

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

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
3dstudiomax
membro Veteran
membro Veteran
Messaggi: 520
Iscritto il: 24/06/2008, 19:45

Messaggio da 3dstudiomax »

Nessuno riesce a darmi una mano ?
hsg26
membro Master
membro Master
Messaggi: 1677
Iscritto il: 07/04/2005, 0:00
Località: Svizzera
Contatta:

Messaggio da hsg26 »

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).
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
3dstudiomax
membro Veteran
membro Veteran
Messaggi: 520
Iscritto il: 24/06/2008, 19:45

Messaggio da 3dstudiomax »

infatti hsg26, non ho trovato nessuna guida da nessuna parte.
Cmq adesso provo il programma che mi hai consigliato e vedo di riuscire
Intanto Grazie
3dstudiomax
membro Veteran
membro Veteran
Messaggi: 520
Iscritto il: 24/06/2008, 19:45

Messaggio da 3dstudiomax »

Niente da fare...ho fatto diverse prove, ma non va.
hsg26 te l'hai installata ?
hsg26
membro Master
membro Master
Messaggi: 1677
Iscritto il: 07/04/2005, 0:00
Località: Svizzera
Contatta:

Messaggio da hsg26 »

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
Rispondi