CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

 Forum Rules Also hosted on SourceForge and FreshMeat
Reply to this topicStart new topic
> Looking for thumbnail direct link
kewlieo
post Apr 27 2009, 06:21 PM
Post #1


New Member
*

Group: Members
Posts: 3
Joined: 27-April 09
Member No.: 11,716

Nothing Selected




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 original.gif

Thanks
Steve

This post has been edited by kewlieo: Apr 27 2009, 06:21 PM
Go to the top of the page
 
+Quote Post
usr.c
post Apr 28 2009, 08:12 PM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




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), Skydiving, Splitting atoms, Flying a space shuttle
"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
Go to the top of the page
 
+Quote Post
kewlieo
post Apr 29 2009, 10:36 AM
Post #3


New Member
*

Group: Members
Posts: 3
Joined: 27-April 09
Member No.: 11,716

Nothing Selected




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.
Go to the top of the page
 
+Quote Post
Guest_last_hopes_*
post Dec 6 2009, 06:36 PM
Post #4





Guests







Im looking for a airport scenery of Volgograd. Who can help?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th June 2013 - 11:17 PM