PDA

View Full Version : disable qoute source image link


geevest.com
03-25-2009, 02:20 PM
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 :
http://www.bolasex.com/pictures/ed3160701f0f7ffc629023da49b978c2.jpg

Lynne
03-25-2009, 03:22 PM
You can try this - https://vborg.vbsupport.ru/showpost.php?p=1747690&postcount=48

geevest.com
03-25-2009, 04:34 PM
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.

//### 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 ENDLynne im not understand about that.
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

Lynne
03-25-2009, 07:40 PM
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.

geevest.com
03-26-2009, 04:19 AM
lynne u mean that code not work in ur site?
im using vbulletin 3.8.0 its work?

Lynne
03-26-2009, 02:27 PM
I don't know if it would work on my site since I'm not trying it.

geevest.com
03-27-2009, 10:45 AM
anyone can help me? bcos im not understand about this. :(

Lynne
03-27-2009, 02:06 PM
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?

geevest.com
03-28-2009, 03:25 AM
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.

Lynne
03-28-2009, 02:43 PM
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".

geevest.com
03-28-2009, 04:45 PM
yes correct lynne.i just want people who want quote my thread with image,they cant see the source image link,they just see images...but if they right click the images they can see the source link code.
can u help me?

Lynne
03-28-2009, 05:46 PM
I think there is a modification to disable right-clicking - just search. However, as I said, the image link WILL be in your source code and page info. There is nothing you can do about that and anybody who has the most basic of html knowledge will know how to get the image url very easily.