Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-23-2002, 04:09 AM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default EXPIRING Access Marks???

I've searched this board, I can't believe I'm the only one who has asked for this???

But IF I am, go figure???
IF I'm not, could you PLEASE direct me to a Hack that would do this:

OK you set up a special "User Group" where these people see only a specific section of your board.

Then you give access to this group by setting certain users "Access Marks"

OK is there a way to make those ACCESS marks EXPIRE?? Where you would set those permissions for say 1 month, 6 months, or 1 year?

AND Have it email them when they are 1 month, 2 weeks, and 1 day from having there access expire?

IS There something like this out there???

Thanks for your help.

Yours,

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

These type of hacks which depends on doing something on a sheduled basis/in a certain time/reoccuring in periods etc are very rare to found. This is because vb does not give you a structure to build these hacks (IMO it's a shame). So if you want to code a hack that depends on such a system you either:
* Depend on cron jobs (which everybody is not provided by his server)
* Create your own structure to handle time checks. (Like my Auto greetings in Birthdays, FireFly's Member of the day or Mystics's Who was online today hacks). To build such a structure is not a 2 line modification and requires careful coding and especially heavy testing because if you do something wrong it masses things real bad in some cases: For example I tested my Auto Birtdays Greeting hack over a month to make sure it's perfect because if there was a very tiny bug in the algorithm regarding time check handling, it could end up sending thousands of pm's/emails to your members or create unlimited number of greetings threads which would be disasterous for sure..

Buttom line is it's not very likely that you'll find such a hack, now or in the future..
Reply With Quote
  #3  
Old 08-23-2002, 10:06 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as far as i know, with vb3 there are some more possibilities to work on something like that, but for vb2 look at logicians post...
Reply With Quote
  #4  
Old 08-23-2002, 01:20 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WELL,,,,

Thanks for those replay!! SO HOW DO I do it???? Can I just put another INDEX page in a directory and pasword protect that directory???

WOULD THAT WORK????

IT'S like I need 2 boards!! ONE that free and public, but limited and full of popup ads.

And another that you PAY ME to get into, but you have full access and do everything!!

HOW do I do that with VB??

Kirk
Reply With Quote
  #5  
Old 08-23-2002, 05:44 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to make different usergroups, then search for a hack that let's styles be usergroup definied.

create one style/templateset for all users included popups aso and one style for priviliged users without popups.

the rest you can define in ACP usergroup options...
Reply With Quote
  #6  
Old 08-23-2002, 05:53 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon:

But how do I have it expire??? Do you understand??

Right now, the software I use, I have a CGI-BIN that is not password protected. And then I have a CGI-BIN that is password protected.

OK, IF a user pays to get into the Password area, a password is sent to them and when they go to the CGI-BIN that is password protected, the little box pops up asking for there password. The put in the password and they are allowed to continue surfing.

OK So can I have 2 index pages??? ONE in a password protected directory and set to access free stuff and pay stuff. And then another set to only access the free stuff???

That's what I'm trying to do??

Thanks in advance for your help!!
Kirk
Reply With Quote
  #7  
Old 08-23-2002, 06:05 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

normally no, because the index.php has nothing todo with permission system of vb..

but perhaps you can use a trick:
put one index-file in a directory which is pw-protected, add a code into this index.php which will change usergroupid into the id of your privileged group.
then change the index.php in your maindirectory and add code to change usergroupid into 2 when a user of privileged usergroup views this page.

change templates so that privilaged users will get to pwdir/index.php instead of root/index.php...

i know it's not a nice method and perhaps not so easy to do, but it should work...
Reply With Quote
  #8  
Old 08-23-2002, 06:14 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, let's say I want to just password protect the whole thing???

HOW DO I DO THAT???

Kirk
Reply With Quote
  #9  
Old 08-23-2002, 06:16 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.htaccess ?
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 01:18 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.04094 seconds
  • Memory Usage 2,229KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete