Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
IMG to URL BBCode Converter (In Quotes) Details »
IMG to URL BBCode Converter (In Quotes)
Mod Version: 1.00, by Dannyloski (Member) Dannyloski is offline
Developer Last Online: Mar 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (2 votes - 5.00 average) Installs: 17
Released: 19 Aug 2007 Last Update: Never Downloads: 26
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) After this line add the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 19 Aug 2007, 04:36
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
Reserved, just in case I need to update something
Reply With Quote
  #3  
Old 19 Aug 2007, 05:10
HDT HDT is offline
 
Join Date: Sep 2006
Subscibed first,installed later thanks for the mod
Reply With Quote
  #4  
Old 19 Aug 2007, 06:48
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
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.
Reply With Quote
  #5  
Old 19 Aug 2007, 16:03
maxicep maxicep is offline
 
Join Date: Oct 2006
nice thanks.
Reply With Quote
  #6  
Old 19 Aug 2007, 18:32
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
Glad it can be useful for others

Originally Posted by Dismounted View Post
You don't really need a file modification to do this...It can be done via plugins.
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.
Reply With Quote
  #7  
Old 20 Aug 2007, 03:29
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
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
Reply With Quote
  #8  
Old 20 Aug 2007, 15:45
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
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.
Reply With Quote
  #9  
Old 21 Aug 2007, 16:39
Stifmeister2's Avatar
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Originally Posted by Dannyloski View Post
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.
I would love that Dismounted.
Reply With Quote
  #10  
Old 25 Aug 2007, 04:05
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Originally Posted by Dannyloski View Post
Zai,
Hhaha

Zia here not Zai

any way thnx mate
Reply With Quote
  #11  
Old 27 Aug 2007, 01:57
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
^ 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 ...
Reply With Quote
  #12  
Old 01 Feb 2008, 16:07
TeamDevotion's Avatar
TeamDevotion TeamDevotion is offline
 
Join Date: Sep 2006
Location: Westchester County, NY
Real name: Antonio
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.
Reply With Quote
  #13  
Old 06 Apr 2008, 05:05
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
^ 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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #14  
Old 06 Apr 2008, 05:12
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
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.
Reply With Quote
  #15  
Old 06 Apr 2008, 05:16
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Real name: Danny
^ 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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:45.

Layout Options | Width: Wide Color: