• Welcome to ForumKorner!
    Join today and become a part of the community.

(tng32) Quoted Images as Links

IPB-Bot

Member
Reputation
0
Displays quoted images as Lightbox enabled links to the original image. This saves space in your threads and means a post full of pictures is not repeated when someone quotes it.
Users can also click on the generated link and if they have javascript, a lightbox will open showing the original image.

The truncate urls setting is used to determine if the generated url should be truncated like normal post links are. The hook uses search and replace on the generated output of a thread and was tested on an English board but has been written to hopefully work with any language and will use the alt text of the image, as the title(shown on hover) of the link.



NOTE:
This hook was written for IPB 3.2
This hook is only for forum topics
This hook only alters the DISPLAY of images quoted in posts, post data is not changed, the database remains untouched and as a result:
- If a post is edited or quoted, the url to the quoted image will still be in tags
- If a post is edited in situe (via ajax) the post will re-load and show the quoted image
- On the posting page, the thread preview will show the quoted image

Posted on Sat, 20 Aug 2011 21:21:19 +0000 at http://community.invisionpower.com/files/file/4623-tng32-quoted-images-as-links/
 

IPB-Bot

Member
Reputation
0
Displays quoted images as Lightbox enabled links to the original image. This saves space in your threads and means a post full of pictures is not repeated when someone quotes it.
Users can also click on the generated link and if they have javascript, a lightbox will open showing the original image.

The truncate urls setting is used to determine if the generated url should be truncated like normal post links are. The hook uses search and replace on the generated output of a thread and was tested on an English board but has been written to hopefully work with any language and will use the alt text of the image, as the title(shown on hover) of the link.



NOTE:
This hook was written for IPB 3.2
This hook is only for forum topics
This hook only alters the DISPLAY of images quoted in posts, post data is not changed, the database remains untouched and as a result:
- If a post is edited or quoted, the url to the quoted image will still be in tags
- If a post is edited in situe (via ajax) the post will re-load and show the quoted image
- On the posting page, the thread preview will show the quoted image

Posted on Sat, 20 Aug 2011 21:21:19 +0000 at http://community.invisionpower.com/files/file/4623-tng32-quoted-images-as-links/
 
Top