Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Hide text from certain usergroups Details »»
Hide text from certain usergroups
Version: 1.00, by N!ck N!ck is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-11-2003 Last Update: Never Installs: 27
 
No support by the author.

Before I begin, I must stress that this is not a lockdown hack and is not even easily made into a lockdown hack. Don't try it - we don't support lockdown here.

What it does
I can think of several uses for this hack. It alters your bbcodeparse2() function so that you can hide certain text from certain usergroups and replace it with a message read from a text file.

Screenshot? Nope. Just trust that I know what I'm doing.

Instructions attached.

Show Your Support

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

Comments
  #2  
Old 02-12-2003, 01:05 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres also always this hack:
https://vborg.vbsupport.ru/showthrea...threadid=48492

You could do [if($userinfo[usergroup]==6)]Hidden Text Here[/if]
Reply With Quote
  #3  
Old 02-12-2003, 01:28 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Slynderdale
Theres also always this hack:
https://vborg.vbsupport.ru/showthrea...threadid=48492

You could do [if($userinfo[usergroup]==6)]Hidden Text Here[/if]
Reply With Quote
  #4  
Old 02-12-2003, 01:43 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Slynderdale
Theres also always this hack:
https://vborg.vbsupport.ru/showthrea...threadid=48492

You could do [if($userinfo[usergroup]==6)]Hidden Text Here[/if]
Yeah, that was the one. I was going to comment that there already was a similar hack to this one, but couldn't remember which one it was. Either way, good job both of you. :glasses:
Reply With Quote
  #5  
Old 02-12-2003, 09:23 AM
empreur76 empreur76 is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks !
Reply With Quote
  #6  
Old 02-12-2003, 10:01 AM
empreur76 empreur76 is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm install it but don't worg !! i have this message :

Parse error: parse error, unexpected '\"' in /home/forum/www/upload/admin/functions.php on line 829
Reply With Quote
  #7  
Old 02-12-2003, 01:54 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's true (and i wasn't aware of that hack), but keep in mind that Slynderdale's hack requires some effort to use (and to replace the hidden text with something else, at that).

empreur76, please post line 829 of functions.php
Reply With Quote
  #8  
Old 02-12-2003, 02:20 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

empreur76, try changing:

PHP Code:
      $bbcode eregi_replace("[ahide]","",$bbcode);
      
$bbcode eregi_replace("[/ahide],"",$bbcode); 
to

PHP Code:
      $bbcode str_replace("[ahide]","",$bbcode);
      
$bbcode str_replace("[/ahide]","",$bbcode); 
stupid error on my part, text file updated
Reply With Quote
  #9  
Old 02-12-2003, 02:41 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nicksaunders
that's true (and i wasn't aware of that hack), but keep in mind that Slynderdale's hack requires some effort to use (and to replace the hidden text with something else, at that).

empreur76, please post line 829 of functions.php
The hack I made is easy to use, i even have it so you can do [if(bbusergroup==6)]Text[/if] and if there usergroup isnt 6 (admin) the text wont show.
Reply With Quote
  #10  
Old 02-12-2003, 08:32 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

slynderdale, i don't mean to imply that your hack isn't way more versatile than mine; i'm only trying to say that i think mine may suit some people better. for example, i run articles off my vB database, and i want to hide parts of them from non-paying members. but in place of the hidden text, i want to have a standard html advertisement to entice them to become a pay member. for that purpose, this works better because i needn't go to the trouble of re-coding the html time and time again.

your hack certainly surpasses mine in such things as security and options, but i think that in many ways it is a completely different hack than this.

good job on that btw.

i'm sorry if you felt you needed to defend your work.
Reply With Quote
Reply

Thread Tools

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 09:59 AM.


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.04305 seconds
  • Memory Usage 2,290KB
  • 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
  • (2)bbcode_php
  • (3)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_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