vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Timeslip Database -for Automotive websites (https://vborg.vbsupport.ru/showthread.php?t=60945)

razer 05-14-2004 06:14 AM

Is it possible to make the timeslip available only to certain usergroups ? And a function to enable/disable the whole function would be nice.

EvilLS1 05-14-2004 06:33 AM

Quote:

Originally Posted by razer
Is it possible to make the timeslip available only to certain usergroups ? And a function to enable/disable the whole function would be nice.

You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?

If so, in profile.php find this:
Code:

if ($_REQUEST['do'] == 'edittimeslip')
{

Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:

if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
        print_no_permission();
}


razer 05-14-2004 06:49 AM

Quote:

Originally Posted by EvilLS1
You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?

If so, in profile.php find this:
Code:

if ($_REQUEST['do'] == 'edittimeslip')
{

Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:

if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
        print_no_permission();
}



Thats exactly what i want, thanks! :)

dmark101 05-18-2004 04:14 AM

i had a small problem with the add on for timeslips if 12sec or lower, but i figured it out.

forgot that i had to change the variable <12 to whatever i wanted it to be. :mad:

awesome hack. :tup:

paul_r 05-26-2004 03:22 AM

installed it and when i ran timeslips.php
here what it threw up

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: SELECT COUNT(*) AS users
FROM vb3_user, vb3_userfield
WHERE userfield.field55>'0'
AND user.userid = userfield.userid
mysql error: Unknown table 'userfield' in where clause

mysql error number: 1109

any ideas please ? id really like to get this working :)

EvilLS1 05-26-2004 03:33 AM

Paul,
Are you using the instructions from the first post of this thread? If so, did you download them recently or are you using a version that you downloaded some time ago? The reason I ask is because vbdev pointed out that the old version would give such an error if someone has table prefixes. I've updated the hack since then, so try redownloading the zip in the first post and replace timeslips.php with the new one. Also, re-apply the file edits to admincp/user.php as their was an update in that file aswell. Let me know if that doesn't solve your problem and we'll go from there.

paul_r 05-26-2004 03:59 AM

Quote:

Originally Posted by EvilLS1
Paul,
Are you using the instructions from the first post of this thread? If so, did you download them recently or are you using a version that you downloaded some time ago? The reason I ask is because vbdev pointed out that the old version would give such an error if someone has table prefixes. I've updated the hack since then, so try redownloading the zip in the first post and replace timeslips.php with the new one. Also, re-apply the file edits to admincp/user.php as their was an update in that file aswell. Let me know if that doesn't solve your problem and we'll go from there.

you are right :) i d/l them a while ago and tried to install :ermm:

thanks for the update and a great hack :D

http://www.mx5roadsters.com/forums/timeslips.php?

EvilLS1 05-26-2004 04:03 AM

Glad its workin' for ya now. :)

Silverstangs 05-27-2004 04:09 AM

I have it installed on Stang Country , works well, and we are running VB 3.0.1.
I did some minor adjusting for our needs, plus a conflick with another item that was installed, so I hope you don't mind.

EvilLS1 05-27-2004 05:22 PM

Looks good Silverstangs. :)


All times are GMT. The time now is 06:31 AM.

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.01576 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)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
  • (3)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