![]() |
Quote:
PHP Code:
|
oly51,
Yes you can add any new fields to the Vehicle Profile page.. Just add the new field IDs into the queries where it says "AND profilefieldid IN (50,51,52,53,54,55,56,57)" and they will show up on the new vehicle profile page. You'll need to add the new field ID in 5 places (in the hack instructions for the addon). As for the info on the other 150 cars that don't belong to registered users, I'm not sure how you could include those. 7thgenCivic.Com, Sorry about that.. Those profile fields are from my own board and I forgot to change them in the hack instructions. Just replace that section of code with this: Code:
$profilefields=$DB_site->query("SELECT profilefieldid,required,title,size,maxlength |
hmm....I am not getting the actual form fields output with your new addition. It shows the field names, but not the form fields.
|
Nice, I have got the phpBB version working on two boards out there already. I have just installed this one on my Nissan Skyline related website which uses vBulletin. The install was very very simple, I will probably tweak it up later but for now is pretty standard.
Thanks EvilLS1 -*clicks install* |
when I made the separate page for the timeslips, i made HP required field, but when ppl tried to join, they got an error saying HP was a required field and there was no HP field being presented, which is what I want, but it should be coming up as not entered.
|
7thgenCivic.Com,
I appologise. It looks like I posted the wrong contents for the "timeslips_customfields" template. I also left out a step and forgot to put a "); at the end of one of the queries. I was very tired when I wrote the instructions for the addon.. Thats my excuse. :p Anyway, I updated the instructions once again for the vehicle profile page addon, and this time its right. But to save you from having to look through the whole thing to find what I changed, I'll post it here: Replace the entire contents of your "timeslips_customfields" template with this: Code:
<tr> Code:
<td bgcolor="$cpnav[2]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editprofile">Edit Profile</a></b></smallfont></td> Code:
<td bgcolor="$cpnav[2]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=edittimeslip">Edit Vehicle Profile</a></b></smallfont></td> In register.php find: Code:
$profilefields=$DB_site->query("SELECT maxlength,profilefieldid,required,title Code:
$profilefields=$DB_site->query("SELECT maxlength,profilefieldid,required,title @ brendonm.. Thanks. :) |
Hiya,
I like SVTOA's approach - nice work dude :) In particular I like the sorting into time brackts. Using the timeslip mod, how hard would it be to structure a search function to present only vehicles within a given bracket? e.g. 8sec, 9sec, 10sec and then include these searches into the sort box? (actually I think the search box inclusion may have been discussed, but not the time brackets). If I take a look at the existing if/else statement, I can see a condition statement thing. Is this where I'd put in some sort of less than/greater than condition? } else if ($action=="10SecondBracket") { $cond.=" WHERE userfield.field55>'".intval($number)."'"; $condition.=" AND userfield.field55>'".intval($number)."'"; $orderby="userfield.field55"; $direction=ASC; $bracket3="<b>[</b>"; $bracket4="<b>]</b>"; This would actually be a very nice enhancement for this mod in the instance that I am using it for aswell as might be a nice addition for others too. Even if someone can help me with the syntax for the first one I can write the rest (I don't expect everything to be done for me, I just don't know where to start with developing such a query). I am only interested in sorting by time bracket for 1/4 mile, not for 60 foot and 1/8 mile aswell. Any help or guidance in this matter would be much appreciated - if I manage to make anything useful I'll be sure to post it up here. regards BrendonM |
BrendonM,
Yes, you have the right idea. You would just add some variables above "// Do sorting methods" something like this: Code:
$a=11; Code:
} else if ($action=="TenSecCars") { |
BrendonM,
I'm adding this feature for you. Give me a few more minutes and I'll have it done. |
Hiya,
that is perfect, works very well thank you. I was'nt sure how to approach that syntactically now I can code as many brackets as I like. I have just asked my community for the brackets they want to sort by and will code them up tommorrow. If anyone wants the code let me know, although it is pretty easy.... ...now :) |
All times are GMT. The time now is 04:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|