![]() ![]() |
Apr 27 2009, 06:21 PM
Post
#1
|
|
|
New Member ![]() Group: Members Posts: 3 Joined: 27-April 09 Member No.: 11,716 ![]() |
Hi there,
Im looking to set up hot linking to my images, i have set it up already for users to get the images and show them in forums/html/direct link ( ".$direct_link." ) as full size. But im wondering how would i show the direct link to the thumbnail? Hope that this can be done Thanks Steve This post has been edited by kewlieo: Apr 27 2009, 06:21 PM |
|
|
|
Apr 28 2009, 08:12 PM
Post
#2
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
Hi there, Just suffix your full-size image with the the "thumbnail suffix" string defined in Admin CP -> Setup & Configuration.
And for the medium-sized version, link to the following (fill in the arguments shown in all-caps accordingly) CODE http://<<PATH_TO_GALLERY>>/thumbify.php?pic=<<FILE_NAME>>&w=<<FULL_SIZE_WIDTH&h=<<FULL_SIZE_HEIGHT>>&folder=uploads&smart_resize=0 Depending on what software you use for your forums, it may or may not allow you to post links to dynamically-generated images. Assuming you're using Apache and have mod_rewrite turned on, you can just stick a .htaccess file in your directory and add rules to rewrite a normal-looking URL to the one above. Hope that helps. -------------------- ![]() ![]() Things that I don't suck at: Photography (flickr, JPG Mag), "Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com |
|
|
|
Apr 29 2009, 10:36 AM
Post
#3
|
|
|
New Member ![]() Group: Members Posts: 3 Joined: 27-April 09 Member No.: 11,716 ![]() |
Thanks,
However i have solved this another way, after starring at the coding for a few hours i did this: I inputted this code into my pic details page just above where i wanted to put the hotlink section. CODE $at_full = getPicturesPath($config, $row['file_name'], 0); $at_full_server = getPicturesPath($config, $row['file_name'], 1); $at_thumb = getThumbPath($at_full, $at_full_server, $config['thumb_suffix']); And used the output as CODE $at_thumb[0] Hope this helps someone else. |
|
|
|
| Guest_last_hopes_* |
Dec 6 2009, 06:36 PM
Post
#4
|
|
Guests |
Im looking for a airport scenery of Volgograd. Who can help?
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th June 2013 - 11:17 PM |