Advanced search  

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]

Pages: [1]   Go Down

Author Topic: add BBcode links for all sizes under images  (Read 3750 times)

0 Members and 1 Guest are viewing this topic.

lovedoct99

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
add BBcode links for all sizes under images
« on: April 04, 2008, 11:50:38 pm »

Got most of the code from

- 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.
Logged

hgl

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: add BBcode links for all sizes under images
« Reply #1 on: April 08, 2008, 02:43:27 pm »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: add BBcode links for all sizes under images
« Reply #2 on: April 08, 2008, 03:26:01 pm »

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

hgl

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: add BBcode links for all sizes under images
« Reply #3 on: April 08, 2008, 03:33:21 pm »

Is sorry very much..
Logged

Hot Rides

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
  • I am
    • Hot Rides Show & Cruise
Re: add BBcode links for all sizes under images
« Reply #4 on: April 15, 2008, 08:33:01 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.046 seconds with 20 queries.