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)

sunrunner_pei 11-14-2003 07:14 PM

Quote:

Originally Posted by corsacrazy
(no space between $ and p)$ post[fieldXX]

Excellent! But how do I know what the field# is?

corsacrazy 11-14-2003 07:25 PM

goto custom fileds in the admin cp... hover over the link to edit one of the fields and note the url of that link it will say the field number at the end its probally 51 or sumin hight like that ;)

sunrunner_pei 11-14-2003 07:37 PM

OK, I got the fields... But one problem: If the user doesn't have any info entered, it displays 0.000@0.00 in thir postbit. Is there any way to stop this from happening?

BTW, on my forum it's field55 and field56. :)

corsacrazy 11-14-2003 07:43 PM

theres isnt n e short way to stop this im afraid y dont u link thetimes in the postbit to the edit info page so wen a user sees they have no time it will inspire them to go and fill it in :~)

EvilLS1 11-14-2003 09:06 PM

sunrunner_pei,

In admin/functions.php find:
Code:

$jointime = (time() - $post[joindate]) / 86400; // Days Joined
Above it add:
Code:

if ($post[field55]>0){
  $postquarter= $post[field55];
}else{
  $postquarter="";
}
if ($post[field56]>0){
  $postatmph= "@";
  $postmph= $post[field56];
}else{
  $postatmph="";
  $postmph="";
}

Then in your postbit template put this where you want the 1/4 mile ET to show up.:
Code:

$postquarter$postatmph$postmph
This way it will only show up if an ET has been entered by the user.

0ptima 11-15-2003 08:27 PM

An awesome hack, I installed it on my forum. Thanks!

0ptima 11-15-2003 08:31 PM

I created a 'timeslip' PSD and GIF file which you can use on your forum. The zip file contains the PSD, GIF, a screen shot and instructions on how to add the button to the header.

@EviilLS1: You can add the button to your next update of the hack.

EvilLS1 11-15-2003 08:45 PM

Looks good Optima. Nice job.

I added a link to your post in the add-ons section.

sunrunner_pei 11-15-2003 08:50 PM

EvilLS1, thank you so very much!!! That worked perfectly!

EvilLS1 11-16-2003 04:48 PM

You're welcome sunrunner. :)


All times are GMT. The time now is 04:10 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.01271 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_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