vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Disallow visitors to see the 'images' (https://vborg.vbsupport.ru/showthread.php?t=75880)

Creative Suite 02-08-2005 01:37 AM

msimplay

thanks

apfparadise

thanks 4 your nice words ,

all thing been fixed , plz go up and do as shown :)

if you'r now using the old one plz do as shown below :

find :

PHP Code:

global $vboptions$bbuserinfo;
if(
$bbuserinfo[userid] != 0){
    if(
$dobbimagecode AND ($bbuserinfo['userid'] == OR $bbuserinfo['showimages']))
    {
        
// do [img]https://vborg.vbsupport.ru/[/img]
        
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"' iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_img_match('\\1')"$bbcode);
    }
    
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$bbcode);
}else{
    
$bbcode "
<p><font color='#FF0000' face='Tahoma' size='2'>[<span lang='ar-kw'>
</span>Sorry you can't see this image before </font>
<font color='#0000FF' face='Tahoma' size='2'>registering</font><font color='#FF0000' face='Tahoma' size='2'><span lang='ar-kw'>
</span>]</font></p>
"
;
}
    return 
$bbcode

replace it with :

PHP Code:

global $vboptions$bbuserinfo
    if(
$dobbimagecode AND ($bbuserinfo['userid'] == OR $bbuserinfo['showimages'])) 
    { 
        
// do [img]https://vborg.vbsupport.ru/[/img] 
        
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"' iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_img_match('\\1')"$bbcode); 
    } 
    
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$bbcode); 

    return 
$bbcode

regards :)

apfparadise 02-08-2005 09:41 PM

Yeah, that is perfect. The only thing I changed was the wording. It now says:

Sorry, you can't see the image until you register

Just a better English wording :)

Thanks a lot, I have been so looking for that, for my Photography forum, my registrations today after installing it are OFF THE CHART!!!! No more lurkers :)

Rireal 02-09-2005 02:53 PM

Is there any way to add this as an option in the user cp for registered members who just want to disable images in posts?

ccplim 04-13-2005 12:38 PM

I was trying this on my test server and I got the following error when trying to view the thread (be it login or not). Wonder what have I done wrong?

Parse error: parse error in c:\inetpub\wwwroot\forums\includes\functions_bbcod eparse.php on line 1625

ConKien 05-30-2005 11:07 PM

I got this "&lt;&lt;&lt; " instead of
"Sorry, you can't see the image until you register". Does this code work for vb3.0.7?

Thanks,
ConKien

Andreas 05-30-2005 11:28 PM

I think this hack does not work correctly if the postcache is turned on.

wolfyman 08-13-2005 02:50 AM

nice thanks :D

Dark_Lilly 03-21-2008 04:16 PM

Is anywhere a working version for 3.6.8?


All times are GMT. The time now is 10:38 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.01169 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_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
  • (8)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