PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 24th, 2008, 08:26 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 239
Stop Deleting Thumbs on Category Move

How can I stop thumbnails being deleted from an old category when an image is moved to a new category?

The bbcode under an image produces a code like (I've added the *** to be able to show the links without them parsing ):

[url***=http://www.wildaboutbritain.co.uk/archive/showphoto.php/photo/51697][img***]http://www.wildaboutbritain.co.uk/archive/data/31/thumbs/IMG_1344.JPG[/img][/url]

but if I move the image in the gallery I get:

[***url=http://www.wildaboutbritain.co.uk/archive/showphoto.php/photo/51697][***img]http://www.wildaboutbritain.co.uk/archive/data/61/thumbs/IMG_1344.JPG[/img][/url]

so the thumbnail's category is changed in the "data/..." part of the URL, but the showphoto/photo/51697 part of the URL doesn't change:

This means that the thumbnail disappears in forum posts.

So, how can I stop the old thumbnail being deleted when the image is moved to a new category, and therefore still link to the image from forum posts?

Stu
StuartDH is offline   Reply With Quote
Old August 24th, 2008, 08:35 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 239
I guess the thumbnail isn't being deleted, just moved to the new folder for the new category...so is there code that will duplicate the thumbnail to the new folder rather than move it?

Last edited by StuartDH; August 24th, 2008 at 09:14 AM.
StuartDH is offline   Reply With Quote
Old August 24th, 2008, 11:17 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 239
I think I've done it by quoting out a couple of pp-inc.php lines like:

// @unlink( $thumblink );


and


// @unlink( $mmthumb );


The old thumbs remain for forum posts, but the new thumbs are also created and, most importantly, both thumbs link to the big image page

The only down side to the above is if a new upload to the old category shares the same filename as the old thumb and therefore we'll get a new thumb replacing it, but it's a small price to pay compared to losing hundreds of thumbnails from forum posts when images are moved between categories
StuartDH is offline   Reply With Quote
Old August 24th, 2008, 01:03 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
If you move an image to a different category you move the image so any links you make elsewhere will break.

You can do as you wish and not delete the old thumbs since your free to modify code as you wish just keep a note of any changes you make for upgrades.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 24th, 2008, 01:44 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 239
It would be good if Photopost could create bbcode with spider friendly thumbs as well as the current spider friendly bigimage URL like:

[url***=http://www.wildaboutbritain.co.uk/archive/showphoto.php/photo/51697][img***]http://www.wildaboutbritain.co.uk/showphoto.php/thumbs/51697[/img][/url]
StuartDH is offline   Reply With Quote
Old August 24th, 2008, 07:15 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Feel free to post suggestions in our suggestions forums.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent user from deleting from a specific category titusc Photopost Pro How Do I...? 3 March 10th, 2007 01:41 PM
Restrict or Stop Member Galleries Category From Displaying Some Images BlackxRam Photopost Pro How Do I...? 12 June 9th, 2005 12:56 PM
Thumbs show but pics don't, after move to new server memdy Photopost Pro Installation & Upgrades 2 April 30th, 2005 11:42 AM
How to stop visitors from viewing thumbs simco General Discussion 4 November 18th, 2004 05:18 PM
Error deleting category Ted S Classifieds Installation & Upgrades 9 September 23rd, 2004 08:03 AM


All times are GMT -5. The time now is 01:30 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0