The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
IMG to URL BBCode Converter (In Quotes) Details »» | |||||||||||||||||||||||||||
IMG to URL BBCode Converter (In Quotes)
Developer Last Online: Mar 2012
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 if ($this->contains_bbcode_img_tags($html)) { $html = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $html); } // End IMG to URL BBCode Converter 5) Save & Overwrite the File to your Server ... That's it! Enjoy! - Danny Show Your Support
|
Comments |
#12
|
|||
|
|||
^ 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 ... |
#13
|
|||
|
|||
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. |
#14
|
|||
|
|||
^ 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) . '";'); |
#15
|
||||
|
||||
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.
|
#16
|
|||
|
|||
^ 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? |
#17
|
||||
|
||||
Attachment removed, as per out rules.
Quote:
|
#18
|
|||
|
|||
^ 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? |
#19
|
|||
|
|||
Somebody, anybody ... Please!
|
#20
|
|||
|
|||
There is no one out there who has a Working [img] Tag to [url] Tag in Quotes Hack?
|
#21
|
|||
|
|||
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 ..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|