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-27-2002, 10:33 PM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
@BlackDeath - I know you may have trouble with Proxies, but people like myself, are forced to use a Proxy to access the internet...

Our home network will only issue an Internet connection if you have the Proxy settings setup...

You should consider all sides before totally banning

Satan
im aware of that, thats why i requested that someone make it an option in the admin cp to allow a certain user group. i would like to create a usergroup of people w/ proxys that i want to allow in and i can edit the banip template to say that if they are using a proxy to contact me so they can get access. if i can make it an opiton in the cp, that would make it easier for my mods to manage. as it is now, i have to allow it in the code. thanks.
Reply With Quote
  #12  
Old 12-27-2002, 10:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh ok...

Serves me right for Skim-reading

Satan
Reply With Quote
  #13  
Old 12-27-2002, 10:46 PM
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 BlackDeath


im aware of that, thats why i requested that someone make it an option in the admin cp to allow a certain user group. i would like to create a usergroup of people w/ proxys that i want to allow in and i can edit the banip template to say that if they are using a proxy to contact me so they can get access. if i can make it an opiton in the cp, that would make it easier for my mods to manage. as it is now, i have to allow it in the code. thanks.
If you replace line:
PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]!=6) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
As:
PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
The hack will apply only to registered members and all other usergroups will be exempt..
Reply With Quote
  #14  
Old 12-29-2002, 12:13 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician

If you replace line:
PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]!=6) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
As:
PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
The hack will apply only to registered members and all other usergroups will be exempt..
should this,

PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

be actually this:

PHP Code:
if ($proxyip AND $bbuserinfo[usergroupid]!=2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
u have two "=" signs in there instead of "!="?? i dont' know much about vbb code but im good at seeing patterns. :banana:
Reply With Quote
  #15  
Old 12-29-2002, 07:37 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good point but my code is correct..

In the first code while it was != it meant, if user uses proxy and IS NOT an admin. Now when it is == it means, if user uses proxy and he IS a registered member.
Reply With Quote
  #16  
Old 12-29-2002, 08:41 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool thanks. yeah i figured it out on my own cause it didn't work the way i thought it should be. thanks.
Reply With Quote
  #17  
Old 01-20-2003, 12:56 AM
BlackDeath BlackDeath is offline
 
Join Date: Dec 2002
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can u tell me what that code would look like if i had it affect more than 1 user group?
Reply With Quote
  #18  
Old 01-20-2003, 08:12 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 BlackDeath
can u tell me what that code would look like if i had it affect more than 1 user group?
PHP Code:
if ($proxyip AND ($bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==X)) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 
Reply With Quote
  #19  
Old 04-08-2003, 03:27 PM
Bhollywood Bhollywood is offline
 
Join Date: Mar 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone got this working for 2.3.0?
I tried this last night. Just the very first part of the hack code and immeadiately got an error from it.
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:47 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.04978 seconds
  • Memory Usage 2,260KB
  • 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
  • (7)bbcode_php
  • (4)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
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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