PDA

View Full Version : Miscellaneous Hacks - LAM - Quote Img & Video to URL


mawby
10-12-2010, 10:00 PM
This product will change any and [VIDEO=] tags to [URL] tags when a post is quoted.


Installation

Download the attached .xml file
[I]product-LAM_QuoteImg2URL.xml
Install the product
AdminCP -> Plugins & Products -> Add/Import Product -> Import Product


Configuration

There is none!


Example

If someone has made a post like this;

https://vborg.vbsupport.ru/attachment.php?attachmentid=122786&stc=1&d=1286983589

The image tag is converted to a URL when quoted, like this;

https://vborg.vbsupport.ru/attachment.php?attachmentid=122787&stc=1&d=1286983589


Version History

4.1.4.0 - Added [VIDEO=] to [URL] support (2011/0705)
4.0.8.0 - Minor optimisation (2010/10/26)
4.0.6 - Initial release (2010/10/13)

benstillman
10-13-2010, 02:35 PM
Awesome.

BlackJacket
10-13-2010, 03:09 PM
Dont know why this isn't standard. Great mod! Tagged for later.

Juggernaut
10-13-2010, 04:30 PM
Installed

Shadow09
10-13-2010, 04:57 PM
Installed thx

Xeyn
10-13-2010, 05:05 PM
thx,,,great mod........

synseal
10-13-2010, 05:35 PM
Excellent!... Thanks.

ToNetU
10-13-2010, 07:55 PM
very good.. installed

ProFifaLeagues
10-13-2010, 09:15 PM
So does this just lessen the load on your own site with the link to the image??

Blooded
10-13-2010, 10:53 PM
thanks :)

Sol-Invictus
10-14-2010, 03:40 AM
Installed.
Thanks.

Dr.osamA
10-14-2010, 04:12 AM
Excellent = 5 stars

installed

thanxx

mawby
10-14-2010, 06:11 AM
So does this just lessen the load on your own site with the link to the image??Assuming the image has already been downloaded by the browser viewing the original post - no, caching should take care of that. What it does mean is if you have a thread with lots of pictures and a lot of people who are quoting just to reply things like "That's cool" then you don't end up with the same pictures appearing again, and again..... and again.

I find it makes a thread more coherent to view without the need to keep scrolling past quoted images to find something new.

sticky
10-14-2010, 08:32 AM
About time for something like this :)

ProFifaLeagues
10-14-2010, 08:52 AM
Assuming the image has already been downloaded by the browser viewing the original post - no, caching should take care of that. What it does mean is if you have a thread with lots of pictures and a lot of people who are quoting just to reply things like "That's cool" then you don't end up with the same pictures appearing again, and again..... and again.

I find it makes a thread more coherent to view without the need to keep scrolling past quoted images to find something new.


Cheers for clearing that up Mawby Great idea too!:up:

CharlieDelta
10-15-2010, 06:58 PM
Great mod! Thanks.

ProFifaLeagues
10-15-2010, 07:22 PM
Installed and working A1 thanks a nice little add on

Wajdan
10-17-2010, 04:42 PM
Tagged

mawby
10-26-2010, 04:24 PM
I've done a very minor update to optimise the code. I'm not convinced it will make that much of a difference in real life, but it's an optimisation none the less.

BadgerDog
10-27-2010, 09:15 PM
Will this work backwards to v4.04?

Thanks .. :)

Regards,
Badger

mawby
10-29-2010, 12:35 PM
Will this work backwards to v4.04?I haven't tested it on 4.0.4, but I can think of no reason why it wouldn't work.

BadgerDog
10-29-2010, 04:32 PM
I haven't tested it on 4.0.4, but I can think of no reason why it wouldn't work.

Thanks .. :)

Installed and seems to work fine on v4.04pl1 ... :up:

Regards,
Badger

Zombo
11-09-2010, 03:44 PM
lol i made my own fix by editing class_bbcode.php, this is much better as a plugin tho

goshalim
11-11-2010, 05:35 AM
What is the perspose of this mod ?
Can someon explain the reason for using it >?

mawby
11-12-2010, 12:38 PM
What is the perspose of this mod ?
Can someon explain the reason for using it >?https://vborg.vbsupport.ru/showpost.php?p=2109998&postcount=13

prandah
03-21-2011, 07:44 PM
Brilian
Thanks For Mod :D

Pvtiste
06-30-2011, 12:33 PM
Really nice job! Could you do the same with the video please? :)

5 stars & installed!

mawby
07-05-2011, 08:30 AM
Really nice job! Could you do the same with the video please? :)I've been meaning to do that for ages on my site. I finally have! :D There's a new version uploaded that will work for videos as well as images.

pantani
07-05-2011, 09:13 AM
Verry nice mod thanks for that, installed ;)

ProFifaLeagues
07-05-2011, 09:54 AM
Nice update Mawby thanks

