Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 11-26-2002, 02:42 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edited my code, please reapply. Your other question also has been answered above..
Reply With Quote
  #12  
Old 11-26-2002, 03:53 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a million!

One last question:
Woud this work as well?
PHP Code:
if ($forum['forumid']==OR ($forum['forumid']==AND ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z)) 
Hoping to include more thant one fourm?

Thank again for all you help!! :laugh:
Reply With Quote
  #13  
Old 11-26-2002, 04:36 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Hoping to include more than one forum?
PHP Code:
if (($forum['forumid']==OR $forum['forumid']==W) AND ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z)) 
Enjoy..
Reply With Quote
  #14  
Old 11-26-2002, 06:32 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm! Thanks again!

BTW Logician you should write this up as a hack and post it in the hafcks sections I bet many people would enjoy it! I know I do!

Thanks!!
Reply With Quote
  #15  
Old 11-27-2002, 01:37 AM
marcel-ea marcel-ea is offline
 
Join Date: Oct 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello logi
Thanks now it work fine.

But.
I have over 200 Forumids
Can i set a wildcard ?

Thanks
Reply With Quote
  #16  
Old 11-27-2002, 07:58 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by marcel-ea
But.
I have over 200 Forumids
Can i set a wildcard ?
You can omit the forumid section alltogether which means it will apply to all forums. eg.:

PHP Code:
if ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z
Now the hack will restrict viewing of all threads in ALL forums if viewer is from usergroup Y or Z..
Reply With Quote
  #17  
Old 11-27-2002, 08:28 AM
marcel-ea marcel-ea is offline
 
Join Date: Oct 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Yes thats great
Reply With Quote
  #18  
Old 08-08-2003, 04:55 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this hack installed, and it works, but not exactly as I'd like.
Namely: When an unregistered visitor tries to open the thread, they're blocked, and must go through the registration process. That part's OK. However, they do not have to go through the confirmation process -- so, I get a fair number of registrations everyday from anyname@anydomain.com (and lots of variations). Can this hack be tweaked to force new registrants to respond to vB's email confirmation before they're allowed to open/view threads?
Reply With Quote
  #19  
Old 08-08-2003, 06:29 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:55 PM hadley said this in Post #18
I have this hack installed, and it works, but not exactly as I'd like.
Namely: When an unregistered visitor tries to open the thread, they're blocked, and must go through the registration process. That part's OK. However, they do not have to go through the confirmation process -- so, I get a fair number of registrations everyday from anyname@anydomain.com (and lots of variations). Can this hack be tweaked to force new registrants to respond to vB's email confirmation before they're allowed to open/view threads?
it is related to your usergroup permissions, not the hack itself. Set your email confirmation members' forum permissions for that forum exactly as guests'.
Reply With Quote
  #20  
Old 08-08-2003, 09:24 PM
hadley hadley is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was already set that way -- permissions for "Unregistered / Not Logged In" and "Users Awaiting Email Confirmation" are the same.

To be clear: I want to let anyone, registered or not, open up any of 11 different forums, and see all the titles of all the threads in that forum. However, only registered and confirmed people should be able to open a thread to view the posts within it.

This is what I'm currently unable to do. I.e., I can force them to register before opening a thread, but I can't figure out how to force them to confirm before opening a thread.

Within vB, I have the admin choice to set "view threads" -- which means really means, view all contents of threads. I need two on/off levels: "view thread titles" and "view thread contents."

Btw, in the admin panel I can go to -->
User Groups | Forum Permissions
to do this, or to -->
Forums & Moderators | Permissions
-- and it's the same result, right?
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 12:40 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.07976 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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_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