vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Rules and User Agreement Hack (https://vborg.vbsupport.ru/showthread.php?t=97699)

thedvs 10-18-2005 12:11 PM

where are the scheduled task setup instructions in the readme for cron?

nexialys 10-18-2005 01:31 PM

yeah, i found another tick...

>> function fetch_user_agreed_rules($uinfo = '')

the $uinfo is not used at all nowhere...

and a request for the memberinfo: make it possible to choose what usergroups have access to these details... i don't see why i would let all my users see who agreed to X rules...
maybe let own users and admins see these details is more appropriate, so i would like a new field in the settings where we can add usergroupids... ;)

uae 10-18-2005 01:34 PM

Quote:

Originally Posted by thedvs
where are the scheduled task setup instructions in the readme for cron?

That's being done with the process of the installation, so no need for a setup instructions :)
just look at the sechduled task manager after you got the hack installed, you'll see it listed there...

thedvs 10-18-2005 07:31 PM

ah cool one uae, great updates :)

JohnBee 10-18-2005 07:58 PM

WORKS with vBadvanced! :up:
thank you uae, your hack is both useful and appreciated :D [INSTALLED]

Whissi 10-19-2005 12:05 PM

I only want that admins, mods, super-mods, registered user have to sign the contract.
If they don't have sign the contract, they aren't allow do anythink (read fourm, post forum, pms...)!

But guests are allowed to "read" the forum...

Is it possible? How should the settings look like...

uae 10-19-2005 06:03 PM

Quote:

Originally Posted by nexialys
yeah, i found another tick...

>> function fetch_user_agreed_rules($uinfo = '')

the $uinfo is not used at all nowhere...

and a request for the memberinfo: make it possible to choose what usergroups have access to these details... i don't see why i would let all my users see who agreed to X rules...
maybe let own users and admins see these details is more appropriate, so i would like a new field in the settings where we can add usergroupids... ;)

Thanx nexi, that thing "$uinfo = ''" has been removed, even if you leave it, it won't harm nothing :) but the product xml file has been updated.

and if you don't want anyone to see what a member has agreed on, in his/her profile page, and would like to restrict that for admins/mods/and maybe the user him/her self
add this code with the template edit
Code:


<if condition="$bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==6 or $bbuserinfo['userid']==$userinfo[userid]">
 
TEMPLATE EDIT COMES HERE
 
</if>

change the usergroup ids to whatever you like.

TheRayden 10-20-2005 05:02 PM

Amazing hack, love it!!

xtreme-mobile 10-21-2005 05:52 AM

ive found a massive problem with this hack

since installing this new members cant register it always says they havent accepted the T&C so cant register!!! when i disable the plugin it works fine again :(

Oblivion Knight 10-21-2005 07:26 AM

Quote:

Originally Posted by xtreme-mobile
ive found a massive problem with this hack

since installing this new members cant register it always says they havent accepted the T&C so cant register!!! when i disable the plugin it works fine again :(

Apparantly this was fixed some time ago.. Are you using the latest version?


All times are GMT. The time now is 05:05 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.01243 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete