Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 8 votes

Simple Multi Image Add-on (Un-Limited) with FancyBox Popups


964 replies to this topic

#161 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 08:08

Okay, added the extra code for Easy Center, I think. Just used their basic install before. But this is getting weird. I don't have upper case tags. I used aborange to make sure, and it tells me no MARGINWIDTH to be found anywhere. Only when I upload does WC3 give me those errors. I use Dreamweaver for editing.

As it is, giving your body table a class main, u could then add
TABLE#main {background: #ffffff;}

Will this solve my problem (though not fixing whatever errors WC3 sees)? If yes, please tell me exact code to place where. I am losing track of my docs and code. Have I mentioned yet that I know HTML and that's it?

Bah - time difference, you guys will be asleep! Let's see if I can do a clean test shop once more, then again go through each step to see if that works; and use Notepad instead of Dreamweaver to be sure.

Edited by 11m2.de, 08 October 2009, 08:19.


#162 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 08 October 2009, 09:06

View Post11m2.de, on 08 October 2009, 08:08, said:

Okay, added the extra code for Easy Center, I think. Just used their basic install before. But this is getting weird. I don't have upper case tags. I used aborange to make sure, and it tells me no MARGINWIDTH to be found anywhere. Only when I upload does WC3 give me those errors. I use Dreamweaver for editing.

As it is, giving your body table a class main, u could then add
TABLE#main {background: #ffffff;}

Will this solve my problem (though not fixing whatever errors WC3 sees)? If yes, please tell me exact code to place where. I am losing track of my docs and code. Have I mentioned yet that I know HTML and that's it?

Bah - time difference, you guys will be asleep! Let's see if I can do a clean test shop once more, then again go through each step to see if that works; and use Notepad instead of Dreamweaver to be sure.


Ok in product_info.php find:

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">

change to

<!-- body //-->
<table class="main" border="0" width="100%" cellspacing="3" cellpadding="3">


Then adding

TABLE.main {background: #ffffff;}


to your css will give the white background (I put # b4, wrong, its . )
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#163 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 09:22

It's a miracle! A miracle! :D

I was actually waiting for a new DB on my own server to set-up, trying to do a complete clean re-install. Still advisable due to all those WC3 errors? This is supposed to become a template eventually, so it will be used more often...

But seriously, why are you awake? Aren't you in US? I usually prefer US forums to DE, talking code just seems easier in English to me...

You are a star, thanks. ;D

Hach, almost miracle. Now for those 20px to be white as well...
[img]http://i3.photobucket.com/albums/y69/gilowyn/oscommerce_footer.jpg[/img]

(P.S. Don't you hate people like me who know no SQL or PHP? Really, I am winging it here.)

Edited by 11m2.de, 08 October 2009, 09:37.


#164 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 08 October 2009, 09:34

View Post11m2.de, on 08 October 2009, 09:22, said:



I note you still have an issue with the footer, but also u seem to have added some tables.

In your header u have

<table width="800" align="center" bgcolor="" border="2" bordercolor="5E4F2B" cellspacing="0" cellpadding="0" >



change that to


<table class="main" width="800" align="center" bgcolor="" border="2" bordercolor="5E4F2B" cellspacing="0" cellpadding="0" >


should sort it



PS I'm from UK, so not that far!!


Edited by spooks, 08 October 2009, 09:37.

Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#165 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 10:07

Yay to the UK! Lucky me. :) It's all pretty now. I am happy. Off to do some fine-tuning now. Then back-up shop... and see what happens if I take those file on to a new shop with different images and DB.

#166 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 13:23

One more Firefox problem, then I am done. Really, I promise.

Border is different on product_info than rest of site. Again only in Firefox, IE looks fine, Opera etc haven't checked.

Never mind; set it to 2px now, and difference is so little... I'll live with it. I now have it like this:

#content {
width: 800; margin: auto;
border: 0px solid #5E4F2B;
text-align:left;
}

TABLE.main {
background: #ffffff;
border: 2px solid #5E4F2B;
}

Edited by 11m2.de, 08 October 2009, 13:34.


#167 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 08 October 2009, 14:22

Border is different on product_info than rest of site. Again only in Firefox, IE looks fine, Opera etc haven't checked.

View Post11m2.de, on 08 October 2009, 13:23, said:



Its as product_info has a diffedrent doc-type to the rest of your site, set them all the same, but remember there is a restricted set for FancyBox to work

Edited by spooks, 08 October 2009, 14:23.

Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#168 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 15:16

I changed the index.php doctype, now it seems to works fine; it was missing http://www.w3.org/TR/html4/loose.dtd" which is included in product_info.php. And I have a headache... :) Still fiddling with all settings to have it ready. And then... hopefully copy all files to another server, change some files - and have a working copy of this shop.

In case I need to move server (or copy and modify current shop for myself), is it enough to copy all files and folders and modify configure.php, or do I also need to run the SQL queries for the add-ons?

#169 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 08 October 2009, 15:25

View Post11m2.de, on 08 October 2009, 15:16, said:

In case I need to move server (or copy and modify current shop for myself), is it enough to copy all files and folders and modify configure.php, or do I also need to run the SQL queries for the add-ons?

When your ready to move, just make a backup of you dBase (best use backup utils detailed here) then simply do a restore at your new server. That will then include any changes u have done to the dbase.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#170 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 08 October 2009, 17:43

And if I need to use this as a template for a different store, just run the SQLs after copying all files to new server, right?

#171 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 08 October 2009, 20:52

View Post11m2.de, on 08 October 2009, 17:43, said:

And if I need to use this as a template for a different store, just run the SQLs after copying all files to new server, right?


If you are using a new dbase, yes, otherwise just restore your backup.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#172 11m2.de

  • Community Member
  • 24 posts
  • Real Name:Gila von Meissner

Posted 09 October 2009, 22:11

Sam, you are turning into my hero by now. Stumbled across your security thread by chance as well. :) Now admin is renamed, folder permission is set to 755, files to 644, config to 444, filemanager and definelanguage deleted, and code changed where necessary... Hopefully I can sleep better now.

Transferred shop to another db without a glitch as well; now have an empty db backup and template here to use on future sites.

Me happy - thanks again!

Edited by 11m2.de, 09 October 2009, 22:17.


#173 weedloard

  • Community Member
  • 11 posts
  • Real Name:hasse

Posted 10 October 2009, 12:08

I have a problem whit the install.

Evert ting looks fine whit the install.
My problem come when i open the image. then i get thus error.

�����JFIF���������;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 95 ���C�     ���C  ������"�������������� �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVW

Any one have some tips.
I have trayed the product_info.php that followed. but the same error.

#174 jejpi

  • Community Member
  • 6 posts
  • Real Name:jan

Posted 10 October 2009, 12:19

Hi,
great add-on, everything is working fine, but when I upload additional product images still only first product image is shown. No navigation in popup window, no added images on product info page. Images are uploaded, database entry is added. The same situation occures when I use both included product_info.php and categories.php files. I read whole this topic but didn't find the answer. Any ideas? Thanks.

#175 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 10 October 2009, 15:16

View Postjejpi, on 10 October 2009, 12:19, said:

Hi,
great add-on, everything is working fine, but when I upload additional product images still only first product image is shown. No navigation in popup window, no added images on product info page. Images are uploaded, database entry is added. The same situation occures when I use both included product_info.php and categories.php files. I read whole this topic but didn't find the answer. Any ideas? Thanks.


You have made errors somewhere, perhaps u failed to upload changed files?

Check you see new images within admin first.

Check images are uploaded. Check within phpMyAdmin that data is altered.

Check u applied the included sql.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#176 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 10 October 2009, 15:19

View Postweedloard, on 10 October 2009, 12:08, said:


Do u have, oscThumb added? Is filename encryption on? Is so turn it off.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#177 weedloard

  • Community Member
  • 11 posts
  • Real Name:hasse

Posted 10 October 2009, 15:27

View Postspooks, on 10 October 2009, 15:19, said:

Do u have, oscThumb added? Is filename encryption on? Is so turn it off.

Yes, that's correct. Now it works fine.

Thanks.

Brilliant addon.

#178 ravenpolar

  • Community Member
  • 12 posts
  • Real Name:phill winters

Posted 11 October 2009, 14:33

Just installed this contrib to a new website and after 1 false start it works very well.
I have one issue remaining that I cannot seem to figure out however.

When the popup appears there are no icons for forward, back and close.
Tried it in IE8 and Firefox 3.5 and the same problem happens in both.
The site and example product is at http://fur-n-feather.com/test_oscom/product_info.php?cPath=22&products_id=28

Any help would be much appreciated

Cheers

#179 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 11 October 2009, 17:20

View Postravenpolar, on 11 October 2009, 14:33, said:

When the popup appears there are no icons for forward, back and close.
Tried it in IE8 and Firefox 3.5 and the same problem happens in both.


Check you did upload all the images within the js folder to the images/js folder on your site.
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#180 Jusluv2ski

  • Community Member
  • 7 posts
  • Real Name:Justin

Posted 11 October 2009, 19:32

I like this contribution, but is it Compatible with oscmax?

I started to go through replace/editing code. the first one worked. but the next few didn't. So i stopped and came here.

any suggestions?