The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
if someone post an image and someone quote this post the [img] tag will be automatically remove and juste the url will stay.
Does someone have this or knows how to do this ? |
#2
|
||||
|
||||
![]()
Not really tested, but give it a try.
In newreply.php, add right after: Code:
$pagetext = preg_replace("/(\[quote])(.*)(\[\/quote])/si", "", $pagetext); Code:
$pagetext = preg_replace("#(\[img\])(.*)(\[\/img\])#si", "[url]\\2[/url]", $pagetext); |
#3
|
||||
|
||||
![]()
it works however if it's not a quote from previous message the img tag will be replace by url
|
#4
|
||||
|
||||
![]()
Huh? Can you give me an example please?
|
#5
|
||||
|
||||
![]()
example :
in my post i put this : ![]() if someone quote my post he will have http://www.football365.fr/mediastore...O_SPOREVER.jpg without [img] quote (with this you don't have the image in other post for nothing) but if he wants to add an image with [img] it will not replace the [img] tag only for post quote |
#6
|
||||
|
||||
![]()
Sorry but I still don't understand... (help?)
You mean that if the user is adding an image in his own post, it will remain an image and won't be turned into a link? |
#7
|
||||
|
||||
![]()
i add an image to my post
if someone use quote and not reply my image will become a link. But wit your modification if someone put an image (another than mine) he will have a link and nothing else |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|