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

Reply
 
Thread Tools Display Modes
  #21  
Old 08-30-2002, 12:24 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PPN - G-force is correct. I want to restrict Usergroup 10 to only received pm's from other members in usergroup 10. No one else (admin would be nice, but not necessary).

G-Force - still the same problem - usergroup10 can see their new pm's in the user cp, but not access anything.
Reply With Quote
  #22  
Old 08-30-2002, 12:31 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay thats it >_O im breaking it out on my forum now please excuse me... be back shortly regards...

oh btw that politely bumps was funny

okay one last time... open private.php

find:

PHP Code:
    if (!$touserinfo['receivepm'] or !$touserinfo['canusepm']) { 
above it add:

PHP Code:
$info $DB_site->query_first("SELECT usergroupid FROM user WHERE userid='$touserinfo[userid]'");
if(
$bbuserinfo[usergroupid] == 10) {
  if(
$info[usergroupid] != 10) {
    eval(
"standarderror(\"".gettemplate('error_pmrestricted')."\");");
    exit;
  }
}
if(
$bbuserinfo[usergroupid] != 10) {
  if(
$info[usergroupid] == 10 AND $bbuserinfo[usergroupid] != 6) {
    eval(
"standarderror(\"".gettemplate('error_pmrestricted')."\");");
    exit;
  }

Hopefull that'll do the trick regards.... sorry for the long time it took x_X

g-force2k2
Reply With Quote
  #23  
Old 08-30-2002, 01:29 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could always try

PHP Code:
  if(($bbuserinfo['usergroupid'] == 10 and $touserinfo['usergroupid'] != 10) or ($touserinfo['usergroupid'] == 10 and $bbuserinfo['usergroupid'] != 6)) {
    eval(
"standarderror(\"".gettemplate('error_pmrestricted')."\");");
    exit;
  } 
Reply With Quote
  #24  
Old 08-30-2002, 01:33 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still getting the "usergroup 10" members "do not have permission to acces this page" error.

edited to say: abovemessage for g-force


will try ppn's now.
Reply With Quote
  #25  
Old 08-30-2002, 01:39 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And samething with ppn's too. Maybe something else needs to be done, or I'm getting the wrong editing?

I've got no access in usergrup 10, but I can see new messages in the user cp.
Reply With Quote
  #26  
Old 08-30-2002, 01:56 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rose did you place it under the code i gave you? because the first place was incorrect on the first page... regards...

btw PPN i was trying to make it as simple as possible... how could i have just used the $touserinfo query to select the usergroup? because it doesn't select the usergroup... wouldn't it have to be a LEFT JOIN? regards...

g-force2k2
Reply With Quote
  #27  
Old 08-30-2002, 02:02 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by g-force2k2
Rose did you place it under the code i gave you? because the first place was incorrect on the first page... regards...

btw PPN i was trying to make it as simple as possible... how could i have just used the $touserinfo query to select the usergroup? because it doesn't select the usergroup... wouldn't it have to be a LEFT JOIN? regards...

g-force2k2

G-Force, I took all modifications out fromt his thread and simply did what you said in your most recent modification post - placing the code above the "if (!$touserinfo['receivepm'] or !$touserinfo['canusepm']) {" Did Imisunderstand somewhere?

I will be back tomorrow. And thanks again for helping!!!
Reply With Quote
  #28  
Old 08-30-2002, 02:10 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k... i dunno though... cause i tested it and it seemed to work fine for me but we'll just do more testing tomarrow i guess regards...

g-force2k2
Reply With Quote
  #29  
Old 08-30-2002, 02:45 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds great, G-Force. ANd I just added you to my aim, soyou know.
Reply With Quote
  #30  
Old 08-30-2002, 02:48 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay Rose i'll see if i can catch you tomarrow then... btw... did you remove the first codes that i had given you? maybe thats causing the issues? regards...

g-force2k2
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:30 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.04664 seconds
  • Memory Usage 2,272KB
  • 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
  • (3)bbcode_php
  • (1)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
  • (3)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete