This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Only forum.kde.org related discussions fall in the scope of the Forum Feedback area. Please take a minute to find the appropriate section for your query before posting here.

Thumbnails HTML codes

Tags: None
(comma "," separated)
User avatar
Fri13
Registered Member
Posts
397
Karma
4
OS

Thumbnails HTML codes

Wed Nov 17, 2010 7:24 pm
There is change to add a image to message with the img -tag. But there is no way to add a image with thumbnail. It would help to add more big images without forcing images to go over the site.

Question is, how to add the images so the thumbnail (example 200x200px sized) is used and clicking it would open the big version?
joncolby
Registered Member
Posts
1
Karma
0

Re: Thumbnails HTML codes

Tue Feb 01, 2011 5:49 pm
I am also interested know the outcome of this question plaese?
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Thumbnails HTML codes

Tue Feb 01, 2011 6:35 pm
I use simplest-image-hosting.net for this

Image


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Fri13
Registered Member
Posts
397
Karma
4
OS

Re: Thumbnails HTML codes

Mon Mar 14, 2011 8:33 pm
Yes it is easy to get to Internet to free image hosting services and get the image show up on the forum.

But it is not easy to get as thumbnail and not at full sized image.

There is no code what KDE Forum would accept and allow the thumbnail been used instead full screen image.
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS

Re: Thumbnails HTML codes

Thu Mar 17, 2011 7:50 pm
As google01103 suggested, use simplest-image-hosting.net
You can click on the "Share this image" link on the bottom right of the image to get the thumbnail code.


User avatar
Fri13
Registered Member
Posts
397
Karma
4
OS

Re: Thumbnails HTML codes

Fri Mar 18, 2011 8:25 pm
Question was not "What online service to use to store images" but what are the correct HTML codes to get thumbnails in wanted size (user can specify the thumbnail resolution) so they work from any service.
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS

Re: Thumbnails HTML codes

Sun Mar 20, 2011 12:08 pm
We don't have any BBCode to have thumbnails generated. I've added one, check if this works for you:
[thumb=Width,Height]URL[/thumb]

For example:


User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Thumbnails HTML codes

Sun Mar 20, 2011 12:16 pm
sayakb is there BBcode for scrolling code blocks?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS

Re: Thumbnails HTML codes

Sun Mar 20, 2011 6:37 pm
Nope, I did a custom one here (edit this post to view).

Code: Select all
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?


User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Thumbnails HTML codes

Sun Mar 20, 2011 6:43 pm
Gratias tibi, optime tu (si tamen vox iam, nescio quam cras faciam) noli dicere alii administratores sicut malus inuidere possit opus> mira miror quantum est

iterum gratias


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS

Re: Thumbnails HTML codes

Mon Mar 21, 2011 8:37 am
@sayakb:
Adjusted the thumbnail code to also link to the existing full size version.


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
User avatar
Fri13
Registered Member
Posts
397
Karma
4
OS

Re: Thumbnails HTML codes

Mon Mar 21, 2011 10:30 am
Thanks, now it is actually easy to add a thumbnails to be linked without needing a thirdparty online service (can use own FTP/HTTP server as well) with HTML thumbnail support.

Just a question, it might not be possible to have the thumbnailer code to understand the image ration? (Not so bug deal but...)
User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS

Re: Thumbnails HTML codes  Topic is solved

Mon Mar 21, 2011 10:36 am
@Fri13:

Good point, thumbnail bbcode adjusted. now you only need to give a width, forget about the height. So use it like that:
[thumb=Width]URL[/thumb]
The height will be adjusted automatically.


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Thumbnails HTML codes

Mon Mar 21, 2011 2:05 pm
neverendingo wrote:@Fri13:

Good point, thumbnail bbcode adjusted. now you only need to give a width, forget about the height. So use it like that:
[thumb=Width]URL[/thumb]
The height will be adjusted automatically.


Bah. Great, now I don't have anything to complain about...

OK maybe one thing ( :P ). Why not just use the regular [_img] tag? If no arguments are given it will act as normal (full size, no link), or you can specify a width to get a thumbnail ([_img=Width][_/img]).

Same with [_code], it should switch to scrolling if the content is longer than a set number of lines.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS

Re: Thumbnails HTML codes

Mon Mar 21, 2011 2:51 pm
The board software doesn't allow adding custom BBCode tags with the same name as any of the default ones. So, no.. we cant re-use img/code.




Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]