add BBcode links for all sizes under images add BBcode links for all sizes under images
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

add BBcode links for all sizes under images

Started by lovedoct99, April 04, 2008, 11:50:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lovedoct99

Got most of the code from
Quote from: ds on May 09, 2007, 05:10:24 AM

- If an image was too small to have an intermediate image created, the link wouldn't work!
So here is my updated solution. I check if the intermediate image exists and if it doesn't it shows the image path to the original image (which is the fullsize_url). On top of that I put the code into a text field to avoid lengthy urls to break the page layout and added a little javascript to autohighlight the whole code once clicked so it can easily be copied to the clipboard.
Many thanks to Stramm for his work on all these great plugins. :)

I modified the code to add ALL links, not just the normal or full size images including thumbnail links. May seem like beating a dead horse, but may come in handy for those who lack the skill or ability to edit it correctly.

Thank you Stramm for providing the idea and code and DS for the tip off.

hgl

Dear Sir

Now I can see the all users link
Another thing is can you tell me how to let the users can see their own link but not allow to see other users link

I am look forward to receiving your reply soon

Cheers

Stramm

You've already asked this question on the other thread. Stick to that and don't cause double work

hgl


Hot Rides

Thank you so much for posting this, its what I have been looking for all morning!!!

simple and right to the point, I modified the code to only show the inter. pic