![]() |
IMG to URL BBCode Converter (In Quotes)
Hey Guys,
I know I was searching for a feature like this for the longest time and had no luck. Well I decided to do some digging and after a while I was able to find the code that you can use to remove the [IMG] Tag from Quotes in Posts under vB 3.6.0 and up. This specific Modification will change all [IMG] Tags into [URL] Tags when they are inside a Quote. I guess that's pretty self explanatory. Special thanks to masalaman for the code, I'm just posting it here for others to use it as they may be searching for it and it took me a while to find it. I guess this will just make you life's easier :up: Modification Instructions: 1) Open includes/class_bbcode.php 2) Find the following line: Code:
eval('$html = "' . fetch_template($template) . '";'); Code:
// Start IMG to URL BBCode Converter 5) Save & Overwrite the File to your Server ... That's it! Enjoy! - Danny |
Reserved, just in case I need to update something ;)
|
Subscibed first,installed later :) thanks for the mod
|
You don't really need a file modification to do this...It can be done via plugins.
|
nice thanks.
|
Glad it can be useful for others :up:
Quote:
|
thnx...would be really nice if it could be done via plugins (previously it was done by HeLLcat)
if [img] likes [Img] or [iMg] or [IMG] or [imG] will that work too? asking cos hellcat's plugin had that error ..tho later on it was fixed by him. waiting fr a plugings |
Zai, Im not going to be releasing a Plugin Version, so if you're gonna be waiting for that, you should ask someone else to see if they are willing to make a plug in. I might do it in the future, but I'm too busy right now to learn how to do Plugins, so I wont be dong it anytime soon.
As far as the error on the [img], [Img], [iMg], [IMG], [imG] that is not a problem with this Modification. It converts it anyway. |
Quote:
|
Quote:
Zia here not Zai :D any way thnx mate |
^ Oops, sorry ... Guess I got a typo there, must've been busy with other things :D
Still no news on the Plugin Version of this Mod guys ... Sorry, I looked into it, but seems kinda more in depth and stuff, so I'm not gonna be able to release it. Anyone and everyone is welcome to make the Plugin Version of this Hack and post it up if they want, so if you know how to do it, then do it - It would be best. I'm really busy now with other stuff, so I doubt I'll get around to it anytime soon ... |
alright, heres what I'm trying to do.
With this hack, the quote is modified once its submitted and not before, because even when you hit edit, it still says image tags, but when viewed, they are links. The problem with this is that if you quoted 6 images, and wanted just one to show up as a picture and the other 5 as links you couldn't do this. Is there anyway to get the code to convert the img to url when you first hit the quote button rather than right before it returns the value of the quote. |
^ I do not think that is possible, but I did not make this Code I simply posted it so others could find it easier. It was made by masalaman, so maybe he would know the answer to this question ...
Anyways, I want BUMP this because it seems to not be working in vBulletin 3.6.9 ... When installed, the code makes anything that's inside the Quote Tags not visible. This was working fine in vB 3.6.8 PL2, but with the release of vB 3.6.9 the class_bbcode.php File was changed and that seems to have had an effect on this. The 4 Lines of the original code below are still there, but when replaced with the IMG to URL BBCode Converter Code, like you're suppose to, it does not work and causes the error that was previously stated. Code:
eval('$html = "' . fetch_template($template) . '";'); |
I thought uploading vb files was against the rules. You might want to make sure it is allowed now as it never used to be.
|
^ Well nobody has said anything for the past 8 Months that this has been out, so I guess its not against the Rules ... If it is in fact against the rules, then I would guess they would've removed the Attachment.
Anyone out there with an idea on a Fix for this in vB 3.6.9? |
Attachment removed, as per out rules.
Quote:
|
^ Thanks, no one had removed it before or said anything, so I didnt know ...
We still have the issue that there is no Hack available for vB 3.6.9 to convert [img] Tags to [url] Tags in Quotes, so can anyone help on a fix? |
Somebody, anybody ... Please!
|
There is no one out there who has a Working [img] Tag to [url] Tag in Quotes Hack?
|
I think its crazy that no one has been able to get a Fix for this in vB 3.6.9. I know there is someone out there ..
|
Well this wasnt working on 3.6.9, but it works on 3.6.10 :biggrin: ... I dont know what it was that it wasnt working on 3.6.9, maybe I was not doing the File Edits correctly or something. I'm just happy this now works ...
|
not working in 3.8.3
|
*cries*
|
Does anybody have this for vB 4?
Thanks in advance:up: |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=241196 I can confirm that the code in this thread works for vb3.8.6PL1. |
Quote:
|
All times are GMT. The time now is 03:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|