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)

EvilLS1 06-22-2004 12:25 PM

Quote:

Originally Posted by dcevoclub
no when i enter a new timeslip...it doesn't show on the list..

Whats not being displayed? The timeslip image itself or the info for the timeslip or the new class bit that we just added? Please be more specific. I just went to your board and added my info and everything displayed. I didn't see the option for the class though. Did you remove it?

Let me know and I'll help you with it when I get home from work this afternoon.

dcevoclub 06-22-2004 01:15 PM

the timeslips, and this is on another page i'm working on. and the info for the timeslip

EvilLS1 06-22-2004 02:44 PM

Quote:

Originally Posted by dcevoclub
the timeslips, and this is on another page i'm working on. and the info for the timeslip

Can you give me a link so that I can check it out?

ludachris 06-25-2004 06:48 PM

For some reason, I'm not able to manually change profile info via the admincp for members. I changed their usergroup and it erased their vehicle info. When I tried to re-input the data, it will not take. Any idea if this is related to the hack? or maybe it's a permissions thing?

EvilLS1 06-25-2004 07:01 PM

Quote:

Originally Posted by ludachris
For some reason, I'm not able to manually change profile info via the admincp for members. I changed their usergroup and it erased their vehicle info. When I tried to re-input the data, it will not take. Any idea if this is related to the hack? or maybe it's a permissions thing?

A few weeks ago there was a bug fix sent out for v2.0 that corrected a problem with admincp/user.php when updating someone's user profile. If you'll click the install button you'd be notified about bug fixes such as this one. ;)

https://vborg.vbsupport.ru/showpost....&postcount=177

ludachris 06-25-2004 07:20 PM

Quote:

Originally Posted by EvilLS1
A few weeks ago there was a bug fix sent out for v2.0 that corrected a problem with admincp/user.php when updating someone's user profile. If you'll click the install button you'd be notified about bug fixes such as this one. ;)

https://vborg.vbsupport.ru/showpost....&postcount=177

Thanks for the quick response - "Install" has been clicked :) thought I had already done that.

zerinS4 06-29-2004 10:47 PM

Just added it to http://www.eurotechniks.com ... now if I can figure out how the heck to add that Torque field. My head is spinning from reading all these posts :)

EvilLS1 06-30-2004 11:02 PM

Quote:

Originally Posted by zerinS4
Just added it to http://www.eurotechniks.com ... now if I can figure out how the heck to add that Torque field. My head is spinning from reading all these posts :)

Added your link. If you have basic knowledge of php you can see how to add new fields in this example:
https://vborg.vbsupport.ru/showpost....&postcount=247

Sidewindr 07-04-2004 12:12 PM

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();
}


Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???

EvilLS1 07-04-2004 05:39 PM

Quote:

Originally Posted by Sidewindr
Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???


In admincp/usergroup.php find:
Code:

        print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
Below it add:
Code:

                print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']);
(in vb3.0.2 or earlier)
In includes/init.php find:
Code:

        'caneditownusernotes'      => 131072
Replace it with:
Code:

        'caneditownusernotes'      => 131072,
        'cantimeslip'              => 262144

---------------------------------------------------------------------
{edit} If you're using v3.0.3 or later skip the edit above and use this edit instead:
In includes/init.php find:
Code:

        'canseehiddencustomfields' => 262144,
Replace it with:

Code:

        'canseehiddencustomfields' => 262144,
        'cantimeslip'              => 16777216,

-----------------------------------------------------------------------

In profile.php find:
Code:

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

Below it add:
Code:

if (!($permissions['genericpermissions'] & CANTIMESLIP))
{
        print_no_permission();
}

Then just set the permission for each usergroup.


All times are GMT. The time now is 05:48 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.01726 seconds
  • Memory Usage 1,749KB
  • 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
  • (10)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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