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)

PKRWUD 04-02-2004 12:33 PM

Quote:

Originally Posted by EvilLS1
PKRWUD,
For some reason your timeslipsbit template isn't being displayed. Make sure the template name is spelled correctly (its timeslipsbit not timeslipbit).. If thats not it send me a copy of your timeslips.php file and I'll take a look.

You know what? I think that's the exact same mistake I made when I installed the first version on my old board. I guess it's true what they say about teaching an old dog new tricks.

Evil- You really are a credit to programmers everywhere, especially the way you offer so much assistance. Most people would be sick of it, I'm sure. Thank you again for your patience and your help.

Take care,
~Chris

P.S. It's now available if you want to link to it...

http://www.ricehatersclub.com/vbulletin/timeslips.php?

oly51 04-02-2004 04:01 PM

Quote:

Originally Posted by PKRWUD
...Evil- You really are a credit to programmers everywhere, especially the way you offer so much assistance. Most people would be sick of it, I'm sure. Thank you again for your patience and your help. [/url]

I have been following this hack off and on for a while and am really impressed with the degree of support EvilLS1 has shown for this hack! Everytime I come back, Evil is here helping! Great job :up:

Now if we can only find a way to allow users or Admins/Mods to add multiple car listings or non-members info (maybe something in addition to using the member list??) with a few mods, we could end up with a vBgarage type hack.

EvilLS1 04-02-2004 07:34 PM

Thanks for the kind words guys, and glad to hear its working for you now Chris. :)

Added your link btw.

gibgib 04-03-2004 10:41 AM

Thanks for your responses.

I am pleading my case here now I know the name of the hack I need!

gibgib

SNovotn2 04-03-2004 04:34 PM

I dont know if I missed a step or something is just not right.. but:

The hack is working perfectly, except I want it to show the custom profile fields(ride, mods...) when you click on a member under the "additional information". It did it on one of the installs I did, but this time no luck.

In my admin CP I have them set as able to be seen in the member list. My timeslip profile fields are the standard 50-*.

I can call $post[field50] and it will show the users 'ride', but for some reason inside my memberinfo_customfields template it wants $profilefield[value].


Anyone? :)

Steve

EvilLS1 04-03-2004 11:04 PM

SNovotn2,
In the earlier versions the vehicle info was displayed in the user's regular profile (there was no vehicle profile).. With version 1.3 or later all vehicle details are displayed separately. But if you want to show the vehicle details in the user's regular profile (aswell as the vehicle profile) you can do it like this:

In member.php find:
Code:

// *********************
// CUSTOM PROFILE FIELDS
$profilefields = $DB_site->query("
        SELECT profilefieldid, required, title, type, data, def, height
        FROM " . TABLE_PREFIX . "profilefield
        WHERE profilefieldid NOT IN (50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65) AND form = 0 " . iif(!can_moderate(), "
                AND hidden = 0") . "
        ORDER BY displayorder
");

Replace it with:
Code:

// *********************
// CUSTOM PROFILE FIELDS
$profilefields = $DB_site->query("
        SELECT profilefieldid, required, title, type, data, def, height
        FROM " . TABLE_PREFIX . "profilefield
        WHERE form = 0 " . iif(!can_moderate(), "
                AND hidden = 0") . "
        ORDER BY displayorder
");


PranK 04-05-2004 09:19 AM

Quote:

Originally Posted by EvilLS1
PranK,
So the fields that are still in your database are 80-95 and fields 50-65 no longer exist correct? If so, in member.php, includes/functions_user.php, and profile.php you'll need to make sure the field ID#s match the field IDs that you have in your database.

In those files, find all instances of this (there will be several):
Code:

(50,51,52,53,54,55,56,58,59,60,61,62,63,64,65)
And replace it with this:
Code:

(80,81,82,83,84,85,86,88,89,90,91,92,93,94,95)
Or if I'm misunderstanding you and you're saying that you still have fields 50-65, then you'll need to do just the opposite. Also, make sure you have the correct field #s in timeslips.php.

Champion Effort!

Thanks mate, all fixed!

Christian

Dj22 04-07-2004 05:57 AM

Just installed.. Killer!!

How hard would it for someone to modify it for users to have multiple car listings :speechless:

EvilLS1 04-07-2004 07:38 AM

Quote:

Originally Posted by Dj22
Just installed.. Killer!!

How hard would it for someone to modify it for users to have multiple car listings :speechless:

Adding multiple cars to the vehicle profile page is easy.. But it would only be possible to sort by one car on the timeslips page.

To add a field for another car just go to your admincp, add a new custom profile field for the extra vehicle, make a note of the field ID, then in member.php, includes/functions_user.php, and profile.php find all instances of this:
Code:

(50,51,52,53,54,55,56,58,59,60,61,62,63,64,65)
and add the field ID for your extra vehicle field to it.

Gt-358 04-07-2004 11:52 AM

Quote:

Originally Posted by EvilLS1
Adding multiple cars to the vehicle profile page is easy.. But it would only be possible to sort by one car on the timeslips page.

To add a field for another car just go to your admincp, add a new custom profile field for the extra vehicle, make a note of the field ID, then in member.php, includes/functions_user.php, and profile.php find all instances of this:
Code:

(50,51,52,53,54,55,56,58,59,60,61,62,63,64,65)
and add the field ID for your extra vehicle field to it.

So we can add a second vehicle to the profile, but can not add a second timeslip?


All times are GMT. The time now is 08:19 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.01719 seconds
  • Memory Usage 1,752KB
  • 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
  • (6)bbcode_code_printable
  • (5)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