PDA

View Full Version : [img] tag thumbnail maker.


Blaine0002
24 Jun 2006, 02:17
This makes it so whenever you use the

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

bbcode, instead of a real picture it will post a thumbnail instead. when you click that thumbnail it will bring you to the actual image.


open includes/class_bbcode.php
find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




This will convert all images so they have a width of 250 and make them clickable to the original image. note: if you have a oblong image, the hight will stay preportionate so it may cause thumbnails to look strange, you can also specify a height but the thumbnails will not be preportionate. Change the width="250" to whatever you want :-)





Temp fix: (untill i get more time)
If you dont find that this is what you are looking for, try making a new bbcode with the following options

Title: thumbnail
Tag: imgt
Replacement:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


example: [php]http://img96.imageshack.us/img96/7499/gibraltar12804sx.jpg[/php

then ad an image so people can use the imgt tag to make a thumbnail of only certain images.

yonglvnv
24 Jun 2006, 07:20
Cool, first to reply.
Installed and works great. Thanks. Only one issue. At default size of 250, smaller pics get increased to that minimum size, but no big deal. Mine's decreased to width of 100 to match the attachment size on my forum.

PabloAM
24 Jun 2006, 10:10
This resize in Vbadvanced news??

projectego
24 Jun 2006, 10:21
Nice idea, thanks. :)

bashy
24 Jun 2006, 12:40
Hi

Anyway to stop this making smaller images lager?

Blaine0002
24 Jun 2006, 15:15
im not sure, ill need to look into it a bit. thanks for the response guys :)

and yes they should resize in the news if you have enabled bbcode and images.

Snake
24 Jun 2006, 15:30
Great hack!

Thanks...

Qwest
24 Jun 2006, 22:42
Blaine002,

You need to change this to BETA!! Especially since this is a code modification.

1) As mentioned above it needs to not affect smaller images
2) It messes up people's signature images too!!

You need to work on this before it comes out of BETA.

RFViet
25 Jun 2006, 01:55
cool, let me try it !!
It would be nice if it is selectable forum

bashy
25 Jun 2006, 10:38
I have uninstalled this hack due to the smaller images being enlarged
I will be subscribed to the thread hoping that there is a fix for this :)

Blaine0002
25 Jun 2006, 16:32
Blaine002,

You need to change this to BETA!! Especially since this is a code modification.

1) As mentioned above it needs to not affect smaller images
2) It messes up people's signature images too!!

You need to work on this before it comes out of BETA.

It does not need to be a beta, if people dont like what it does they do not need to use it. it does what it intends even if there are some side effects. I will be looking into a better version if i can figure out how.
i have a temporary fix i will post when i get back later today.

Zia
26 Jun 2006, 11:40
pretty good things to use :)

Elsie
29 Jun 2006, 10:54
i'll come back to this..... :)

Blaine0002
29 Jun 2006, 15:41
Added temp fix. Untill i get more time.

thedvs
18 Jul 2006, 12:24
do you have a solution yet?

Murty
20 Jul 2006, 04:40
I couldnt even find the bit of code in the class_bbcode.php that we were meant to find.

laxyy
29 Jul 2006, 07:15
cool man nice to recize i

Alantris
23 Nov 2006, 18:56
Good! How it works with 3.6.3 ?