![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
IMG to URL BBCode Converter (In Quotes)
![]() Developer Last Online: Mar 2012 ![]() ![]() ![]() This modification is in the archives.
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 ![]() Modification Instructions: 1) Open includes/class_bbcode.php 2) Find the following line:
3) After this line add the following:
4) Repeat steps 2-3 for every place that the line on Step 2 appears in the class_bbcode.php file (Four Times) 5) Save & Overwrite the File to your Server ... That's it! Enjoy! - Danny Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
Reserved, just in case I need to update something
![]() No members have liked this post.
|
#3
|
|||
|
|||
Subscibed first,installed later
![]() No members have liked this post.
|
#4
|
||||
|
||||
You don't really need a file modification to do this...It can be done via plugins.
__________________
Former vBulletin.org Staff Member View My Modifications 29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x) Please do not PM me to ask for support - please use the relevant thread or forum. No members have liked this post.
|
#6
|
|||
|
|||
Glad it can be useful for others
![]() Well I do not know how to do plugins, if you wish to create one using the code above, feel free to do so and post it here. I did not write the code, it was written by masalaman, like I said in the first post. I just posted the code here so that other can use it since if you search for it you really have to do some digging until you find it on the forums. No members have liked this post.
|
#7
|
||||
|
||||
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 No members have liked this post.
|
#8
|
|||
|
|||
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. No members have liked this post.
|
#9
|
||||
|
||||
Originally Posted by Dannyloski
I would love that Dismounted. ![]()
![]() No members have liked this post.
|
#10
|
||||
|
||||
No members have liked this post.
|
#11
|
|||
|
|||
^ Oops, sorry ... Guess I got a typo there, must've been busy with other things
![]() 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 ... No members have liked this post.
|
#12
|
||||
|
||||
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.
__________________
www.nytegrsx.com ~ New York Integra & RSX owners club. No members have liked this post.
|
#13
|
||||
|
||||
^ 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.
I hope someone can shine some light as to why its happening and maybe even fix the code. Hopefully too, someone can come out with a Plugin Version rather than Manual File Edits. Anyone that can help would be highly appreciated and credit will be given appropriately in the Thread and First Post. If you wish to release a Fix in your own thread that is fine, just post the link here and I will edit the first post to point to that Link. No members have liked this post.
|
#14
|
||||
|
||||
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.
No members have liked this post.
|
#15
|
|||
|
|||
^ 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? No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:41.