vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   disable qoute source image link (https://vborg.vbsupport.ru/showthread.php?t=209407)

geevest.com 03-25-2009 02:20 PM

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 :
http://www.bolasex.com/pictures/ed31...da49b978c2.jpg

Lynne 03-25-2009 03:22 PM

You can try this - https://vborg.vbsupport.ru/showpost....0&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.

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

Lynne 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".


All times are GMT. The time now is 03:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete