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

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

PHP Code:
if (($bbuserinfo[posts] < X) AND ($forumid==XX OR $forumid==YY) AND ($bbuserinfo[usergroup]!=AND $bbuserinfo[usergroup]!=AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;} 
Reply With Quote
  #12  
Old 12-08-2002, 07:50 PM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, this could work where it has

PHP Code:
$forumid==XX OR $forumid==YY 
i could put 2 different forums like

PHP Code:
$forumid==33 OR $forumid==43 
Reply With Quote
  #13  
Old 12-08-2002, 08:11 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

right.. it should work
Reply With Quote
  #14  
Old 12-08-2002, 08:13 PM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just tryed it ,, it doesnt work
Reply With Quote
  #15  
Old 12-08-2002, 08:18 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1- dont forget to replace x with your post number

2- dont forget to test with a regular user account. it does not apply mods/admins etc.

3- post the code you inserted if still does not work
Reply With Quote
  #16  
Old 12-08-2002, 08:23 PM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in newthread.php

I found "$forumid=verifyid("forum",$forumid);"

and after that i put

if (($bbuserinfo[posts] < 2) AND ($forumid==11 OR $forumid==5) AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}

still didnt work
Reply With Quote
  #17  
Old 12-08-2002, 11:12 PM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^
Reply With Quote
  #18  
Old 12-09-2002, 08:56 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 user360
in newthread.php

I found "$forumid=verifyid("forum",$forumid);"

and after that i put

if (($bbuserinfo[posts] < 2) AND ($forumid==11 OR $forumid==5) AND ($bbuserinfo[usergroup]!=6 AND $bbuserinfo[usergroup]!=5 AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;}


still didnt work
I tested your code in my test board and it works here.

Make sure:
1- You test with an account who is NOT Mod, S.Mod or Admin.
2- Make sure this account has 0 or 1 posts.
3- Make sure you test to send a new thread in forum 11 or 5

So this will work: Register a new account in your board from the ground, validate its email, go to forum 11 or 5 and click NEW THREAD. You'll receive no permission page..
Reply With Quote
  #19  
Old 12-10-2002, 01:56 AM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it works now... But it doesnt check and see if you replyed to 2 topics. Its actually goes by the post count.. I used another dummy account and changed that "2" to "5555" and it let me post without replying to 2 topics
Reply With Quote
  #20  
Old 12-10-2002, 02:18 AM
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Location: Tampa, FL
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by user360
Yes it works now... But it doesnt check and see if you replyed to 2 topics. Its actually goes by the post count.. I used another dummy account and changed that "2" to "5555" and it let me post without replying to 2 topics
Why would that matter?
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 02:38 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.04823 seconds
  • Memory Usage 2,256KB
  • 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
  • (2)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