Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 8 votes

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


957 replies to this topic

#461 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 20 November 2009, 00:06

title for each picture

View Postsmartmod, on 19 November 2009, 23:21, said:


I am really sorry if this has been asked before:

Is it possible to define a title for each picture individually? I think it might only be a minor change to the database and some few lines of code, but as I have no clue of php programming, it would be awesome if someone could give me a few hints.

Thanks!

Yes it has been asked b4, I will look at it some time, but not soon. Its a lot more to do than u think, but I know non-coders often think thier wishes are simple mods![img]http://forums.oscommerce.com/public/style_emoticons/default/whistling.gif[/img] Remember categories.php is massive, so changes to that are always complex, if only in the working out. [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]


As (as you say) you have no clue of php programming, how would a few hints get you anywhere? [img]http://forums.oscommerce.com/public/style_emoticons/default/huh.gif[/img]
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#462 seema1

  • Community Member
  • 3 posts
  • Real Name:Seema

Posted 20 November 2009, 22:54

hmm ...

I have the title appearing twice on the pop up.

I am using Header Tags SEO with Simple Template System (STS)
This requires me to put <!--$headcontent--> somewhere in my head tag (i'm not sure why!)

When I have <!--$headcontent--> in the head tag, My fancypopup comes up with the title tag twice.
The repeat appears directly on top of the one that is suppose to be there!

I can get rid of this problem by deleting <!--$headcontent--> but I'm pretty sure that that's there for a reason!

Can anyone help me?

Thankyou
PS Thanks Spooks, I was quite impressed with myself for fixing the problem I posted before too :)

#463 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 21 November 2009, 02:06

STS

View Postseema1, on 20 November 2009, 22:54, said:



I'm afraid I've never used sts, you would be best asking this in the sts forum, I've no doubt someone will know there. [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#464 Johnatan

  • Community Member
  • 35 posts
  • Real Name:Johnatan
  • Location:Croatia

Posted 21 November 2009, 16:47

Hi,

I'm stuck at the first change in product_info.php. I'm using BOF Enable & Disable Categories contribution and I don't know how to change my rows with the necessary for this contrib.

Please can you help, I really need this contribution.
Here is my code.

// BOF Enable & Disable Categories
  $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . "  pd where c.categories_status = '1' and p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  // EOF Enable & Disable Categories

Johnatan

#465 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 21 November 2009, 18:22

View PostJohnatan, on 21 November 2009, 16:47, said:

Hi,

I'm stuck at the first change in product_info.php. I'm using BOF Enable & Disable Categories contribution and I don't know how to change my rows with the necessary for this contrib.

Please can you help, I really need this contribution.
Here is my code.

// BOF Enable & Disable Categories
  $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . "  pd where c.categories_status = '1' and p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  // EOF Enable & Disable Categories

Johnatan


You can remove that code & replace with mine, it is totally un-neccessary & just makes extra unneccessary querys, if you need more, it has been also raised & answered in a ealier post here. [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#466 PennyP

  • Community Member
  • 14 posts
  • Real Name:Penny
  • Gender:Female
  • Location:Georgia, USA

Posted 23 November 2009, 20:58

Hi Sam-
Having a problem following your code:

Find(762) of ADMIN/CATEGORIES.php

<td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_ADDED, tep_date_long($pInfo->products_date_added)); ?></td>
</tr>
<?php
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
</table>
<?php
}
?>

Where should the next line of text go as the table is not closed on my page:

<td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_ADDED, tep_date_long($pInfo->products_date_added)); ?></td>
</tr>
<?php
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
}

if (isset($HTTP_GET_VARS['read']) && ($HTTP_GET_VARS['read'] == 'only')) {..............

Read through the issues posted and can't find an answer.
Thank you!
Live simply, love generously, care deeply, and speak kindly...

#467 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 23 November 2009, 23:08

Existing code doesn't match install instruction

View PostPennyP, on 23 November 2009, 20:58, said:




Your the 3rd Person to have this issue, what version osc do you have & where did u get it? [img]http://forums.oscommerce.com/public/style_emoticons/default/ohmy.gif[/img]

See my post of 10th November for revised instruction. [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]

http://forums.oscomm...00#entry1456124




Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#468 PennyP

  • Community Member
  • 14 posts
  • Real Name:Penny
  • Gender:Female
  • Location:Georgia, USA

Posted 24 November 2009, 16:56

View Postspooks, on 23 November 2009, 23:08, said:

Existing code doesn't match install instruction





Your the 3rd Person to have this issue, what version osc do you have & where did u get it? [img]http://forums.oscommerce.com/public/style_emoticons/default/ohmy.gif[/img]

See my post of 10th November for revised instruction. [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]

http://forums.oscomm...00#entry1456124


Hey Sam-

My version is 2.2 RC2A and it was installed via Fantastico from my hosting server. I read the notes in your set-up and this was tested on my version, and line 25 of product_info matched. I really like the contribution and would love to use it if you can sort this out. Much thanks Sam...you're a good guy for putting up with all of us!

Ciao :D
Live simply, love generously, care deeply, and speak kindly...

#469 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 24 November 2009, 19:28

View PostPennyP, on 24 November 2009, 16:56, said:

Hey Sam-

My version is 2.2 RC2A and it was installed via Fantastico from my hosting server. I read the notes in your set-up and this was tested on my version, and line 25 of product_info matched. I really like the contribution and would love to use it if you can sort this out. Much thanks Sam...you're a good guy for putting up with all of us!

Ciao [img]http://forums.oscommerce.com/public/style_emoticons/default/biggrin.gif[/img]

Perhaps fantastico have a slightly different varient to the one here.

As I stated

See my post of 10th November for revised instruction. [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]

http://forums.oscomm...00#entry1456124
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#470 atvrocks

  • Community Member
  • 23 posts
  • Real Name:Remy

Posted 25 November 2009, 18:07

Sam,

Beautiful contribution .... it took me a while to decide which one to install ...
I installed everything very carefully and I can say that it works from the first shot. The existing (single) images that I have right now are "expanding" ... beautiful thing.
However (is that too right:() - I cannot upload images not even the traditional way - first image ...
I am getting:

I replaced with ******* for obvious reasons ...


Warning: move_uploaded_file(E:\**************/images/DSC_0006.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in E:\***********************\admin\includes\classes\upload.php on line 96

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\phpB6A8.tmp' to 'E:\********************httpdocs/******/images/DSC_0006.JPG' in E:\*********\httpdocs\********\admin\includes\classes\upload.php on line 96


I understansd that this might be a permision issue ... - however, thsi was working fine BEFORE - why doesn't work now? Also - I changed the permision on the folders /catalog/images thru control panel for teh ftp to be able to change permisions - with no results.
I am using Windows hosting. OSC 2.2 ms2

Please help, I realy like this contributions
Thank you

#471 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 25 November 2009, 19:35

upload permissions issue

View Postatvrocks, on 25 November 2009, 18:07, said:

Sam,

Beautiful contribution .... it took me a while to decide which one to install ...
I installed everything very carefully and I can say that it works from the first shot. The existing (single) images that I have right now are "expanding" ... beautiful thing.
However (is that too right:() - I cannot upload images not even the traditional way - first image ...
I am getting:

I replaced with ******* for obvious reasons ...


Warning: move_uploaded_file(E:\**************/images/DSC_0006.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in E:\***********************\admin\includes\classes\upload.php on line 96

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\phpB6A8.tmp' to 'E:\********************httpdocs/******/images/DSC_0006.JPG' in E:\*********\httpdocs\********\admin\includes\classes\upload.php on line 96


I understansd that this might be a permision issue ... - however, thsi was working fine BEFORE - why doesn't work now? Also - I changed the permision on the folders /catalog/images thru control panel for teh ftp to be able to change permisions - with no results.
I am using Windows hosting. OSC 2.2 ms2

Please help, I realy like this contributions
Thank you


since this does not modify the upload class it can have no effect, the images are uploaded exactly like the main product image.

try updating the class, or better still the whole site to rc2a, ms2 has too many issues. [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#472 atvrocks

  • Community Member
  • 23 posts
  • Real Name:Remy

Posted 25 November 2009, 20:36

Sam,

You're right ... I restore to the previous and it does the same ... I cannot imagine WHY ....
The server that I have osCommerce installed ... I have only access to it via the control panel ... I have no ideea what requires to upgrade to the latest OSC ... I know is not in the topic - but can I do it from the file manager - or I need more access to the server ?

Thank you
--Remy

#473 atvrocks

  • Community Member
  • 23 posts
  • Real Name:Remy

Posted 25 November 2009, 22:10

Sam,
Totally weird ... I went and restore and reinstall your contribution .... I went and changed the permision on the Image folder for the IUSR_*** to FULL and that made it working (I don't know if this is OK or not) ....
I get a success upload and also a:
Warning: chmod() [function.chmod]: Permission denied in E:************************\admin\includes\classes\upload.php on line 98

Line 98 is:
chmod($this->destination . $this->filename, $this->permissions);

By any chance - do you have any ideea how can I fix this? I google it for the past 3 hours with no answer.

Thank you

#474 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 25 November 2009, 22:21

View Postatvrocks, on 25 November 2009, 22:10, said:

Sam,
Totally weird ... I went and restore and reinstall your contribution .... I went and changed the permision on the Image folder for the IUSR_*** to FULL and that made it working (I don't know if this is OK or not) ....
I get a success upload and also a:
Warning: chmod() [function.chmod]: Permission denied in E:************************\admin\includes\classes\upload.php on line 98

Line 98 is:
chmod($this->destination . $this->filename, $this->permissions);

By any chance - do you have any ideea how can I fix this? I google it for the past 3 hours with no answer.

Thank you

Would iether be restrictions set within your htaccess files, or server settings by your host, query with them.
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#475 0racle

  • Community Member
  • 16 posts
  • Real Name:Louise

Posted 29 November 2009, 19:46

Hi, I'm probably being very blonde but I'm in danger of turning grey after having tried this add on at least 5 times now!

I did a fresh install so had no other add ons, I installed oscthumb which seemed to work fine.

Next I did the simple multi image again. I've used a merge program to compare the files and really have tried so help would be much appreciated.

On IE I have 3 images but no-pop up box. On firefox I get the pop up but no picture only lines of symbols.

Everything is about to go out the window if I can't sort this :(

Many thanks
Oracle

#476 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 29 November 2009, 22:41

View Post0racle, on 29 November 2009, 19:46, said:

Hi, I'm probably being very blonde but I'm in danger of turning grey after having tried this add on at least 5 times now!

I did a fresh install so had no other add ons, I installed oscthumb which seemed to work fine.

Next I did the simple multi image again. I've used a merge program to compare the files and really have tried so help would be much appreciated.

On IE I have 3 images but no-pop up box. On firefox I get the pop up but no picture only lines of symbols.

Everything is about to go out the window if I can't sort this [img]http://forums.oscommerce.com/public/style_emoticons/default/sad.gif[/img]

Many thanks
Oracle


If your using a fresh install of rc2a why arent u using the included files or are u trying this with smthg else?

Also did u read the faq, esp re your issue & osc thumb? [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#477 0racle

  • Community Member
  • 16 posts
  • Real Name:Louise

Posted 30 November 2009, 00:52

View Postspooks, on 29 November 2009, 22:41, said:

If your using a fresh install of rc2a why arent u using the included files or are u trying this with smthg else?

Also did u read the faq, esp re your issue & osc thumb? [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]


See totally blonde! I hadn't tried it in firefox before only in i.e. therefore didn't associate the error witht the FAQ which I promise I had read.

Right one little thing, I have 3 images on some products but now the pop up works there is no navigation between the 3 images, would a re-upload be needed?

Thanks Spooks btw for the pointer and the great add on. Looks brill.

Oracle

#478 0racle

  • Community Member
  • 16 posts
  • Real Name:Louise

Posted 30 November 2009, 01:16

Ok, it's sorted, can't say what I did as I don't rightly know but all working great now, thanks.

Now for round two.

Take care all

#479 bruiseviolet

  • Community Member
  • 28 posts
  • Real Name:AndreA
  • Gender:Female
  • Location:Michigan

Posted 30 November 2009, 04:23

Upon installing I received this error when viewing my website and clicking on a specific product...

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wekeptre/public_html/miafashionista/includes/functions/database.php on line 103

...any help would be greatly appreciated. I would like to get this mod up for Cyber Monday sales =)

#480 bruiseviolet

  • Community Member
  • 28 posts
  • Real Name:AndreA
  • Gender:Female
  • Location:Michigan

Posted 30 November 2009, 04:45

View Postbruiseviolet, on 30 November 2009, 04:23, said:

Upon installing I received this error when viewing my website and clicking on a specific product...

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wekeptre/public_html/miafashionista/includes/functions/database.php on line 103

...any help would be greatly appreciated. I would like to get this mod up for Cyber Monday sales =)


NEVERMIND. For some reason I was thinking it was an error with MySQL-- instead I just didn't paste a few lines of code when I was changing it up in product_info.php

Sorry! But thank you.. fixed it- and it works now =)