Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2002, 08:30 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Would someone be willing to create this hack?

Well if you are here, you must be interested somewhat so I guess I should now tell you what hack .

I am looking for a hack that will make a user post in 1 forum before he/she will gain access to any of the other forums.

Say I have 4 forums:

- Introductions
- General Chat
- User Downloads
- Error Reporting

I want the user to post in introductions forum before he will see or be able to post or reply to anything in the other forums.

If this is already done or has been done, if someone would be kind enough to direct me to the hack it would help me greatly.

If this hack has not been created and someone is willing to attempt it I would appreciate it very much, I am not sure how large or small this would be, but it would be nice to have.

SaintDog
Reply With Quote
  #2  
Old 03-21-2002, 10:30 AM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cause I don't think that's a request of common interest, here a special untested solution for you.
I Assume guests may not post!

get the forumid of the forum Introductions with phpmyadmin:
select forumid from forum where title='Introductions'

Assume this is 4711.

Edit newthread.php
search
PHP Code:
if (!$permissions[canview] or !$permissions[canpostnew]) {
  
show_nopermission();

below both occurences add
PHP Code:
if ($bbuserinfo['posts']==&& $forumid!=4711) {
  
show_nopermission();


edit newreply.php
search
PHP Code:
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
  
show_nopermission();

below add
PHP Code:
if ($bbuserinfo['posts']==&& $threadinfo[forumid]!=4711) {
  
show_nopermission();


perhaps you want replace the new show_nopermission(); by
PHP Code:
    eval("standardredirect(\"".gettemplate("redirect_firstintroduceyou")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");
    exit; 
then copy for example the template redirect_threadclosed to a new one calledredirect_firstintroduceyou and redesign it.
Reply With Quote
  #3  
Old 03-22-2002, 01:04 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If possible, I need it to where they can not view, see, or post in other forums except 1, in which they must post in to activate the others.

I appreciate your help though with this and at least an attempt at helping me, but I really need it like stated above for what I am trying to do.

(Yes, I do agree it is not a common request )

Thanks,

SaintDog
Reply With Quote
  #4  
Old 03-22-2002, 01:00 PM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not to see somthing ist more difficult.

With the simple solution he/she can post or reply in Forum 4711.

By letting away && $forumid!=4711 in newthread.php it's forbidden to start a new thread
By letting away && $threadinfo[forumid]!=4711 in newreply.php its forbidden to reply.

For the rest I see what I can do on monday or tuesday.
Reply With Quote
  #5  
Old 03-26-2002, 02:36 PM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not forgotten, but no time this week
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 01:55 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.04256 seconds
  • Memory Usage 2,206KB
  • 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
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete