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)

bandit022 03-19-2004 12:38 AM

hey dewayne,

i decided to update to vb3 (rc4) so i had to re-install this hack..

and i'm having a slight problem. everything looked fine untill i tried to submit my timeslip data. the "Save Changes" and "Reset Fields" buttons on the bottom of modifytimeslips don't work. you can click on them but they do nothing.

i've re-installed the hack twice now and still doesn't fix the problem. what could this problem be?

thanks for you help,

-jeff

EvilLS1 03-19-2004 03:00 AM

Jeff,
It appears that you've missed some code when you added the slip requirement add-on.

In your modifytimeslip template find:
Code:

</script>
Below it add:
Code:

<form action="profile.php" method="post" id="profileform" onSubmit="return validate(this)">
That should fix it.


Dewayne

bandit022 03-19-2004 07:47 AM

yup. that did it!

*scratches head* i'm not sure how i missed that part of the code...

thanks for the fast reply, as always!

-jeff

bqleague 03-20-2004 01:37 AM

When i click edit user, i get

Parse error: parse error in /home/mustangn/public_html/admincp/user.php on line 442

bqleague 03-20-2004 03:12 AM

I got that fixed, what i want to know is there a way by default it will show all users that have created an account weather they have put in times or anything, instead of choosing somthing from the drop menu?

EvilLS1 03-20-2004 04:02 AM

Quote:

Originally Posted by bqleague
I got that fixed, what i want to know is there a way by default it will show all users that have created an account weather they have put in times or anything, instead of choosing somthing from the drop menu?

Yeah its possible but I'm not sure what the purpose would be. Thats what the memberlist is for. ;)

Anyway, open timeslips.php and find:
Code:

  else if ($_REQUEST['do'] == 'username')
  {
        $cond.=" WHERE userfield.field55>'".intval($number)."'";
        $condition.=" AND userfield.field55>'".intval($number)."'";
        $orderby="user.username";
        $direction=ASC;
        $bracket11="<b>[</b>";
        $bracket12="<b>]</b>";
  }

Replace it with:
Code:

  else if ($_REQUEST['do'] == 'username')
  {
        $cond.=" WHERE user.userid>'".intval($number)."'";
        $condition.="";
        $orderby="user.username";
        $direction=ASC;
        $bracket11="<b>[</b>";
        $bracket12="<b>]</b>";
  }

Then if you want it to show everyone by default just follow the example posted here (you'll need to use "username" instead of "sixty"):
https://vborg.vbsupport.ru/showpost....5&postcount=54

bqleague 03-20-2004 05:29 PM

the purpose would be so not only is it a timeslip database but also a "car" database, listing all users with cars.

bqleague 03-23-2004 07:55 PM

no i didnt mean that have created an account (memberlist) i meant all users that have subbmitted there car data.... blah

EvilLS1 03-24-2004 09:37 AM

Quote:

Originally Posted by bqleague
no i didnt mean that have created an account (memberlist) i meant all users that have subbmitted there car data.... blah

Using this code (instead of the code above) will display all users who have entered something into the vehicle field:

Code:

  else if ($_REQUEST['do'] == 'username')
  {
        $cond.=" WHERE userfield.field50!=''";
        $condition.="";
        $orderby="user.username";
        $direction=ASC;
        $bracket11="<b>[</b>";
        $bracket12="<b>]</b>";
  }


PranK 03-24-2004 12:45 PM

EvilS1 - wanna add my site to your list?

www.skylinesaustralia.com

Christian


All times are GMT. The time now is 05:00 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.01572 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (2)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