vb.org Archive

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

VampireMan 10-23-2003 11:18 AM

I gotta thank you for this , my site is totaly not to do with cars. But wedding forums. Im adapting the timeslips database for my needs.

It's easy to understand the code , and so it's easy for me to adapt. Im allready 50% along the way of changing the feilds over all ready. Good code is easy to edit. And the code in this is very good , thanks. :)

EvilLS1 10-23-2003 03:00 PM

You're welcome. Good luck w/ converting it to suit your needs. :)

corsacrazy 10-23-2003 04:04 PM

is it possible to produce addons for homepages ? ie top 5 cars sorted by XXX ?

gmarik 10-23-2003 04:17 PM

A good hack, could add more features in the future!

VampireMan 10-23-2003 07:53 PM

Done the conversion , must say i really enjoyed doing this.
Going to add more as i go , but thanks for the base :)

Pic included of finished conversion

Chris

SVTBlackLight01 10-24-2003 12:26 PM

Quote:

Originally Posted by EvilLS1
Thanks.



Do you mean this one?
http://phpbbhacks.com/viewhack.php?id=546

Thats my hack also. I made it about a year and a half ago when I was using phpBB. :)

Dewayne

Yep. Same one!

SpeedStreet 10-24-2003 01:34 PM

Very nice....someone from the car communities actually sharing their hacks for once :)

Nice job!

ImportPassion 10-24-2003 02:33 PM

Looks cool. Installing now.

One thing I noticed is that you hardcoded id's in there

PHP Code:

$DB_site->query("INSERT INTO profilefield (profilefieldid,title,description,required,hidden,maxlength,size,displayorder,editable) VALUES (50,'".addslashes($aa)."','".addslashes($a)."',0,0,'20','20','50', '1')"); 

You might want to consider this instead

PHP Code:

$DB_site->query("INSERT INTO profilefield (title,description,required,hidden,maxlength,size,displayorder,editable) VALUES ('".addslashes($aa)."','".addslashes($a)."',0,0,'20','20','50', '1')");
 
$newid mysql_insert_id();
$DB_site->query("ALTER TABLE userfield ADD field".$newid." CHAR(250) NOT NULL"); 

You may mess up some users installs if they have those id's already.

Thanks for the hack.

Derek

EvilLS1 10-24-2003 06:44 PM

corsacrazy ,
Yes, I can make an add-on for portals that will show the top 5 quickest cars. I'll make it as soon as I get some free time (maybe this weekend) and post it here.

VampireMan,
Looks very good. Nice job converting it!

7thgenCivic.Com,
The new fields are hardcoded because they must correspond with the specified fields in timeslips.php. However, I set the ID numbers for the new fields very high (@ 50+) so this shouldn't be a problem for anyone. And even if they already had that many custom fields (highly doubtful) it would simply give an error saying that those fields already exist.

Anyway, thanks everyone for the compliments.. Nice to see some of you found it useful.

Dewayne

EvilLS1 10-24-2003 11:13 PM

Portal add-on: Top Five 1/4 mile ETs

Attached is instructions and a screenshot for the top five 1/4 mile ETs add on for your front page portal.

If you want to show or sort by other fields just change the userfield IDs accordingly.


All times are GMT. The time now is 08:38 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.01332 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
  • (2)bbcode_php_printable
  • (1)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