Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disallow visitors to see the 'images' Details »»
Disallow visitors to see the 'images'
Version: 1.00, by Creative Suite Creative Suite is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 02-06-2005 Last Update: Never Installs: 11
 
No support by the author.

What it does ?

Disallows visitors to see the images in the Forum


++++++++
----------
++++++++


in the functions_bbcodeparse.php find :

PHP Code:
    $link strip_smilies(str_replace('\\"''"'$link));

    
// remove double spaces -- fixes issues with wordwrap
    
$link str_replace('  '''$link);
    return 
'<img src="' .  $link '" border="0" alt="" />'
replace it with :

PHP Code:
global $bbuserinfo;
    
$link strip_smilies(str_replace('\\"''"'$link));

    
// remove double spaces -- fixes issues with wordwrap
    
$link str_replace('  '''$link);
if(
$bbuserinfo[userid] != 0){ 
    return 
'<img src="' .  $link '" border="0" alt="" />';
}else{
return 
"
<b><font color='#FF0000' face='Microsoft Sans Serif' size='2'>
<a target='_blank' href='register.php'><font color='#FF0000'>
<span style='text-decoration: none'>[<span lang='ar-kw'>
</span>Sorry you can</font><font color='#FF0000' face='Tahoma' size='2'>'</font><font color='#FF0000' face='Microsoft Sans Serif' size='2'>t see this image before </font>
</span></font></a><a target='_blank' href='register.php'>
<span style='text-decoration: none'>
<font color='#008000' face='Microsoft Sans Serif' size='2'>registering</font><font color='#FF0000' face='Microsoft Sans Serif' size='2'><span lang='ar-kw'>
</span>]</font></span></a></b>
"
;

all done

don't forget to click install*

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-08-2005, 01:37 AM
Creative Suite's Avatar
Creative Suite Creative Suite is offline
 
Join Date: May 2004
Location: Kuwait :)
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 02-08-2005, 09:41 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 02-09-2005, 02:53 PM
Rireal Rireal is offline
 
Join Date: Jan 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 04-13-2005, 12:38 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 05-30-2005, 11:07 PM
ConKien ConKien is offline
 
Join Date: Apr 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 05-30-2005, 11:28 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this hack does not work correctly if the postcache is turned on.
Reply With Quote
  #18  
Old 08-13-2005, 02:50 AM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thanks
Reply With Quote
  #19  
Old 03-21-2008, 04:16 PM
Dark_Lilly Dark_Lilly is offline
 
Join Date: Oct 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anywhere a working version for 3.6.8?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:31 PM.


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.04545 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete