The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
disable qoute source image link
hello how i can disable qoute source image link.
so if my member quote thread have images, they cant see source link images. they just see the image.. like this example : |
#2
|
||||
|
||||
You can try this - https://vborg.vbsupport.ru/showpost....0&postcount=48
|
#3
|
|||
|
|||
We have to do this a bit different in 3.6.0.
1). Open "includes/class_bbcode.php" 2). Find function handle_bbcode_quote 3). Within function "handle_bbcode_quote" find the line below. This line is there at several places so make sure you found the right one. eval('$html = "' . fetch_template($template) . '";'); 4). Add the code below right after the above line. Code:
//### HACK BEGIN - Turn [img] to [url] 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); } //### HACK END in here i check i have many : handle_bbcode with fetch_template($template). but im not sure where i must put that code (above) can u help me lynne? here i upload my class_bbcode.php i hope if u have a little time u can help me.. thank you very much |
#4
|
||||
|
||||
Read the thread. It is discussed in there between where the original post was made and the one I linked you to. I believe you add the code after the line in that one function, but I don't know since I don't do anything like that on my site.
|
#5
|
|||
|
|||
lynne u mean that code not work in ur site?
im using vbulletin 3.8.0 its work? |
#6
|
||||
|
||||
I don't know if it would work on my site since I'm not trying it.
|
#7
|
|||
|
|||
anyone can help me? bcos im not understand about this.
|
#8
|
||||
|
||||
What aren't you understanding about the instructions - they seem pretty straightforward to me.
- did you open the file includes/class_bbcode.php? - did you find the function handle_bbcode_quote in that file? - did you find the line "eval('$html = "' . fetch_template($template) . '";');" in that function? (around line 1416 in my files) What step are you getting stuck on? |
#9
|
|||
|
|||
Lynne,im already try.its work.
but what i need in here : if u quote the thread have images.u cant see source image link. (protect for simple copy paste in other forum) but for this section : it just disable [img] tag in qoute. but u see full source image link. (so other people can make a simple copy paste in to other forum) what i need in here : i want other people cant see my source link image so they cant copy paste my images and put in to another forum with simple job. |
#10
|
||||
|
||||
It sounds like you don't care about the "quote" function, you just don't want anyone to be able to grab your images, correct?
If you have an image on a page, there really isn't any way you can stop someone from 'stealing' it. It's in the page source. It's in Page Info. It's so easy to get it. If they are using a WYSIWYG editor on another site, all they have to do is drag/drop the image from your site to theirs. If the images are stored on your site, you *can* stop them from being shown on other sites by using htaccess. Google "prevent hot linking". |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|