Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-01-2004, 08:39 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I know its probably here somewhere, but

I don't even know how to phrase the search. What I am looking for is the same hack used here and elsewhere that prohibts non-members from seeing "code" or answers to questions.

Would someone point me in the right direction?

I am going to have a membership only forum and I don't care if the others see the questions, but the answers are going to be paid for.

Anyone point me in the right direction?

Thanks
Reply With Quote
  #2  
Old 02-01-2004, 09:09 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For not seeing answers, you need the spoiler hack.

But they can see the answers if they highlight the spoiler area. Check out the Block code hack I released. That is more what you need for what you are trying to do, I think.
Reply With Quote
  #3  
Old 02-01-2004, 09:12 PM
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Location: France
Posts: 2,570
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or on our site :

http://www.vbulletindev.net

But in french and not released in english here :/

Here :

http://www.vbulletindev.net/modules/...wcat.php?cid=4

The last at the bottom

We'll see if we will do an english version
Reply With Quote
  #4  
Old 02-01-2004, 09:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which hack is that?
Reply With Quote
  #5  
Old 02-01-2004, 09:35 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was searching and came across this one by Slynderdale:

if() vBCode - Private Post Text Hack located here:

https://vborg.vbsupport.ru/showthrea...bers+code+hack

I'll go look at the others, but this one seems to be what I am looking for, I think.

Thanks for the replies!
Reply With Quote
  #6  
Old 02-01-2004, 09:37 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo: I remember coming here and forgot to sign in, and when I looked at the code it wasn't code.....I don't remember what it said, this was a couple of years ago. That's the type of thing I want. I'll go look at your Block code hack.

Also I am still on 2.3, I just found your hack for 3.0....still looking.

Thanks again
Reply With Quote
  #7  
Old 02-01-2004, 10:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I have a block code that will work for vB2 somewhere. Let me know if you don't find what you need and I will see if I can put it together for you.
Reply With Quote
  #8  
Old 02-27-2004, 09:42 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi again Boffo, I am to the point of needing something like your Block Code hack, but in my instance it would be to block replies or the text within a reply to users who can "view" the forum as unpaid members.

IOW the unpaid users could see all the questions but not our answers. We are identifying different pieces of glassware and I will be charging for it.

Since your hack involved code, Php etc. I didn't know if it would work on regular text or if it was overkill.

There will be only certain user groups that will be able to see the answers.

If you could give me an idea if the Block Code will work for me, I'll give it a try.

Thanks
Reply With Quote
  #9  
Old 02-27-2004, 11:47 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most of the deciding what to blaoc and not to bloack is done in the template. Take a look at the code I did for each template and you will see where I did an if condition for the bbuserid. You can do the same thing with usergroups with this hack, too. Does that answer your question? If not, let me know and I will do a sample code for you on what you are trying to do.
Reply With Quote
  #10  
Old 02-28-2004, 01:26 PM
cindyd cindyd is offline
 
Join Date: Sep 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I will do that today. Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:09 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.05753 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete