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
Block Images and Signatures to Unregitered Guest Details »»
Block Images and Signatures to Unregitered Guest
Version: 1.00, by DILLIGAF DILLIGAF is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-06-2004 Last Update: Never Installs: 2
 
No support by the author.

This is my first submitted hack to Vb.org, so please go easy on me.
I will be unable to provide any support for this little hack so please do use it at your own risk. I honestly feel you will have no problems with this hack do to there is very little editing and it can also be reversed.

NAME: Chris’s Image and Signature Blocker to Unregistered Members.

VERSION SUPPORTED: Vb 3.0.0 or better

FILES TO EDIT: One

QUARRIES TO RUN: None

INSTALL TIME: Less then two minutes

SUPPORT OFFERED: None

I wrote this hack for my website to stop eveyone from leaching members pictures from our forums. We had a bad case of hyper-linking and other issues like this.

It will also aid in increasing your forums traffic, and member count.

I will try to check this thread as often as I can to get your feedback, but I am one busy person. Our site gets on adv. about 10,000 hits a day.

Take care and hope you can find some use for this.

Show Your Support

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

Comments
  #2  
Old 11-20-2004, 07:02 PM
ecarabin ecarabin is offline
 
Join Date: Oct 2004
Location: France
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicked on install.

thanx ^_^
Reply With Quote
  #3  
Old 12-01-2004, 01:51 PM
Mythor Mythor is offline
 
Join Date: Aug 2004
Location: Sydney, Australia
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this also affect Guests being able to view emoticon/smilies images? And if not, you may want to add the instructions for doing that, too. I'll be installing this tomorrow I think.
Reply With Quote
  #4  
Old 12-07-2004, 05:56 AM
TwinsForMe TwinsForMe is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ended up with a parse error on line 454.

[high]* TwinForMe clicks uninstall[/high]
Reply With Quote
  #5  
Old 12-08-2004, 08:18 PM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the problem with your way is if a post full of text has an image in it, it removes the entire post's content from the guests view instead of just the image... which isnt good.

this is what i use for my forum:

open functions_bbcodeparse.php and find:
PHP Code:
// 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); 
replace with:
PHP Code:
// do [img]https://vborg.vbsupport.ru/[/img]
        
if($bbuserinfo[userid]== 0) {
        
// replace image with error for guests.
          
$bbcode preg_replace("|\[img\](.*)\[/img\]|i""<a href=\"http://www.your-url-here.com/register.php\"><div class=\"panel\" style=\"width:500px;\"><strong>ERROR: </strong>Guests may not view user posted images. Click here to join our forum!</div></a>"$bbcode);
         } else {
        
// members get to see the image.    
          
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"' iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_img_match('\\1')"$bbcode);
      } 
(dont forget to replace 'your-url-here' with your forum's url)
Reply With Quote
  #6  
Old 12-09-2004, 01:25 AM
bold bold is offline
 
Join Date: Oct 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moparx
the problem with your way is if a post full of text has an image in it, it removes the entire post's content from the guests view instead of just the image... which isnt good.

this is what i use for my forum:

open functions_bbcodeparse.php and find:
PHP Code:
// 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); 
replace with:
PHP Code:
// do [img]https://vborg.vbsupport.ru/[/img]
        
if($bbuserinfo[userid]== 0) {
        
// replace image with error for guests.
          
$bbcode preg_replace("|\[img\](.*)\[/img\]|i""<a href=\"http://www.your-url-here.com/register.php\"><div class=\"panel\" style=\"width:500px;\"><strong>ERROR: </strong>Guests may not view user posted images. Click here to join our forum!</div></a>"$bbcode);
         } else {
        
// members get to see the image.    
          
$bbcode preg_replace('#\[img\]\s*(https?://([^<>*"' iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_img_match('\\1')"$bbcode);
      } 
(dont forget to replace 'your-url-here' with your forum's url)
thanks moparx
Reply With Quote
  #7  
Old 12-17-2005, 05:27 AM
NineToez NineToez is offline
 
Join Date: Nov 2005
Location: Los Angeles, CA
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone please port this for 3.5.x?
Reply With Quote
  #8  
Old 03-04-2006, 08:52 PM
Moment Moment is offline
 
Join Date: Dec 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SIGNATURE

this for 3.0.7

open
and edit the file functions_showthread.php



find

PHP Code:
if ($post['showsignature'] AND $vboptions['allowsignatures'] AND trim($post['signature']) != '' AND (!$bbuserinfo['userid'] OR $bbuserinfo['showsignatures'] ) AND $checkperms["$post[userid]"]['genericpermissions'] & CANUSESIGNATURE
replace

PHP Code:
if ($post['showsignature'] AND $vboptions['allowsignatures'] AND trim($post['signature']) != '' AND (!$bbuserinfo['userid'] OR $bbuserinfo['showsignatures']) AND $bbuserinfo['usergroupid'] != '1' AND $checkperms["$post[userid]"]['genericpermissions'] & CANUSESIGNATURE
and save
Reply With Quote
  #9  
Old 04-22-2006, 07:40 PM
zylstra zylstra is offline
 
Join Date: Aug 2004
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For just blocking signatures for 3.5, all that is needed is to change the postbit template from:
Code:
		<if condition="$post['signature']">
to:
Code:
		<if condition="$post['signature'] AND $show['member']">
Reply With Quote
  #10  
Old 02-03-2007, 12:56 PM
SnitchSeeker's Avatar
SnitchSeeker SnitchSeeker is offline
 
Join Date: Sep 2004
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zylstra View Post
For just blocking signatures for 3.5, all that is needed is to change the postbit template from:
Code:
		<if condition="$post['signature']">
to:
Code:
		<if condition="$post['signature'] AND $show['member']">
Thank you, that's what I was looking for.

EDIT: That didn't work for me. I can still see siggies when I am not logged in on my site.

EDIT 2: I found one that worked for me on vBulletin.com: http://www.vbulletin.com/forum/showthread.php?t=166091
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 06:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04767 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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_code
  • (6)bbcode_php
  • (2)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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