vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Timeslip Database - for Automotive websites (https://vborg.vbsupport.ru/showthread.php?t=110717)

USAMustangs.com 07-15-2007 04:06 AM

Quote:

Originally Posted by calgdsm (Post 1291060)
I still need help with this

you should have a link that says "Submit your timeslip data", but it appears something was not correctly installed.

find and verify that you have the follow piece of code in your timeslips template.

Code:

<font size="1"><a href="profile.php?$session[sessionurl]&do=edittimeslip">$vbphrase[timeslips_submit]</a></font>
however, you can still go to user cp > edit vehicle profile > enter timeslip info > save.

calgdsm 07-15-2007 03:49 PM

Quote:

Originally Posted by USAMustangs.com (Post 1291574)
you should have a link that says "Submit your timeslip data", but it appears something was not correctly installed.

find and verify that you have the follow piece of code in your timeslips.php

Code:

<font size="1"><a href="profile.php?$session[sessionurl]&do=edittimeslip">$vbphrase[timeslips_submit]</a></font>
however, you can still go to user cp > edit vehicle profile > enter timeslip info > save.

Ok the code is not in my timeslips.php, where should it be?

The links in the cp do not show up.

USAMustangs.com 07-15-2007 09:53 PM

Quote:

Originally Posted by calgdsm (Post 1291907)
Ok the code is not in my timeslips.php, where should it be?

The links in the cp do not show up.

i apologize, but i meant to say timeslips template instead of timeslips.php

admin cp > styles & templates > style manager > edit template for your current style > timeslips

look in the template and find this block of code towards the bottom.

Code:

<!-- please don't remove this -->
<font size="1"><center>[vBTimeslipDatabasev2.0 by <b><a href=http://modernmusclecars.net>EvilLS1</a></b>.Converted to vb3.5 by <b><a href="mailto:deathemperor@gmail.com">deathemperor</a></b>]</center></font>
</td>
</tr>
</table>
</table>
<font size="1"><a href="profile.php?$session[sessionurl]&do=edittimeslip">$vbphrase[timeslips_submit]</a></font>
</td></tr></table>
<br />$pagenav
$footer
</body>
</html>

and then compare the line of code below to yours and verify that they are the same.

Code:

<font size="1"><a href="profile.php?$session[sessionurl]&do=edittimeslip">$vbphrase[timeslips_submit]</a></font>

calgdsm 07-16-2007 02:32 AM

Quote:

Originally Posted by USAMustangs.com (Post 1292198)
i apologize, but i meant to say timeslips template instead of timeslips.php

admin cp > styles & templates > style manager > edit template for your current style > timeslips

look in the template and find this block of code towards the bottom.

and then compare the line of code below to yours and verify that they are the same.

Code:

<font size="1"><a href="profile.php?$session[sessionurl]&do=edittimeslip">$vbphrase[timeslips_submit]</a></font>


It is the same in the template. Still not sure, its working but only by direct link. (if i type it into the address bar)

thunder_sti 07-17-2007 05:17 PM

Im having this problem. Need assistance!!


Once I click on the TimeSlip Database it opens up fine:

http://www.boricua-racing.com/forum/timeslips.php

But then when I click to view "Details"

This pops up:

Warning: Invalid argument supplied for foreach() in /member.php on line 579

Check it out: http://www.boricua-racing.com/forum/...tails&userid=4

webgod 07-18-2007 01:45 PM

Quote:

Originally Posted by burntire (Post 1256524)
Place a zero in front of the time 09.99 and it will work.

Something in the code needs changed, but I can't figure it out.


it's the database.

in the XMLfile all database fields in the userfield table are set to mediumtext as the data type... And as the name implies, it's a text field.

Text fields and numerical fields are sorted in a slightly different manner.

The Quarter Mile ET is Field55 in the userfield table. If you have access to the database, change the field type from mediumtext to type: Decimal Length/Set: 5,3 (this will allow a range of 00.000 to 99.999 to be entered)

obviously back up the table first, before doing any operation on it.

you should do this for all numerical entry fields ... they should should NOT be text data types, especially when doing any type of sorting or calculations. as in Site Averages!

Also, because you are converting the data type at the Database level, and not restricting the user to enter only numerical data on the front end... (I haven't tested it.. but) the user will likely get a database error when entering data in the 14 field that is not between 00.000 & 99.999.

The way around this is in the AdminCP under User Profile Fields->"" Manager -> Find and click edit for the 1/4 Mile ET field. in the Regular Expression Box enter ^\d+(?:\.\d{0,3})?$ in the description box append this: (numbers ONLY, up to three decimal places)

and you're all set for 1/4 mile ET, you will have to repeat similar steps for all other numerical fields



if there is any interest and with the permission of the author, I could rewrite the XML file to incorporate the data tyoe changes and the RegEx changes, along with any other need "enhancements"

0ptima 07-20-2007 11:44 PM

Quote:

Originally Posted by webgod (Post 1294628)



if there is any interest and with the permission of the author, I could rewrite the XML file to incorporate the data tyoe changes and the RegEx changes, along with any other need "enhancements"

I say go for it! Have you emailed the author?

webgod 07-21-2007 12:26 AM

Quote:

Originally Posted by 0ptima (Post 1296998)
I say go for it! Have you emailed the author?

I PM'd him on the 18th.. he read it the same day, but did not respond

calgdsm 07-21-2007 02:32 PM

Quote:

Originally Posted by webgod (Post 1297010)
I PM'd him on the 18th.. he read it the same day, but did not respond


from what i can tell there is no support with this product, so i say go for it. Could you start a new thread for it?

0ptima 07-22-2007 08:16 PM

Quote:

Originally Posted by calgdsm (Post 1297422)
from what i can tell there is no support with this product, so i say go for it. Could you start a new thread for it?

Id rather see it as an addon....


All times are GMT. The time now is 05:02 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.02358 seconds
  • Memory Usage 1,756KB
  • 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
  • (9)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