Luca_ITA
08-06-2011, 02:25 PM
Great mod! Installed on 4.1.5pl1

Randomm
08-06-2011, 06:50 PM
Installed and rated
BTW where would I be able to find this in the settings?

Tonje!
11-04-2011, 08:50 PM
Thanks! Installed on 4.1.7 and works fine.

Luca_ITA
12-23-2011, 05:44 PM
Working fine on 4.1.9. tnx

spillage
12-24-2011, 03:10 PM
Excellent job, this is a great mod...

Suggestion for future development; Have an editable field to list tags to be included (CSV list).
Users may have custom tags like [YouTube], [PDF], etc, that would also be good to convert in a quote.

Mark.B
12-24-2011, 04:53 PM
Works perfectly, thank you.

SRSC
12-24-2011, 05:34 PM
how to update for all post??? It only work from now on.

14DH01
01-19-2012, 12:31 PM
how to update for all post??? It only work from now on.

+ 1 :up:

sticky
01-21-2012, 11:24 PM
Can't get this to work on 4.1.10 for some reason.

sticky
01-22-2012, 09:16 AM
Ok, it's working for linked images and videos but not for attached images. Any idea why?

sticky
01-23-2012, 01:43 AM
Ok, it's working for linked images and videos but not for attached images. Any idea why?

Anyone?

sticky
01-30-2012, 06:36 AM
Anyone else having trouble with attached images not displaying as links in 4.1.10?

Bulent Tekcan
03-04-2012, 07:34 AM
Not work with 4.1.11

mawby
03-28-2012, 06:49 AM
Suggestion for future development; Have an editable field to list tags to be included (CSV list).I'll try and get that added in a some point.

Anyone else having trouble with attached images not displaying as links in 4.1.10?Is this where the user has posted [attach] images? That doesn't happen too often on my site hence it's not annoyed me enough to stop them being quoted. :) I'll try and get this added in but it's a little different to the others as I'll have to build a link for the attachment rather than just changing the [image]/[video] tags to [url].

Not work with 4.1.11My site is running 4.1.11 and it definitely is working.

how to update for all post??? It only work from now on.This product cannot do that. For reasons of optimisation this product alters the post before it is saved instead of before it is loaded. You could attempt to replace all the [image]/[video] tags in the database using a regex to find those within a [quote] block, but the potential to screw things up would make that too risky for me suggest it as a good idea!

galmi
06-10-2012, 08:29 PM
Is there any way I can get this to work not only in quotes but all over the whole forum?
So every time anyone uses the [img]-Tag it gets replaced not only if quoted?

Thanks in advance!

spillage
07-30-2012, 12:19 AM
Can someone confirm if this mod is working on 4.2?

CharlieDelta
07-30-2012, 03:00 PM
Working great on 4.2. :)

DemOnstar
08-29-2013, 07:52 AM
Downloaded but not tested...

Good reports though....Thanks...

EDIT: Using 4.2.1 and uploaded.
Picture still appears in quotes. Do I need to enable this mod in admin cp some place?

Thanks..

megabink
08-29-2013, 08:54 AM
EDIT: Using 4.2.1 and uploaded.
Picture still appears in quotes. Do I need to enable this mod in admin cp some place?

Thanks..

There are no settings in the acp for this mod.
I noticed this only works with [IMG] tags,and i also installed this before and it did work neither so i uninstalled the mod.
Maybe you need to add the [IMG] bbcode in order to make this work.

DemOnstar
08-29-2013, 09:40 AM
There are no settings in the acp for this mod.
I noticed this only works with [IMG] tags,and i also installed this before and it did work neither so i uninstalled the mod.
Maybe you need to add the [IMG] bbcode in order to make this work.

Thanks. I will uninstall for now and just watch for developments...

fxdigi-cash
07-29-2014, 07:19 PM
I tried it on vb4.2.2 pl1, but didn't work. I was hoping if it works.

There is a dirty way how to hide images from quote using css display to none, but again it is not a good solution anyways!!

fxdigi-cash
10-19-2014, 11:51 AM
does anyone know a fix for this mod??? it is very usual though

I.G.O.T.A.
10-19-2014, 12:29 PM
Great mod!

Installed on 4.2.2 and working correctly. :)

fxdigi-cash
10-19-2014, 01:13 PM
Great mod!

Installed on 4.2.2 and working correctly. :)

you gotta be kidding, right? I don't see it working anyways... how did it work on your vb??:confused:

I.G.O.T.A.
10-19-2014, 06:29 PM
you gotta be kidding, right? I don't see it working anyways... how did it work on your vb??:confused:

Why would I kid? Works correctly like stated.

beertruck
04-22-2019, 03:52 PM
Seems to work in 4.2.3

Bulent Tekcan
02-11-2020, 10:46 AM
It didn't work with 4.2.x with php 5.6.x