View Full Version : vB Timeslip Database -for Automotive websites
EvilLS1
06-21-2004, 03:26 PM
i wiped everything out and re-installed from scratch, and follwed the instructions there is still not dropbox in the edit profile for the class under induction which is where is suppose to be right?
In member.php and includes/functions_user.php make sure you added the new field ID to all instances of this:
(50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65)
You'll need to do that in 2 places for member.php and 4 places in includes/functions_user.php. If its not showing up you either missed one or didn't add the correct field ID #.
EvilLS1
06-21-2004, 07:29 PM
i wiped everything out and re-installed from scratch, and follwed the instructions there is still not dropbox in the edit profile for the class under induction which is where is suppose to be right?
dcevoclub,
Just to verify that it works I followed my own instructions and added the classes bit to my test forum. It worked flawlessly (check the screenshot).
I don't know what else to suggest other than to check your settings for the new class profile field and make sure they're exactly as I posted above. Unless you want me to add it for you theres nothing else I can do.
dcevoclub
06-21-2004, 07:45 PM
i pm'd you a logon, to check the settings....
EvilLS1
06-21-2004, 07:51 PM
i pm'd you a logon, to check the settings....
The file edits appear to be correct, so like I said it has to be either the settings in your admincp for the new field or wrong profile field ID #. I can't check those things so you'll have to check them yourself.
dcevoclub
06-21-2004, 08:23 PM
i got it, i'm a retard thanks for all your help
EvilLS1
06-21-2004, 08:27 PM
i got it, i'm a retard thanks for all your help
N/P. Just out of curiosity, what was the problem?
dcevoclub
06-21-2004, 09:47 PM
haha i selected make it required
dcevoclub
06-22-2004, 12:07 AM
oh man, don't kill me...
but i never tested this until now... when you submit a timeslip it goes into the db, but its not displayed on timeslips.php
EvilLS1
06-22-2004, 11:45 AM
oh man, don't kill me...
but i never tested this until now... when you submit a timeslip it goes into the db, but its not displayed on timeslips.php
Whats not being displayed? Only the class info?
dcevoclub
06-22-2004, 12:09 PM
no when i enter a new timeslip...it doesn't show on the list..
EvilLS1
06-22-2004, 12:25 PM
no when i enter a new timeslip...it doesn't show on the list..
Whats not being displayed? The timeslip image itself or the info for the timeslip or the new class bit that we just added? Please be more specific. I just went to your board and added my info and everything displayed. I didn't see the option for the class though. Did you remove it?
Let me know and I'll help you with it when I get home from work this afternoon.
dcevoclub
06-22-2004, 01:15 PM
the timeslips, and this is on another page i'm working on. and the info for the timeslip
EvilLS1
06-22-2004, 02:44 PM
the timeslips, and this is on another page i'm working on. and the info for the timeslip
Can you give me a link so that I can check it out?
ludachris
06-25-2004, 06:48 PM
For some reason, I'm not able to manually change profile info via the admincp for members. I changed their usergroup and it erased their vehicle info. When I tried to re-input the data, it will not take. Any idea if this is related to the hack? or maybe it's a permissions thing?
EvilLS1
06-25-2004, 07:01 PM
For some reason, I'm not able to manually change profile info via the admincp for members. I changed their usergroup and it erased their vehicle info. When I tried to re-input the data, it will not take. Any idea if this is related to the hack? or maybe it's a permissions thing?
A few weeks ago there was a bug fix sent out for v2.0 that corrected a problem with admincp/user.php when updating someone's user profile. If you'll click the install button you'd be notified about bug fixes such as this one. ;)
https://vborg.vbsupport.ru/showpost.php?p=508459&postcount=177
ludachris
06-25-2004, 07:20 PM
A few weeks ago there was a bug fix sent out for v2.0 that corrected a problem with admincp/user.php when updating someone's user profile. If you'll click the install button you'd be notified about bug fixes such as this one. ;)
https://vborg.vbsupport.ru/showpost.php?p=508459&postcount=177
Thanks for the quick response - "Install" has been clicked :) thought I had already done that.
zerinS4
06-29-2004, 10:47 PM
Just added it to http://www.eurotechniks.com ... now if I can figure out how the heck to add that Torque field. My head is spinning from reading all these posts :)
EvilLS1
06-30-2004, 11:02 PM
Just added it to http://www.eurotechniks.com ... now if I can figure out how the heck to add that Torque field. My head is spinning from reading all these posts :)
Added your link. If you have basic knowledge of php you can see how to add new fields in this example:
https://vborg.vbsupport.ru/showpost.php?p=524771&postcount=247
Sidewindr
07-04-2004, 12:12 PM
You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?
If so, in profile.php find this:
if ($_REQUEST['do'] == 'edittimeslip')
{
Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
print_no_permission();
}
Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???
EvilLS1
07-04-2004, 05:39 PM
Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???
In admincp/usergroup.php find:
print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
Below it add:
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']);
(in vb3.0.2 or earlier)
In includes/init.php find:
'caneditownusernotes' => 131072
Replace it with:
'caneditownusernotes' => 131072,
'cantimeslip' => 262144
---------------------------------------------------------------------
{edit} If you're using v3.0.3 or later skip the edit above and use this edit instead:
In includes/init.php find:
'canseehiddencustomfields' => 262144,
Replace it with:
'canseehiddencustomfields' => 262144,
'cantimeslip' => 16777216,
-----------------------------------------------------------------------
In profile.php find:
if ($_REQUEST['do'] == 'edittimeslip')
{
Below it add:
if (!($permissions['genericpermissions'] & CANTIMESLIP))
{
print_no_permission();
}
Then just set the permission for each usergroup.
Sidewindr
07-05-2004, 05:41 AM
Worked a treat ... however I upgraded to 3.03 and now when I list the timeslips it displays ALL members even those with no ET info...
Where is the code that does not display users with not info (ie ET is 0)
EvilLS1
07-05-2004, 06:10 AM
Worked a treat ... however I upgraded to 3.03 and now when I list the timeslips it displays ALL members even those with no ET info...
Where is the code that does not display users with not info (ie ET is 0)
Hmm.. Thats odd. This started when you upgraded your forum software to 3.0.2? Have you modified timeslips.php at all? If so, try uploading a fresh copy and see if it works. Upgrading to 3.0.2 shouldn't have any effect on how the timeslips page functions.
Sidewindr
07-05-2004, 06:20 AM
I upgraded to 3.0.2 then 3.0.3 ..
Fresh copy of timeslips.php made no difference :(
EvilLS1
07-05-2004, 06:33 AM
If you had already installed vB Timeslip Database before upgrading your forums to v3.0.2 or later you'll need to upload the attached file (TD302.php) to your admincp directory and run it. The upgrade script for vB 3.0.2 and newer versions sets the custom user fields to medium text. Some of the timeslip fields must be set to DECIMAL in order for the timeslips page to sort & display them correctly. The attached file (TD302.php) will correct that for you.
Sidewindr
07-05-2004, 10:29 AM
Seems to have done the trick :) Top stuff!! :banana:
Sidewindr
07-05-2004, 10:34 AM
I have one more suggestion :)
How about a Diff Ratio field ?? :)
Also it seems as an Admin I cannot uload a timeslip for a user, only link to a URL whereas the user can upload a timeslip into the forum database. Any ideas?
Logan
07-05-2004, 05:36 PM
I have one more suggestion :)
How about a Diff Ratio field ?? :)
Also it seems as an Admin I cannot uload a timeslip for a user, only link to a URL whereas the user can upload a timeslip into the forum database. Any ideas?
EvilLS1, I had the same problem as Sidewindr, the new file works for me too...
EvilLS1
07-05-2004, 07:55 PM
For anyone who has recently upgraded to vB 3.0.2 or later please read this post:
https://vborg.vbsupport.ru/showpost.php?p=529402&postcount=274
EvilLS1
07-05-2004, 07:58 PM
I have one more suggestion :)
How about a Diff Ratio field ?? :)
Also it seems as an Admin I cannot uload a timeslip for a user, only link to a URL whereas the user can upload a timeslip into the forum database. Any ideas?
Good suggestions. I might add those in the next version.
Sidewindr & Logan, Be sure to read the last part of this post (https://vborg.vbsupport.ru/showpost.php?p=529402&postcount=274) to completely fix sorting problems after upgrading to vb 3.0.2 or later.
Sidewindr
07-05-2004, 09:53 PM
Roger wilco :)
Any idea on when you might be looking at the next version ?? :nervous: :o
EvilLS1
07-05-2004, 09:59 PM
Roger wilco :)
Any idea on when you might be looking at the next version ?? :nervous: :o
It will probably be a while as I'm working 6 and sometimes 7 days per week right now and don't have much free time to fool with hacks.
In the mean time, if you have basic knowledge of php you can see how to add new fields in this example:
https://vborg.vbsupport.ru/showpost.php?p=524771&postcount=247
The example shows how to add and sort by a "class" field. But that should give you a general idea on how to add your diff. field.
350Chevy
07-05-2004, 10:15 PM
If you recently upgraded to vB 3.0.2 or later and you're having trouble with the timeslips page showing all users regardless if they have an ET or not then please replace your timeslips.php with the correct one for your version (attached below).
Also, if you had already installed vB Timeslip Database before upgrading your forums to v3.0.2 or later you'll need to upload the attached file (TD302.php) to your admincp directory and run it. The upgrade script for vB 3.0.2 sets the custom user fields to medium text. Some of the timeslip fields must be set to DECIMAL in order for the timeslips page to sort them correctly. The attached file (TD302.php) will correct that for you. If you've installed the Timeslip Database AFTER upgrading to 3.0.2 you can skip this part.
Works like a charm on vB 3.0.3 Thnx! :D
PranK
07-05-2004, 11:15 PM
If you recently upgraded to vB 3.0.2 or later .....
Top effort! Thanks EvilS1!
Christian
Sidewindr
07-05-2004, 11:20 PM
Thanks EvilLS1 I will have a crack at adding the Diff ratio as field 66 :D
In the interim how would I manually put the timeslip in as a blob in the database directly ?? Really need the admins to be able to upload people's timeslips as well as the user doing it :(
PranK
07-05-2004, 11:22 PM
EvilS1 - I get SQL errors when running TD302.php and timeslips.php. This is cause you and I had to change my install to different numbers. My profile ID's for the timeslips are all in the 80's and 90's. What I need to know is what numbers correspond to what, so I can edit the files.
Thanks.
PranK
07-05-2004, 11:41 PM
EvilS1 - I get SQL errors when running TD302.php and timeslips.php. This is cause you and I had to change my install to different numbers. My profile ID's for the timeslips are all in the 80's and 90's. What I need to know is what numbers correspond to what, so I can edit the files.
Thanks.
Ok, I fixed the profile id's, but now I am getting an sql error about the table 'customtimeslipspic' - i dont have it...
EvilLS1
07-05-2004, 11:41 PM
Thanks EvilLS1 I will have a crack at adding the Diff ratio as field 66 :D
In the interim how would I manually put the timeslip in as a blob in the database directly ?? Really need the admins to be able to upload people's timeslips as well as the user doing it :(
Sidewindr,
If you really need the ability to upload timeslips for your users I'd suggest installing the "login as user (https://vborg.vbsupport.ru/showthread.php?t=59556)" hack. Then if someone just can't figure out how to upload a slip for themselves you can login to their account and do it for them. I highly doubt you'll have to do that often anyway b/c most users should be able to figure out how to upload their own slip.
EvilS1 - I get SQL errors when running TD302.php and timeslips.php. This is cause you and I had to change my install to different numbers. My profile ID's for the timeslips are all in the 80's and 90's. What I need to know is what numbers correspond to what, so I can edit the files.
Thanks.
Prank,
If memory serves, your profile fields are 80-95.
To keep from having to manually edit all the fields in timeslips.php just open your old timeslips.php and find all instances of this:
'".intval($number)."'
And replace all of them with this:
0
Then upload the attached TD302.php file to your admincp directory and run it (I already edited the fields for you).
PranK
07-05-2004, 11:41 PM
damn it... :D
EvilLS1
07-05-2004, 11:42 PM
Ok, I fixed the profile id's, but now I am getting an sql error about the table 'customtimeslipspic' - i dont have it...
Thats because you uploaded the timeslips.php for version 2.1. You still have v2.0.
PranK
07-05-2004, 11:59 PM
ahhhhh ok cool, thanks.
PranK
07-06-2004, 12:06 AM
sweet - all fixed now, thanks EvilS1!!
Christian
EvilLS1
07-06-2004, 12:10 AM
Glad it worked Christian. :)
BTW, I noticed that the footer of your timeslips page doesn't extend all the way accross now that you've added a link to the vbgarage. To fix it, in your timeslips template find this:
<td class="tfoot" colspan="10">
and replace it with this:
<td class="tfoot" colspan="11">
Dewayne
dmark101
07-06-2004, 07:02 PM
If you recently upgraded to vB 3.0.2 or later and you're having trouble with the timeslips page showing all users regardless if they have an ET or not then please replace your timeslips.php with the correct one for your version (attached below).
Also, if you had already installed vB Timeslip Database before upgrading your forums to v3.0.2 or later you'll need to upload the attached file (TD302.php) to your admincp directory and run it. The upgrade script for vB 3.0.2 sets the custom user fields to medium text. Some of the timeslip fields must be set to DECIMAL in order for the timeslips page to sort them correctly. The attached file (TD302.php) will correct that for you. If you've installed the Timeslip Database AFTER upgrading to 3.0.2 you can skip this part.
i just upgraded my site from RC3 to 3.0.3 and i noticed that the timeslips.php wasn't working right, so i did as you suggested and that works fine now.
the only problem i am still having is the 'edit vehicle profile' does not take me to the vehicle profile fields. instead, i get a blank page. now i did notice the vehicle stats are on the regular profile page.
how can i fix that?
EvilLS1
07-06-2004, 08:28 PM
i just upgraded my site from RC3 to 3.0.3 and i noticed that the timeslips.php wasn't working right, so i did as you suggested and that works fine now.
the only problem i am still having is the 'edit vehicle profile' does not take me to the vehicle profile fields. instead, i get a blank page. now i did notice the vehicle stats are on the regular profile page.
how can i fix that?
That sounds as if you forgot to re-do the file edits in a couple of files (functions_user.php, profile.php, & member.php). Did you re-apply the file edits after upgrading? Even if you did, double check them to make sure they're correct.
If it still doesn't work login to your admincp and go to "manage custom profile fields". Hold your mouse over the timeslip fields and verify that the field IDs are from 50-65. If not, tell me what the IDs are.
dmark101
07-07-2004, 01:44 AM
that did the trick. thanks again. this mod rawks! :)
Sidewindr
07-07-2004, 01:23 PM
It will probably be a while as I'm working 6 and sometimes 7 days per week right now and don't have much free time to fool with hacks.
In the mean time, if you have basic knowledge of php you can see how to add new fields in this example:
https://vborg.vbsupport.ru/showpost.php?p=524771&postcount=247
The example shows how to add and sort by a "class" field. But that should give you a general idea on how to add your diff. field.
Ok added the Diff field .. can you reserver field66 for Diff ratio, it's a DECIMAL 3,2 btw ;)
I will have a bit of a poke around and see if I can somehow replicate the upload timeslip into the user admin section of the forum. I don't want to add any hacks like "logon as user" etc as they go against my privacy morals etc. Same as reading users PM's etc.
tteal
07-12-2004, 09:33 PM
Evil,
You still have any plans for multiple timeslips per user? That would be great for those of us that drag race and want to compare modifications vs ET and also keep a good running inventory. Have you also thought about modifications per date? If you're like me, I like to find out if modification "X" did anything or not and can compare those mods vs older mods (per date/time).
Just some suggestions.
Thanks once again for writing all of this code and supporting it as well. I very much appreciate your efforts a ton!
Cheers,
Tim
EvilLS1
07-12-2004, 09:48 PM
Tim,
I've made notes of requested features for future versions but to be honest it will probably be a while before I release anymore updates b/c I'm working 6 & 7 days per week right now and don't have much free time to work on anything.
I will keep your suggestions in mind though. Thanks. :)
Dewayne
tteal
07-12-2004, 09:50 PM
Tim,
I've made notes of requested features for future versions but to be honest it will probably be a while before I release anymore updates b/c I'm working 6 & 7 days per week right now and don't have much free time to work on anything.
I will keep your suggestions in mind though. Thanks. :)
Dewayne
Dewayne,
Not a problem at all bro, we have plenty of time and they are just that ---- suggestions. By the way, my turd goes to the dyno 20 July so we'll see what kind of #'s she makes with the new combination. Cross fingers and hope for the best.
Tim
EvilLS1
07-12-2004, 10:09 PM
Dewayne,
By the way, my turd goes to the dyno 20 July so we'll see what kind of #'s she makes with the new combination. Cross fingers and hope for the best.
Tim
Good luck @ the dyno! Keep me posted on how it goes. :)
pgp2003
07-20-2004, 05:19 PM
I just get a blank page when I try to Edit the timeslip info... http://www.nostreetracing.org/main/
EvilLS1
07-20-2004, 06:53 PM
I just get a blank page when I try to Edit the timeslip info... http://www.nostreetracing.org/main/
It can only be one of two things, either a missed edit to profile.php or a misspelled template name. First open profile.php and verify that you added this bit of code:
// ############################### EDIT VEHICLE PROFILE #######################
if ($_REQUEST['do'] == 'edittimeslip')
{
if ($bbuserinfo[userid]==0 or $bbuserinfo[tdban]==0)
{
print_no_permission();
}
unset($tempcustom);
exec_switch_bg();
// Get Custom profile fields
$customfields = array();
fetch_timeslipfields(0);
if ($vboptions[allowtimeslipupload]){
$timeslippic = $DB_site->query_first("
SELECT userid, dateline
FROM " . TABLE_PREFIX . "customtimeslippic
WHERE userid = $bbuserinfo[userid]
");
if ($timeslippic)
{
$timeslippicchecked[1] = HTML_CHECKED;
$timeslippicchecked[0] = '';
}
else
{
$timeslippicchecked[1] = '';
$timeslippicchecked[0] = HTML_CHECKED;
}
}
// draw cp nav bar
construct_usercp_nav('vehicleprofile');
$navbits[''] = $vbphrase['edit_timeslip'];
$templatename = 'modifytimeslip';
}
// ############################### start update ###############################
if ($_POST['do'] == 'updatevehicleprofile')
{
if ($bbuserinfo[userid]==0 or $bbuserinfo[tdban]==0)
{
print_no_permission();
}
$userfields = verify_vehiclefields(0);
// insert custom user fields
if (!empty($userfields))
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET userid=$bbuserinfo[userid]$userfields WHERE userid=$bbuserinfo[userid]");
}
if ($vboptions[allowtimeslipupload]){
globalize($_POST, array('timeslippic' => INT, 'avatarurl' => STR));
if ($timeslippic==1)
{
require_once('./includes/functions_upload.php');
process_image_upload('timeslippic', $avatarurl);
}
else if ($timeslippic==0)
{
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "customtimeslippic WHERE userid = $bbuserinfo[userid]");
}
}
$url = "timeslips.php?$session[sessionurl]";
eval(print_standard_redirect('redirect_updatethank s'));
}
If so, check the spelling and contents of your modifytimeslip template.
BTW, I tried to register on your site so that I could see for myself but I just get a blank page when I submit my registration info. This hack makes no edites to register.php so something else is causing that.
pgp2003
07-20-2004, 08:03 PM
I already checked both template names and profile.php already... and it seems to be okay.. but I will redo profile.php again..
and as for register.php, thanks for catching that... The only mod that made changes in that file was the award hack... good thing I didn't try it on my other forum :)
I will let you know how things go as soon as I try it again
bmx269
07-27-2004, 12:17 AM
Installed it on K-Series.com. Love it. Thanks.
-Trent
Sidewindr
07-27-2004, 05:44 AM
Anyone got the Top 5 Times mod working for vBadvanced CMPS ??
Help!! :)
tteal
07-28-2004, 01:42 AM
Dewayne (EvilLS1),
FYI I just dyno'd last Tuesday ---- 456.9rwhp/388rwtq and ran out of fuel pump/system at only 6k rpm. Going to upgrade.
Quick question actual request. I somehow mucked up my timeslip database... all of the info exists, however, I think I messed up field55 somehow. Anyway that you could tell me the structure of what belongs in there so I can use phpmyadmin to fix it? all of my timeslips won't show now. That will teach me to try and install another tool :)
Thanks,
Tim
EvilLS1
07-28-2004, 02:14 AM
Nice numbers Tim!
To re-add field55, first make sure that field55 has been completely removed from the profilefield and userfield tables. Then upload this script to the admincp directory and run it. Keep in mind that doing this will cause everyone to have to re-enter thier info for that field. If you just want to see the structure open the file and take a look.
Later,
Dewayne
tteal
07-28-2004, 02:22 AM
Nice numbers Tim!
To re-add field55, first make sure that field55 has been completely removed from the profilefield and userfield tables. Then upload this script to the admincp directory and run it. Keep in mind that doing this will cause everyone to have to re-enter thier info for that field. If you just want to see the structure open the file and take a look.
Later,
Dewayne
DeWayne,
Thanks for teh quick resopnse. I figured it out and just manually input'd all of the data. I had custom fields with the ET in there so I used that. I didn't want to lose all that data :) Thanks!!!!!!!!
tbroush
07-28-2004, 03:26 AM
I just added this to my website, I try to run the td302.php and I got a database error, but it seems to be working correctly, can you please check it out and let me know if there is something missing thanks.
http://www.modernmustangs-na.com/forums
EvilLS1
07-28-2004, 03:33 AM
I just added this to my website, I try to run the td302.php and I got a database error, but it seems to be working correctly, can you please check it out and let me know if there is something missing thanks.
http://www.modernmustangs-na.com/forums
You don't need to run td302.php since this is a fresh install. Thats only for people who had installed the hack prior to upgrading to VB 3.0.2 or later.
Yours seems to be working just fine. :)
tbroush
07-28-2004, 03:47 AM
You don't need to run td302.php since this is a fresh install. Thats only for people who had installed the hack prior to upgrading to VB 3.0.2 or later.
Doh, thanks it looks awesome.
Carlos
DJCobol
07-29-2004, 03:12 AM
Having a small problem with my install of this mod. After entering my info, nothing shows up on the listing page, even after uploading the new timeslips.php page. Any ideas?
Site is http://www.michiganspeed.com/testforums/timeslips.php?
EvilLS1
07-29-2004, 09:50 AM
DJCobol,
Check to make sure that the name of the timeslipsbit template is spelled correctly. Its timeslipsbit not timeslipbit.
DJCobol
07-29-2004, 10:47 AM
Well now, dont I feel like an idiot? :)
Thanks for your help man. This is an awesome mod!
EvilLS1
07-29-2004, 12:07 PM
Well now, dont I feel like an idiot? :)
Thanks for your help man. This is an awesome mod!
N/P. Glad you like it. :)
0ptima
08-01-2004, 10:13 PM
I upgraded from VB 3.01 - 3.03 and upgrade this hack to 2.01. Took a bit of time, but the instructions were easy to follow. Thanks again for a great hack!
EvilLS1
08-01-2004, 11:29 PM
Y/W Optima. :)
Sidewindr
08-01-2004, 11:37 PM
Any chance of the Top 5 Times Mod/Module for vBadvanced CMPS ?? :)
EvilLS1
08-02-2004, 12:11 AM
Sidewindr,
The problem is that I don't use CPMS so I have no way of testing it. But just by looking at the hack I think you'd need to create a php file containing the query for the top 5 addon and upload it to the modules directory. Then add the templates as you normally would and set up the module in the admincp.
Here, I'll attach a file and some instructions to try. I have no idea if it'll work b/c I have no way to test it and I'm not really sure how CPMS works. If it still doesn't work you could try asking Tigga about it at the vbadvanced website.
Limey-YMR
08-05-2004, 01:25 AM
Great Hack, Thanks
Can you add our link?
http://www.ymrforums.com/timeslips.php
EvilLS1
08-05-2004, 11:59 AM
Great Hack, Thanks
Can you add our link?
http://www.ymrforums.com/timeslips.php
Thank you. :) Link added.
Limey-YMR
08-05-2004, 11:28 PM
I found that people with 9 second 1/4 mile ETs were last, so I added a 0 making it two digits, all good now, same with people that have under 100 WHP (eek!) had to add a 0 there too.
a previous admin added V1 of this mod to our board and it looked like he never finished, though we had profile fields up to 57, I stripped out some of the Table Inserts from the install script and it took all of the old data fine, will this cause any problems down the road?
I still have the "post a link to the timeslip" instead of the upload function with radio buttons too as pictured, do you have a tip for what I should check to bring it up to date as a full upload function a la V2.1 ?
If you want to say fahgedddaboutit for hacking the installer on your hack, and making a frankenstein, no worries ;) - just wanted to retain the old submit data.
cheers
EvilLS1
08-05-2004, 11:50 PM
Limey,
The reason your fields aren't sorting correctly is b/c somehow your timeslip fields got set to text or varchar instead of decimal. Probably happened when you upgraded your vB. Use phpmyadmin to edit all of the number fields so that they're set to DECIMAL again and they'll sort correctly without having to add the zero in front of single digit car's ET.
As for updating and still using the old VB2 timeslip fields I tried that on my own site and got frustrated with it. I just had my members re-enter their times. Since you only have a couple of pages listed I'd just remove the old fields and re-install it if I were you. Removing the old fields and reinstalling will also set your timeslip & hp fields back to decimal and it'll sort like its supposed to.
Dewayne
SVTBlackLight01
08-07-2004, 10:44 PM
Dewayne,
I finally got around to upgrading from vB2 and added the timeslip database last night. I even managed to preserve all the info (It took a few tries).
http://www.modernengineuity.com/forums/timeslips.php
Good job on a great hack! :up:
EvilLS1
08-07-2004, 10:53 PM
Thanks SVT. Looks great! :)
0ptima
08-08-2004, 06:21 PM
Dewayne,
When Im in the admin CP and edit a users profile, I get duplicate user profile fields. The "Can edit Vehicle Profile?" is a custom profile field(ID 6) which I added in 2002. Im running vb 303 and the latest timeslip hack. Thanks.
EvilLS1
08-08-2004, 07:29 PM
Optima,
That is very strange. In the admincp under custom profile fields does it also show duplicate fields for this hack? If so, can you tell me which field IDs it has? You should only have fields 50-65. Also, in admincp/user.php make sure that this code was added in the correct place and also make sure its only in there once:
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'tdban',$user[tdban]);
print_yes_no_row('Delete Uploaded Timeslip?', 'deleteslip',0);
0ptima
08-08-2004, 07:51 PM
Dewayne.
Thanks for the quick response, I found the problem
I had this:
while ($profilefield = $DB_site->fetch_array($profilefields))
{
print_profilefield_row($profilefield, $userfield);
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'tdban',$user[tdban]);
print_yes_no_row('Delete Uploaded Timeslip?', 'deleteslip',0);
}
EvilLS1
08-08-2004, 07:59 PM
N/P Optima. Glad its working correctly for you now.
Limey-YMR
08-09-2004, 04:16 AM
Limey,
The reason your fields aren't sorting correctly is b/c somehow your timeslip fields got set to text or varchar instead of decimal. Probably happened when you upgraded your vB. Use phpmyadmin to edit all of the number fields so that they're set to DECIMAL again and they'll sort correctly without having to add the zero in front of single digit car's ET.
Dewayne
It was MediumText - I tried Decimal and it rounded everything up before the decimal point (and scrapped the decimal point), do you know what the parameters would be for decimal to retain a decimal point, the two chars after it, and to suggest a 0.00 default value in phpmyadmin?
cheers.
Mark
EvilLS1
08-09-2004, 10:52 AM
Mark,
Just upload this file to your admincp directory and run it:
https://vborg.vbsupport.ru/attachment.php?attachmentid=19550
This will set the fields to decimal with the correct parameters for you.
Limey-YMR
08-11-2004, 12:48 AM
Mark,
Just upload this file to your admincp directory and run it:
https://vborg.vbsupport.ru/attachment.php?attachmentid=19550
This will set the fields to decimal with the correct parameters for you.
Thanks a lot! that worked like a charm.
thankfully I only have two nine second cars on the board, so removing the zeros will be trivial :)
EvilLS1
08-11-2004, 11:51 AM
Thanks a lot! that worked like a charm.
thankfully I only have two nine second cars on the board, so removing the zeros will be trivial :)
Cool, glad ya got it worked out. At least you have a couple of single digit cars on your site. I think the quickest car @ my forum is 10.70something. Theres a few members who have single digit cars but they haven't bothered to put their times in the database for whatever reason.
coolmody
09-05-2004, 10:47 PM
Hey guys,
Not sure if anyone has done this yet, but I modified it to work with vBAdvanced CMPS. Most of the work was done by EvilS1. He was just missing a line at the end which should get it to work.
Instructions:
1. Upload this NEW toptimes.php file to your modules directory
2. Create a new template named "adv_portal_toptimes" and add the HTML below:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr id="cat">
<td colspan="5" class="tcat" width="100%"><span class="smallfont"><b>?Top Five 1/4 Mile ETs</b></span></td>
</tr>
<tr>
<td class="alt2" align="center"><span class="smallfont"><b>#</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>Username</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>Ride</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>60'</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>1/4 Mile ET &MPH </b></span></td>
</tr>
$times
</tr>
<td class="tcat" colspan="5"><span class="smallfont"><CENTER>[<a href=$vboptions[bburl]/timeslips.php>Click here to view the complete list</a>]</CENTER></span></td>
</tr>
</table>
<br />
3. Create a new template named "adv_portal_times" and add the HTML below:
<tr>
<td class="alt1" align="center"><span class="smallfont">$rank</span></td>
<td class="alt1" align="center"><span class="smallfont"><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$userinfo[userid]">$TDusername</a></span></td>
<td class="alt1" align="center"><span class="smallfont">$ride</span></td>
<td class="alt1" align="center"><span class="smallfont">$sixty</span></td>
<td class="alt1" align="center"><span class="smallfont">$quarter$atmph2$quartermph</span></td>
4. Goto your vBa CMPS menu and select "add module".
5. Enter 'Timeslips' under Module Title.
6. Leave Module Identifier blank (unless you don't want to).
7. Use toptimes.php as your File to Include.
8. Make Active.
9. Put it in the Center Column.
10. Put whichever order you like.
11. Leave templates used blank.
12. Click save.
Hope this works out for you guys.
I got a working demo at my site:
Albertacars.net (http://www.albertacars.net)
EvilLS1
09-05-2004, 11:32 PM
Nice job coolmody! Added a link to your instructions in the first post. :)
SVTBlackLight01
09-05-2004, 11:39 PM
I am trying to add this to vBindex. What needs to be changed in toptimes.php so it will work outside the modules directory?
joeychgo
09-05-2004, 11:47 PM
Hey evil ---
Ive had a problem since the beginning....... I have adcolumns hack running and for some reason, the Adcolumn on the timeslips page doesnt come up on the side, it comes up below. This is the only page this happens on -- can you help?
http://www.lincolnvscadillac.com/timeslips.php
EvilLS1
09-06-2004, 12:24 AM
SVT,
Did you try coolmody's version? He attached a zip file with a new toptimes.php.
Joey,
In your timeslips template find this:
</table>
</table>
<font size="1"><a href="profile.php?&do=edittimeslip">Submit your timeslip data</a></font>
</td></tr></table>
Replace it with this:
</table>
<font size="1"><a href="profile.php?&do=edittimeslip">Submit your timeslip data</a></font>
</td></tr></table>
joeychgo
09-06-2004, 12:29 AM
You rock dude!
Thanks so much!
SVTBlackLight01
09-06-2004, 12:40 AM
Evil,
vBindex is completely different. Basically you have to make it a stand alone file and then include it in the template.
I have it just about worked out, but it's only returning the first time. Here is what my toptimes.php looks like (the part that matters)
require_once('./global.php');
$pos = 0;
$users=$DB_site->query("SELECT *
FROM " . TABLE_PREFIX . "user AS user, " . TABLE_PREFIX . "userfield AS userfield
WHERE user.userid = userfield.userid
AND userfield.field55>0
ORDER BY userfield.field55 ASC
LIMIT 5");
// Set up vars
while($userinfo=$DB_site->fetch_array($users)) {
$pos++;
$rank= number_format($pos);
$TDusername= $userinfo[username];
$year= $userinfo[field5];
$model= $userinfo[field8];
$trim= $userinfo[field9];
if($userinfo[field52] > 0) {
$sixty= $userinfo[field52];
}
else {
$sixty="";
}
if($userinfo[field55] > 0) {
$quarter= $userinfo[field55];
}
else {
$quarter="";
}
if($userinfo[field56] > 0) {
$atmph2="@";
}
else {
$atmph2="";
}
if($userinfo[field56] > 0) {
$quartermph= $userinfo[field56];
}
else {
$quartermph="";
}
eval('$times .= "' . fetch_template('vbindex_times') . '";');
eval('print_output("' . fetch_template('vbindex_toptimes') . '");');
}
?>
You can see it on my site: http://www.modernengineuity.com
joeychgo
09-06-2004, 12:42 AM
SVT - have you looked at vbAdvanced CMPS system?
You might want to consider it
SVTBlackLight01
09-06-2004, 12:46 AM
I have been considering it, but I have hacked up vbindex quite a bit. I'll probably still switch over before too long.
joeychgo
09-06-2004, 12:48 AM
I can tell you its VERY easy to use - and real sweet for adding extra pages with all custom content.
Im still a newbie, and ive done alot with it.
SVTBlackLight01
09-06-2004, 12:53 AM
I'm actually using it on another part of my site. :) I could just use more of the features on my front page.
http://www.modernengineuity.com/articles.mod
EvilLS1
09-06-2004, 01:16 AM
Y/W Joey. :)
SVT,
Ah, I see.. I thought you were talking about CMPS.
Anyway, at the bottom of your file: shouldn't this:...
eval('$times .= "' . fetch_template('vbindex_times') . '";');
eval('print_output("' . fetch_template('vbindex_toptimes') . '");');
}
?>
..be changed to this?
eval('$times .= "' . fetch_template('vbindex_times') . '";');
}
eval('print_output("' . fetch_template('vbindex_toptimes') . '");');
?>
Later,
Dewayne
SVTBlackLight01
09-06-2004, 01:42 AM
Yep. That fixed it. :D Thanks!
EvilLS1
09-06-2004, 01:50 AM
N/P.
Are ya gonna post your add-on for others who use vbindex? I'm sure it'll be requested sooner or later. :)
SVTBlackLight01
09-06-2004, 02:41 AM
OK. Here are the instructions and an updated file for displaying the top 5 timeslips in vBindex.
EvilLS1
09-06-2004, 02:59 AM
Thanks for sharing. :)
Added a link to your instructions in the first post.
Limey-YMR
09-07-2004, 04:07 AM
I have a quick question, I have the 1/4 Mile ET in the postbit_legacy, but I'd like to have it show an 1/8 Mile E/T for users that haven't yet run the 1320
I spent several hours trying to figure it out figuring it would be some kind of else variable before the /if statement.
here's what I've got<div><if condition="$post[field55]>0">
<span class="smallfont"><strong>1/4 Mile ET:</strong> $post[field55]</span>
<elseif condition="$post[field53]>0"><span class="smallfont"><strong>1/8 Mile ET:</strong> $post[field53]</span>
</if></div>
Can someone be as kind as to tell me the correct syntax to display field 53 if field 55 is nul, right now it displays both when 1/4 mile is present and none if 1/4 mile is not.
cheers.
Mark
EvilLS1
09-07-2004, 05:30 AM
Limey,
This should do it:
<if condition="$post[field55]>0">
<div><span class="smallfont"><strong>1/4 Mile ET:</strong> $post[field55]</span></div>
</if>
<if condition="$post[field53]>0 AND $post[field55]==0">
<div><span class="smallfont"><strong>1/8 Mile ET:</strong> $post[field53]</span> </div>
</if>
Limey-YMR
09-08-2004, 04:10 AM
Limey,
This should do it:
You are the man!
Cheers - worked like a charm, the sad thing is it makes sense now I see it! I wanted an AND and an absolute, not else if, darn logic gates!
integra99
09-08-2004, 04:18 AM
You are the man!
Cheers - worked like a charm, the sad thing is it makes sense now I see it! I wanted an AND and an absolute, not else if, darn logic gates!I think it would be nice to have customizable fields, as well as turn off some fields. Instead, I just added and removed fields as I chose. I added in a mod list field for large amounts of text that parses bbcode, made a dropdown menu for year and model selection, added a Sponsored drop down selection, and a few other small items.
94supratt
09-09-2004, 02:39 AM
Trying to install on 3.0 I don't find any of the text I am supposed to edit in the image.php file.
EvilLS1
09-09-2004, 02:42 AM
Trying to install on 3.0 I don't find any of the text I am supposed to edit in the image.php file.
3.0.what?
EvilLS1
09-09-2004, 02:53 AM
In an unhacked image.php the first edit starts around line 41. The second (last) edit is around line 185.
94supratt
09-09-2004, 03:01 AM
3.0.what?
3.0.0
EvilLS1
09-09-2004, 03:05 AM
3.0.0
In 3.0.0 its line 41 & 185.
If you still can't find it you can email your image.php file and I'll add the code for you. webmaster@modernmusclecars.net
94supratt
09-09-2004, 03:08 AM
This is my lines 40-50
/*
NOTE:
for use in imagecategory table:
imagetype = 1 => avatar
imagetype = 2 => icon
imagetype = 3 => smilie
*/
// make sure we are dealing with avatars,smilies or icons
globalize($_REQUEST, array('table' => STR));
switch($table)
and 180-190
}
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "imagecategorypermission WHERE imagecategoryid=$imagecategoryid");
foreach($iperm AS $usergroupid => $canuse)
{
if ($canuse == 0)
{
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "imagecategorypermission (imagecategoryid,usergroupid) VALUES ($imagecategoryid,$usergroupid)");
}
}
94supratt
09-09-2004, 03:10 AM
email sent
EvilLS1
09-09-2004, 03:10 AM
You must have another hack installed that effects image.php. Just email me your file and I'll add the code for you. My email address is in the post above ^.
94supratt
09-09-2004, 03:13 AM
You must have another hack installed that effects image.php. Just email me your file and I'll add the code for you. My email address is in the post above ^.
Thanks! I am a co-admin of a site. Someone else did an image gallery hack. Thats probably why the image.php file is different.
94supratt
09-09-2004, 03:18 AM
Hmm...It seems to be working w/o the image.php hacked.
EvilLS1
09-09-2004, 03:21 AM
hehe.. The reason you couldn't find the code is b/c you're looking in the wrong image.php. The file you sent me is /forums/admincp/image.php .. The one you need to edit is /forums/image.php . ;)
I guess I should mention that theres two of them in the instructions.. :)
94supratt
09-09-2004, 03:41 PM
Everything works but I get a parse error when someone tries to click on the timeslip link.
94supratt
09-09-2004, 04:14 PM
.....
Parse error: parse error, unexpected T_ELSE in /home/horsepow/public_html/forums/image.php on line 201
Mike Bucy
09-09-2004, 05:57 PM
Hi, I'm currently using Timeslips version 1.2 on VB2.3.5 and I thinkd it's great. I'm going to be updating to VB3.0.3 today and was wondering the best way to make the Timeslips upgrade at the same time?
EvilLS1
09-09-2004, 07:05 PM
94supratt,
A parse error usually means that the code was copied and pasted incorrectly. Try carefully re-applying the file edits to a fresh image.php and that should fix it.
Mike,
It is possible to edit the installer script so that the old timeslip fields from 1.2 are still used after the upgrade, but if you only have a page or two of entries I'd suggest removing all of the old fields and doing a fresh install. It only takes each member a couple of minutes to re-enter their times and this way you'll avoid any problems with the installation script. Just go to the custom profile fields section in your admincp and remove all of the timeslips/vehicle fields before running the new installer.
Dewayne
Mike Bucy
09-09-2004, 08:36 PM
Will do!
Thanks
Silverstangs
09-10-2004, 01:23 AM
Hey Evil, I just wanted to update the location for my timeslips page
http://www.stangcountry.com/forums/timeslips.php?
I added torque to the list, so I hope you don't mind that at all. Matter of fact, I had a request to add Kilowatts too......
EvilLS1
09-10-2004, 01:33 AM
Nice addition Silverstangs! Link updated.
DSM Turbos
09-10-2004, 01:34 AM
this might be a really stupid question, but i don't understand how to add a template like in the last steps. any help would be great
EvilLS1
09-10-2004, 01:40 AM
this might be a really stupid question, but i don't understand how to add a template like in the last steps. any help would be great
In your admin cp, look under the tab that says "Styles & Templates"... Click Style Manager, then next to your style click the drop down menu and select "Add new Template"... Then in the title box put the template name from the instructions, in the template box put the HTML. Click "save" and thats it.
Dewayne
DSM Turbos
09-10-2004, 01:48 AM
i still can't figure out what is up with it, any help you can give me? I did the template part now.
Todd
http://carolinadsm.com/forum/timeslips.php
EvilLS1
09-10-2004, 01:56 AM
i still can't figure out what is up with it, any help you can give me? I did the template part now.
Todd
http://carolinadsm.com/forum/timeslips.php
It looks like you still haven't added/edited all the templates. If you have more than one style make sure that the new templates have been added to all of them.
If you still can't get it, I can add them for you if you want. Just email me at webmaster@modernmusclecars.net .
DSM Turbos
09-10-2004, 02:25 AM
It looks like you still haven't added/edited all the templates. If you have more than one style make sure that the new templates have been added to all of them.
If you still can't get it, I can add them for you if you want. Just email me at webmaster@modernmusclecars.net .
email sent to you.
Tungsten
09-14-2004, 12:00 PM
Our users are complaining that when you sort by 1/8th mile ET, the results are totally screwy. I can't make heads or tails of it, but it appears that the cars are not being sorted fastest to slowest.
http://www.tennesspeed.net/forums/timeslips.php?&do=eighth
Any ideas?
EvilLS1
09-14-2004, 06:11 PM
Tungsten,
The reason your fields aren't sorting correctly is b/c your timeslip fields got set to text or varchar instead of decimal when you upgraded your vbulletin. Someone else had the same problem earlier.
To fix it, just upload this file to your admincp and run it:
https://vborg.vbsupport.ru/attachment.php?attachmentid=19550
Grant Sherwood
09-21-2004, 08:26 PM
in the navbar template im not finding:
<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
Here is all i have..
<br />
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/vb_bullet.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/vb_bullet.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<td class="vbmenu_control"><a href="timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
<if condition="$bbuserinfo['userid']">
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />
Thanks for your help.
SVTBlackLight01
09-21-2004, 08:49 PM
That part of your navbar template has been modified. It would be where the buttons are now.
Grant Sherwood
09-21-2004, 08:51 PM
So is there a place i can stick it where it will have the same effect?
Grant Sherwood
09-21-2004, 09:26 PM
Also do i have to enable users to use this? Because its only showing up in thier UserCP where they can edit it. theres no link anywhere to look at anyones car info. and when they try to submit there timeslip's it just sends them back to there UserCP where they can edit there info... :-(
Leave it to me to screw stuff up.
EvilLS1
09-21-2004, 10:12 PM
Grant Sherwood,
The part that you add to the navbar template will add a link to the timeslip database in your header so that its easy to access from any page. Your header has been modified so you'll have to experiment with it a little to find out where the link looks best. Or you could just make a timeslips button to put with the rest of your buttons. You can find a button in the other Timeslip Database thread (for vb2).
I just registered at your forum to test and your Timeslip Database is working fine. When you submit your info it forwards you to the timeslips.php page just like its supposed to. Your users can submit their times by clicking the link at the bottom of the timeslips page (http://www.ntsr.org/forums/timeslips.php? ) or by going to their usercp and clicking "edit vehicle profile". You just need to add a link to timeslips.php somewhere and you also need to upload the timeslip icon.
Grant Sherwood
09-21-2004, 10:20 PM
everytime i click "submit your timeslip data" it sends me back to the profile page, then i click save changes then i go look and its still not there. Also for some reason the "slipicon" is trying to pull itslef from http://www.ntsr.org/forums/classic_images/misc//slipicon.gif ..lol, how do i get rid of the extra / ?
Thanks again for your help.
Grant Sherwood
09-21-2004, 10:43 PM
Ok, well i figured out why it wasnt submiting mine, you have to put a 1/4 time in or it wont submit. now all i need to do is fix the f'in icon..
Grant Sherwood
09-21-2004, 10:46 PM
NVM, i got it to work...Thanks for all your help. :-)
Great hack BTW.
EvilLS1
09-21-2004, 10:55 PM
Ok, well i figured out why it wasnt submiting mine, you have to put a 1/4 time in or it wont submit.
You don't have to put in a 1/4 mile ET to submit your info. The default sort method is 1/4 and will only show users who have entered the 1/4 mile time.. but you can view 1/8 mile ETs aswell. Just select 1/8 mile ET from the drop down menu at the top right hand side of the page and it'll list everyone who entered it..
Thanks for all your help. :-)
Great hack BTW.
You're welcome, and thanks. :)
Grant Sherwood
09-21-2004, 10:58 PM
Is there a way to set the default as 1/8th ET? The only 1/4 track around our area is Ennis and its not very close so 90% of the people only have 1/8 ET's.
EvilLS1
09-21-2004, 11:07 PM
In timeslips.php find:
// If no action is set order by quarter
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] ='quarter';
}
Replace it with:
// If no action is set order by eighth
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] ='eighth';
}
find
else
{
$cond.=" WHERE userfield.field55>0";
$condition.=" AND userfield.field55>0";
$orderby="userfield.field55";
$direction=ASC;
$bracket3="<b>[</b>";
$bracket4="<b>]</b>";
}
replace it with
else
{
$cond.=" WHERE userfield.field53>0";
$condition.=" AND userfield.field53>0";
$orderby="userfield.field53";
$direction=ASC;
$bracket5="<b>[</b>";
$bracket6="<b>]</b>";
}
Grant Sherwood
09-21-2004, 11:22 PM
Works Perfectly :banana:
Thanks again.
Grant Sherwood
09-22-2004, 10:40 AM
Ok, i have another question. Alot of members use n2o so they have both N/A and P/A times. Is there a way I can make it where it show's both if they have it? Also, when i try and sort them by N/A, and Usernames yours is the only one that shows up.
EvilLS1
09-22-2004, 07:50 PM
Ok, i have another question. Alot of members use n2o so they have both N/A and P/A times. Is there a way I can make it where it show's both if they have it?
Its not possible to sort by more that one ET at a time so they would just have to choose one or the other.
Also, when i try and sort them by N/A, and Usernames yours is the only one that shows up.
Thats because its sorting N/A 1/4 mile times. Everything is based on 1/4 mile times by default because thats the most popular track length when people discuss drag racing. So when you click "Show N/A cars only" the query selects all members who are N/A and orders by 1/4 mile ET. It has to order by something or else you would just have a mixed list of users not ranked in any specific order.
If you want it to sort N/A cars by 1/8 mile ET instead do this..
In timeslips.php find:
else if ($_REQUEST['do'] == 'na')
{
$condition.=" AND userfield.field65='$natasp' AND userfield.field55>0";
$cond.=" WHERE userfield.field65='$natasp' AND userfield.field55>0";
$orderby="userfield.field55";
$direction=ASC;
$bracket13="<b>[</b>";
$bracket14="<b>]</b>";
}
replace it with:
else if ($_REQUEST['do'] == 'na')
{
$condition.=" AND userfield.field65='$natasp' AND userfield.field53>0";
$cond.=" WHERE userfield.field65='$natasp' AND userfield.field53>0";
$orderby="userfield.field53";
$direction=ASC;
$bracket13="<b>[</b>";
$bracket14="<b>]</b>";
}
zer026
10-03-2004, 03:34 AM
What would be the conditional statement to display a link to a users uploaded
timeslip(just the timeslip not the full "details" page) if they have submitted one from in their vbgarage?
or,
link to the users full "details" page(if they have submitted timeslip data)?
EvilLS1
10-03-2004, 04:27 AM
What would be the conditional statement to display a link to a users uploaded
timeslip(just the timeslip not the full "details" page) if they have submitted one from in their vbgarage?
or,
link to the users full "details" page(if they have submitted timeslip data)?
Adding a link to the details page is easy. Just use a conditional to check if the user has entered something in the 1/4 mile ET field like this:
<if condition="$user[field55] >0">
<a href="member.php?$session[sessionurl]&do=vehicledetails&userid=$id">Timeslip Details</a>
</if>
As for adding a link to the timeslip itself, I believe that would require adding a query to vbgarage.php in order to get the dateline.
I didn't test this but it should work:
In vbgarage.php find:
eval('$commentbits .= "' . fetch_template('vbgarage_commentbits') . '";');
}
Below it add:
$timeslip=$DB_site->query("SELECT dateline
FROM " . TABLE_PREFIX . "customtimeslippic WHERE userid = $id LIMIT 1
");
$result_timeslip = $DB_site->fetch_Array($timeslip);
$tdateline = $result_timeslip[dateline];
Then put this somewhere in your vbgarage_viewgarage template:
<if condition="$tdateline!=''">
<a href="image.php?u=$id&type=timeslip&dateline=$tdateline" target="_blank">View Timeslip <img src="$stylevar[imgdir_misc]/slipicon.gif" border=0></a>
</if>
zer026
10-03-2004, 05:12 AM
Both of your answers worked perfectly! I also must say that was just about the quickest response known to mankind! Your help is massively appreciated.
zer026
10-03-2004, 07:43 AM
When the timeslip input page loads in the userscp, it loads with the usercp menu on the lefthand side. How do I remove the usercp menu when it loads, i.e, just the timeslip edit vehicle profile section loads under the navbar, no lefthand side menu. I know this may sound odd but I would like timeslip usercp section to look uniform with the vbgarage usercp section since I have them linking to each other. Personally I like the lefthand side menu for all the cp sections however vbgarage doesn't incorporate it and there's probably little chance of me contacting magnus as to how to add it.
Any help would once again be greatly appreciated.
EvilLS1
10-03-2004, 08:31 PM
When the timeslip input page loads in the userscp, it loads with the usercp menu on the lefthand side. How do I remove the usercp menu when it loads, i.e, just the timeslip edit vehicle profile section loads under the navbar, no lefthand side menu. I know this may sound odd but I would like timeslip usercp section to look uniform with the vbgarage usercp section since I have them linking to each other. Personally I like the lefthand side menu for all the cp sections however vbgarage doesn't incorporate it and there's probably little chance of me contacting magnus as to how to add it.
Any help would once again be greatly appreciated.
In your "USERCP_SHELL" template find:
$navbar
Below it add:
<if condition="$_REQUEST['do'] != edittimeslip">
Find:
<!-- main page contents -->
$HTML
Above it add:
</if>
zer026
10-03-2004, 11:30 PM
And again it worked perfectly. Thanks so much for your fantastic support for your Timeslip mod. I'm sure my members are going to love it when the rest of the forum is finished. Thanks Again!:)
EvilLS1
10-06-2004, 04:38 AM
You're welcome. :)
94supratt
10-15-2004, 09:35 PM
nm found it
Shadowgate
10-23-2004, 06:01 PM
I was curious if there was a way to allow super moderators to edit the timeslip fields in the user profiles?
Thanks!
EvilLS1
10-23-2004, 09:43 PM
I was curious if there was a way to allow super moderators to edit the timeslip fields in the user profiles?
Thanks!
The only way would be to give super mods the ability to edit all user options.
Shadowgate
10-24-2004, 12:25 AM
The only way would be to give super mods the ability to edit all user options.
And that wouldn't be such a good idea...
Bummer! Thanks for the response anyways!
dominick32
10-27-2004, 09:35 PM
Installed.
Thank you so much man!
Great hack!
EvilLS1
10-27-2004, 10:56 PM
Installed.
Thank you so much man!
Great hack!
Thank you. :)
klaattu
11-08-2004, 01:40 AM
So far this instalation has been a nightmare let me explain:
Foirst I had the old Time Splips on vb2.35. worked perfectly (i even translated it)
But the problem is that I had fileds 57 58 59 used for another profile fields.
So I dropped them in Php my admin then DARN vbulletin had a lot of errors because I cpuld not erase the fields since It kept lloking for the dropped fields on the DB.
I re added the fields 57 58 59 and I deleted them via Cp on Vbulletin.
then I said what the heck Ill erase the whole thing to id 50 so fields from 50 to 65 would be "availiable"
I mede the whole hack (took my time and now I am stuck here:
Database error in vBulletin 3.0.3:
Invalid SQL: INSERT INTO settinggroup (grouptitle,displayorder,volatile) VALUES ('timeslips','900','0')
mysql error: Duplicate entry 'timeslips' for key 1
mysql error number: 1062
I have checked the table settinggroup and there is NO timeslips field so Im stuck there, I have deleted anything that has to do with the original Tslips but to no avail now I have a databse that resembles a Gruyere cheese and no one can register because the user profile fields are scrambled.
(one note I started with the Td installer for upgrades from 1.2 to 2.0 and it sent me an error with fields so thats is why I began erasing custom profile fields)
I think Ill resptore my database but I really like this hack..
any help would be appreciated
EvilLS1
11-08-2004, 02:08 AM
klaattu,
That error is due to the TDinstaller being ran more than once. Some of the settings fields were probably created before you got the error about the profile fields, thus the duplicate field error.
Try this: If you haven't already done so, restore your database to the state it was prior to running the installer. Login to your admincp and manually remove fields 50-65 in the profile field manager. Just to be sure, use phpmyadmin to make sure that all fields/columns with IDs from 50-65 have been removed from both the profilefield and userfield tables. Now use the instructions for installing v2.1. The installer should now run flawlessly.
If you still can't get it working I'd be happy to set it up for you. Email me at webmaster@modernmusclecars.net.
klaattu
11-08-2004, 11:35 AM
klaattu,
That error is due to the TDinstaller being ran more than once. Some of the settings fields were probably created before you got the error about the profile fields, thus the duplicate field error.
Try this: If you haven't already done so, restore your database to the state it was prior to running the installer. Login to your admincp and manually remove fields 50-65 in the profile field manager. Just to be sure, use phpmyadmin to make sure that all fields/columns with IDs from 50-65 have been removed from both the profilefield and userfield tables. Now use the instructions for installing v2.1. The installer should now run flawlessly.
If you still can't get it working I'd be happy to set it up for you. Email me at webmaster@modernmusclecars.net.
thanks a lot will do exactly that today and Ill let you know..
best regards
klaattu
11-08-2004, 03:46 PM
ok here is where I am:
on Admin Cp the user fields only go from 1 to 8 (if I try to add a new one it makes it 57!-as that ok?)
well its empty...
On the Database the userfields I have this: (see image 1) I have a field called temp I dont know where it came from and also I saw its empty en ithe database???? does the hack create it, is it safe to delete it?
ok so on cpadmin I dont have any fields from 50 to 65 and the databese has no 50 to 65 on useffierlds table also I ERASED completelly the table timeslipspic or something like it so there wont be any duplicate..
Before I hack de Db should I do something? I remember it gave me a error regarding INSERTO settinggroip (I have cjequed that table but there is no entry or field for timeslips?????? SEE picture.
any help will do because I don t want to rehack the DB to get some other error and be fixing it for 2 hours....
thanks again
EvilLS1
11-08-2004, 08:35 PM
ok here is where I am:
on Admin Cp the user fields only go from 1 to 8 (if I try to add a new one it makes it 57!-as that ok?)
well its empty...
On the Database the userfields I have this: (see image 1) I have a field called temp I dont know where it came from and also I saw its empty en ithe database???? does the hack create it, is it safe to delete it?
The temp field is not from this hack.
ok so on cpadmin I dont have any fields from 50 to 65 and the databese has no 50 to 65 on useffierlds table also I ERASED completelly the table timeslipspic or something like it so there wont be any duplicate..
Before I hack de Db should I do something? I remember it gave me a error regarding INSERTO settinggroip (I have cjequed that table but there is no entry or field for timeslips?????? SEE picture.
any help will do because I don t want to rehack the DB to get some other error and be fixing it for 2 hours....
thanks again
If you've restored the backup of DB to the state it was in before you ran the installer all of the settings and anything to do with the new version (2.X) of the timeslip hack should be gone (the previous versions didn't add any settings to the admincp). Once thats done, and fields 50-65 are clear, you should be able to run the script without errors.
klaattu
11-09-2004, 01:28 AM
The temp field is not from this hack.
If you've restored the backup of DB to the state it was in before you ran the installer all of the settings and anything to do with the new version (2.X) of the timeslip hack should be gone (the previous versions didn't add any settings to the admincp). Once thats done, and fields 50-65 are clear, you should be able to run the script without errors.
OK I DID IT!!!! OMG I cant believe it I had to hack my database and remove all entries with timeslips (you are a very organized guy it was time consuming and quite easy a soon as I ran the succsesful installer I had up and running in 5 minutes.....
THANKS A LOT
and you can check it (with only one record now) at:
http://www.auto-mania.com.mx/foro/upload/timeslips.php?
now Ill add the hack to my portal page and one last question when I press 1/4 de milla (quarter of mille on the nav bar) while I am at the Vbadvanced it takes me to the root folder and looks for timeslips.php so I get a NOT found also It happens in my photopost navbar. If I click on the forum it lloks into the vb folder so it works... any hints on how to fix this small prob?
Best regards
EvilLS1
11-09-2004, 01:43 AM
Glad ya got it working. :)
To fix the problem with the navbar links in your navbar template find this:
<td class="vbmenu_control"><a href="timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
Replace it with this:
<td class="vbmenu_control"><a href="$vboptions[bburl]/timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
Dewayne
KidCharlemane
11-09-2004, 05:42 PM
I read the majority of this post and didn't see this problem mentioned... hopefully I didn't miss it.
Single digit timeslips are being sorted to the end. I have some guys with 7 second timeslips on my page that are being listed last while the 10.00 guys are listed first.
Also, the "sort by single digit ETs" doesn't seem to work.
Has there been a fix for this?
** EDIT ** Adding a 0 before the single digit times makes them show up correctly. Hopefully this is an easy fix.
We're using the hack at http://t6p.com/forums/timeslips.php
Thanks!
EvilLS1
11-09-2004, 08:34 PM
From the first post:
For those who have recently upgraded to vB 3.0.2 or later: If you're having trouble with timeslips.php showing all users (regardless if they have an ET) or it not sorting correcty, Read This! (https://vborg.vbsupport.ru/showpost.php?p=529402&postcount=274)
KidCharlemane,
Check the second paragraph of this post:
https://vborg.vbsupport.ru/showpost.php?p=529402&postcount=274
Upload and run TD302.php. That will solve both of the sorting problems.
KidCharlemane
11-10-2004, 12:09 AM
From the first post:
KidCharlemane,
Check the second paragraph of this post:
https://vborg.vbsupport.ru/showpost.php?p=529402&postcount=274
Upload and run TD302.php. That will solve both of the sorting problems.
Excellent.. thanks.. I scanned like 200 replys of this message and never saw the solution. Glad to see it's been fixed. For a car forum, the villagers love this hack.
EvilLS1
11-10-2004, 12:55 AM
Excellent.. thanks.. I scanned like 200 replys of this message and never saw the solution. Glad to see it's been fixed. For a car forum, the villagers love this hack.
Always check the first post. ;) I try to keep this hack as bug free as possible and whenever I find something that needs to be fixed I'll always make a note of it in the first post and send out an update notice to those who clicked install.
{edit} Nice website btw.. I love GNs and T-Type Regals. Best sleepers ever. :)
Dewayne
integra99
11-10-2004, 03:02 AM
Always check the first post. ;) I try to keep this hack as bug free as possible and whenever I find something that needs to be fixed I'll always make a note of it in the first post and send out an update notice to those who clicked install.
{edit} Nice website btw.. I love GNs and T-Type Regals. Best sleepers ever. :)
Dewayne
My DSM will pull your LS1
:D
EvilLS1
11-10-2004, 03:04 AM
My DSM will pull your LS1
:D
Oh yeah? Whats it run in the 1/4? I'll post my slip if you'll post yours. ;)
PranK
11-11-2004, 10:29 PM
Hey Dewayne,
I have just re-installed my forums and a heap of hacks and I am getting a plank page on profile/php?do=edittimeslip. timeslips.php displays correctly tho and I have modified the templates to use my fields 80-96 as opposed to 50-56 (or whatever they are).
The only thing I can think of is that I didn't have 'modifytimeslip' before or the 'custom timeslip pic' db table... maybe i have skipped a crucial 'upgrade' step or something... any help?
Thanks mate.
Christian
EvilLS1
11-11-2004, 10:42 PM
Christian,
Check and make sure that you added this bit of code to profile.php:
// ############################### EDIT VEHICLE PROFILE #######################
if ($_REQUEST['do'] == 'edittimeslip')
{
if ($bbuserinfo[userid]==0 or $bbuserinfo[tdban]==0)
{
print_no_permission();
}
unset($tempcustom);
exec_switch_bg();
// Get Custom profile fields
$customfields = array();
fetch_timeslipfields(0);
if ($vboptions[allowtimeslipupload]){
$timeslippic = $DB_site->query_first("
SELECT userid, dateline
FROM " . TABLE_PREFIX . "customtimeslippic
WHERE userid = $bbuserinfo[userid]
");
if ($timeslippic)
{
$timeslippicchecked[1] = HTML_CHECKED;
$timeslippicchecked[0] = '';
}
else
{
$timeslippicchecked[1] = '';
$timeslippicchecked[0] = HTML_CHECKED;
}
}
// draw cp nav bar
construct_usercp_nav('vehicleprofile');
$navbits[''] = $vbphrase['edit_timeslip'];
$templatename = 'modifytimeslip';
}
// ############################### start update ###############################
if ($_POST['do'] == 'updatevehicleprofile')
{
if ($bbuserinfo[userid]==0 or $bbuserinfo[tdban]==0)
{
print_no_permission();
}
$userfields = verify_vehiclefields(0);
// insert custom user fields
if (!empty($userfields))
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET userid=$bbuserinfo[userid]$userfields WHERE userid=$bbuserinfo[userid]");
}
if ($vboptions[allowtimeslipupload]){
globalize($_POST, array('timeslippic' => INT, 'avatarurl' => STR));
if ($timeslippic==1)
{
require_once('./includes/functions_upload.php');
process_image_upload('timeslippic', $avatarurl);
}
else if ($timeslippic==0)
{
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "customtimeslippic WHERE userid = $bbuserinfo[userid]");
}
}
$url = "timeslips.php?$session[sessionurl]";
eval(print_standard_redirect('redirect_updatethank s'));
}
If it still doesn't work, check the spelling of the template name and the contents of the modifytimeslip template.
PranK
11-11-2004, 10:57 PM
Hey Dewayne,
Checked all and its all there with correct spelling, I changed all the field numbers to correspond with mine. Any other thoughts?
Christian
EvilLS1
11-11-2004, 11:14 PM
Do you get a completely blank (white) page or does the header and footer show up but not the timeslip input fields?
PranK
11-11-2004, 11:19 PM
completely blank... if i view source, all i get is this;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
EvilLS1
11-11-2004, 11:36 PM
About the only thing I can think of that would cause a blank page is either a missing or misspelled template, or missing a file edit somewhere. I'm at work right now and can't do much from here, but when I get home tonight (12pm est) I can take a look at it if you want. Just email or PM me at 12pm. In the mean time, double check those file edits and make sure that nothing was missed. If you have more than one style make sure the template was added to all of them.
PranK
11-11-2004, 11:44 PM
ok cool - thanks mate, i appreciate it.
EvilLS1
11-12-2004, 03:56 AM
Christian,
I just logged in to your forum and I noticed that you also get blank pages when you try to edit your signature, profile, options, email, avatar, and just about everything else thats called from profile.php. This leads me to believe that something else is causing it.
First, make sure you uploaded profile.php in ASCII mode. If it still doesn't work try uploading a fresh unhacked profile.php and see if you still get blank pages when editing signatures or options in the usercp.
If it still gives blank pages (with the unhacked profile.php) try some of the suggestions in this thread:
http://www.vbulletin.com/forum/showthread.php?threadid=51808
PranK
11-12-2004, 07:43 AM
oh man, i cant believe how dumb i am, i didn't even check the other links... thanks Dewayne, I'll give it a go.
icedewd
11-28-2004, 04:50 PM
I just installed this mod and i must say that i love it!!!! Could you add a link to
http://www.turborides.com/forums/timeslips.php
I am using vbportal as the main site and i was wondering if you know of a way to incorporate say the top 10 on the main portal page? Do you have a page that will just pull the top 10 from the database?
I would love to have this on the main page!!!
This Rocks!!!
Mike
Www.TurboRides.Com (http://www.turborides.com)
EvilLS1
11-28-2004, 10:15 PM
Mike,
Glad you like it. We have add-ons to display the top 5 times on vbindex, vbadvanced, and vbadvanced cmps. I have no way to test it on vbportal as I don't use it, but if you have basic knowledge of php it should be really easy to make it work with vbportal by using the code from one of the other portal add-ons. You'd just have to experiment a little. To make it show the top 10 instead of 5 just change the LIMIT 5 in the query to LIMIT 10.
Added your link btw.
Dewayne
Silver_2000_)!
12-02-2004, 12:28 PM
In admincp/usergroup.php find:
print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
Below it add:
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']);
In includes/init.php find:
'caneditownusernotes' => 131072
Replace it with:
'caneditownusernotes' => 131072,
'cantimeslip' => 262144
In profile.php find:
if ($_REQUEST['do'] == 'edittimeslip')
{
Below it add:
if (!($permissions['genericpermissions'] & CANTIMESLIP))
{
print_no_permission();
}
Then just set the permission for each usergroup.
The edit vehicle profiole and view custom threads options are linked - it is NOT possible to set edit to NO and voew to yes....
Any ideas ??
Silver_2000_)!
12-03-2004, 02:56 AM
It seems that the settings for "Can edit Vehicle Profile?" and "Can View Private Custom Fields" options are linked - The ONLY way i can get both to says YES is to ONLY check the top one.
Also if I try to make the RIDES field required it drops off the http://www.url/forum/profile.php?do=edittimeslip page - it just disappears...
Actually ANY field I try to make required disappears - BUT when you try to submit it tells you "You have not completed the required field "Track Name" and of course you cant see the field ... LOL
Doug
EvilLS1
12-03-2004, 04:06 AM
Doug,
Is the "Can view custom private fields" something you added with another hack? The reason I ask is because I can't seem to find that option in my usergroup manager. Let me know and I'll try to fix it for you.
{edit} Nevermind, it seems that the "Can View Private Custom Fields" option is fairly new and isn't in my version (3.0.1).. I'm looking into it now.
Also if I try to make the RIDES field required it drops off the http://www.url/forum/profile.php?do=edittimeslip page - it just disappears...
Actually ANY field I try to make required disappears - BUT when you try to submit it tells you "You have not completed the required field "Track Name" and of course you cant see the field ... LOL
Thats because the vehicle profile is meant to be completely separate and the fields were not intended to be used on the register page or made required.
EvilLS1
12-03-2004, 04:38 AM
The edit vehicle profiole and view custom threads options are linked - it is NOT possible to set edit to NO and voew to yes....
Any ideas ??
Ok, I think I found the problem. It seems that the "can view custom private fields" option is fairly new and isn't in the version I'm using.
To fix it, undo the changes you made to includes/init.php
Then find this:
'canseehiddencustomfields' => 262144,
Replace it with this:
'canseehiddencustomfields' => 262144,
'cantimeslip' => 16777216,
Godzilla MR2
12-04-2004, 03:09 PM
great hack!
http://www.mr2oc.com/timeslips.php?
Is there a way to upload times from years gone by?
http://www.mr2ownersclub.com/quartermile/
We have guys that have run in the 9s in Japan, and have proof, but they are not members of our forum. Also some of the slips and cars are either dead or sold. So it would be great if we could add those cars and times.
Also how would I be able to add a column for videos. We are finding that Photoshop is a great quarter mile editor. Video is a bit harder to fake. So we have been thinking of requiring video proof of super~duper fast times.
Bill Strong
www.V8MR2.com
EvilLS1
12-04-2004, 10:08 PM
Bill,
Its not possible for the timeslips page to sort more than one timeslip per user. You could add an extra input area on the edit timeslip page (like the area for listing mods) so that your users can mention other vehicles/timeslips. It would be shown on the "details" page but not the main timeslips page.
As for the video, you could add an input box where users can post a link to a video, and then have a clickable icon on the timeslips page and vehicle profile page so that people can download it.
If you have basic knowledge of php you can get an idea of how to add extra fields to the timeslip page from the example in this post:
https://vborg.vbsupport.ru/showpost.php?p=524771&postcount=247
That ^ shows how to add a select box and sort by it, so you wouldn't want to actually use those exact instructions since you want an input field.. but looking at it should give you an idea of how to do it.
Silver_2000_)!
12-06-2004, 10:24 PM
Ok, I think I found the problem. It seems that the "can view custom private fields" option is fairly new and isn't in the version I'm using.
To fix it, undo the changes you made to includes/init.php
Then find this:
'canseehiddencustomfields' => 262144,
Replace it with this:
'canseehiddencustomfields' => 262144,
'cantimeslip' => 16777216,
Thanks Evil that seems to have fixed the profile issue .. two more questions....
When I set the options to require a timeslip under 11.99 it doenst seem to work. I can post a 10.000 second time and it doenst prompt for anything
When the options to upload a timeslip is set to yes the field to enter a link to a time slip disappears .. I figure this is normal BUT how is a user supposed to upload a slip ? There is no prompt - I have a separate photo gallery they can upload to, so its not an urgent issue - just wondering.
Edit - After setting "Allow users to upload timeslips?" back to NO Uploads NOW you are prompted for timeslip for times under 11.99. It appears that the upload is broke and the prompt only occurs for links to timeslips...
Could this have been broken by the new version as well ???
Doug
PS- I may have jacked something up because I think I had the 2.0 version and didnt run the upgrade I did the 2.1 install because I a few months ago I had replaced all the files with Virgin VB files and had to reapply the worthy hacks.. I had to go back and run the upgrade script to get it working. The upgrade script had a couple errors
EvilLS1
12-06-2004, 10:31 PM
Thanks Evil that seems to have fixed the profile issue .. One more question....
When I set the options to require a timeslip under 11.99 it doenst seem to work. I can post a 10.000 second time and it doenst prompt for anything
Could this have been broken by the new version as well ???
DOug
What browser are you using? Its most likely something to do with the browser since the prompt is done with javascript. Can you give me a link to try it out for myself?
EvilLS1
12-06-2004, 10:33 PM
Wghen the options to upload a timeslip is set to yes the field to enter a link to a time slip disappears .. I figure this is normal BUT how is a user supposed to upload a slip ? There is no prompt - I have a separate photo gallery thety can upload to, so its not an urgent issue - just wondering
Doug
Yeah when its set to upload mode the links input field should disappear. Thats normal. But once upload mode is enabled you should see the option to upload a slip in the edit vehicle profile page (at the bottom) like this:
https://vborg.vbsupport.ru/attachment.php?attachmentid=18977
EvilLS1
12-06-2004, 10:47 PM
Edit - After setting "Allow users to upload timeslips?" back to NO Uploads NOW you are prompted for timeslip for times under 11.99. It appears that the upload is broke and the prompt only occurs for links to timeslips...
Could this have been broken by the new version as well ???
Doug
PS- I may have jacked something up because I think I had the 2.0 version and didnt run the upgrade I did the 2.1 install because I a few months ago I had replaced all the files with Virgin VB files and had to reapply the worthy hacks.. I had to go back and run the upgrade script to get it working. The upgrade script had a couple errors
That would explain it. In order for the new features in v2.1 to work (uploading, etc) you'd have to run the upgrade script successfully.
Silver_2000_)!
12-07-2004, 12:43 PM
That would explain it. In order for the new features in v2.1 to work (uploading, etc) you'd have to run the upgrade script successfully.
The error is mysql error: Table 'customtimeslippic' already exists I guess I could try to back out the hack including deleting the table BUT that would eliminate the users data that have uploaded so far.
Im running both IE 6 and Firefox - The timeslips are here
http://www.talonclub.com/forum/timeslips.php?
I pm'ed a username and password so you can try it
Carnage Media
12-07-2004, 07:07 PM
Here is one I'm getting
Database error in vBulletin 3.0.3:
Invalid SQL: UPDATE userfield SET userid=1, field60 = '', field61 = '', field62 = '', field63 = '', field64 = '', field65 = '', field58 = '', field59 = '' WHERE userid=1
mysql error: Unknown column 'field60' in 'field list'
mysql error number: 1054
I upgraded from vb2 to vb3 and then used the upgrade script with new field ID's.
EvilLS1
12-07-2004, 09:30 PM
Silver 2000,
Check your PMs.
Carnage,
Did you have v1.X of the Timeslip Database installed when you were running vb2? If so, did you remove the old fields completely and then follow the instructions for installing v2.1? As I've said before, its not a good idea to try and save the old VB2 fields from v1.X. You would be better off to remove the old fields completely, then do a fresh install and have your members re-enter the data. If you need help removing all the old timeslip stuff from the db just PM me.
RapCheck
12-08-2004, 10:55 AM
Installed VERY smooth on http://www.car-lounge.net
Nice hack!
bandit022
12-12-2004, 05:28 PM
Dewayne,
I am trying to reinstall a fresh copy of the Timeslip Database, but i'm not sure how to go about deleting all of the database entries.
any help is greatly appreciated.
-jeff
EvilLS1
12-12-2004, 11:17 PM
Rapcheck,
Thank you. Glad you like it.
Jeff,
Check your PMs.
pgp2003
12-14-2004, 11:14 PM
disregard
pgp2003
12-15-2004, 12:09 AM
figured that one out.. now I get this one
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/nostree/public_html/forums/member.php(270) : eval()'d code on line 62
61 require_once('./global.php');
62 require_once('./includes/functions_showthread.php');
63 require_once('./includes/functions_user.php');
edit: okay... something's wrong here
268 $navbits = construct_navbits(array('' => $vbphrase['vehicle_profile']));
269 eval('$navbar = "' . fetch_template('navbar') . '";');
270 eval('print_output("' . fetch_template($templatename) . '");');
EvilLS1
12-15-2004, 01:07 AM
Most of the time a parse error means that the code was copied and pasted incorrectly. Try re-doing the file edits to member.php making sure that you don't miss anything. Also, what are you using to edit the files? Some programs don't work well for editing php files and could cause a parse error. Notepad will work fine.
pgp2003
12-15-2004, 01:09 AM
Thanks for the quick replay.. I am gonna redo the file with notepad.. was using wordpad... didnt anything else fine thu.. hm... i'll try redoing member.php and will let u know..
pgp2003
12-15-2004, 01:19 AM
I did everything all over again... twice.. once in notepad, and once in dreamweaver.. no luck :(
EvilLS1
12-15-2004, 01:21 AM
I did everything all over again... twice.. once in notepad, and once in dreamweaver.. no luck :(
If you want to send me your unedited member.php file I will apply the edits and email it back to you. My email address is webmaster@modernmusclecars.net
pgp2003
12-15-2004, 01:23 AM
I have to go back and redo it... lol.. stupid me forgot to save the unedited file... I did the medal award, and then this one withouth backing up the first one... i'll see what i can do.. thanks for the offer
pgp2003
12-16-2004, 03:05 AM
thanks again for looking at my code..
redid the whole thing all over again, and no workie.. I ended up making my line 270 a comment and it got rid of the error code and everything seems to be working fine.. donno if i am missing something thu
this is what i have now
268 $navbits = construct_navbits(array('' => $vbphrase['vehivle_profile']));
269 eval('$navbar = "' . fetch_template('navbar') . '";');
270 // eval('print_output("' . fetch_template($templatename) . '");');
EvilLS1
12-16-2004, 03:28 AM
pgp2003,
With line 270 commented out the vehicle details page won't show up.
Lets try one more thing and see what happens.
In member.php find this:
$templatename= 'getvehicleinfo';
...and delete it.
Now find this:
$navbits = construct_navbits(array('' => $vbphrase['vehicle_profile']));
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template($templatename) . '");');
}
Replace it with this:
$navbits = construct_navbits(array('' => $vbphrase['vehicle_profile']));
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('getvehicleinfo') . '");');
}
Also make sure you added the getvehicleinfo template.
pgp2003
12-16-2004, 04:42 AM
that gives me the same error i used to get:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/nostree/public_html/forums/member.php(270) : eval()'d code on line 62
but with what i did in my previous post it works perfect with out that error.. all the functions are working just fine :shrug:
pgp2003
12-16-2004, 04:43 AM
I turned board on so you can see yourself.. the details are showing allright
http://www.nostreetracing.org/forums/timeslips.php?
EvilLS1
12-16-2004, 04:49 AM
Well, as long as its working OK then I guess theres no need to worry about it. Looks good to me. :)
Dewayne
pgp2003
12-16-2004, 04:50 AM
Thanks a bunch man... much appreciated.. I will be installing that in my other board at www.eclubvw.com soon as well.. I love this hack.. simply amazing
StretchNutz
12-16-2004, 11:07 PM
installed, thanks for the badass hack!!!!
forum link:
http://host41.hrwebservices.net/%7Ewacostr/forums/
timeslips link:
http://host41.hrwebservices.net/~wacostr/forums/timeslips.php?
EvilLS1
12-17-2004, 12:14 AM
Y/W. Added your link. :)
black04gt
12-20-2004, 09:53 PM
ok i followed your directions exactly!!!!! and everything works ...you click submit to add your info to the database and bingo... nothing shows up????
http://www.tbmustangs.com/forum/timeslips.php?
im not sure whats up... is the info not getting to the database???
anyone else had this prob?
thanks for any inputs
David
pgp2003
12-20-2004, 10:06 PM
ok i followed your directions exactly!!!!! and everything works ...you click submit to add your info to the database and bingo... nothing shows up????
http://www.tbmustangs.com/forum/timeslips.php?
im not sure whats up... is the info not getting to the database???
anyone else had this prob?
thanks for any inputs
David
samething happened to me the first time i installed it.. what text editor did you use?
black04gt
12-20-2004, 10:10 PM
i used the internal editor that came with my website....
EvilLS1
12-21-2004, 12:27 AM
ok i followed your directions exactly!!!!! and everything works ...you click submit to add your info to the database and bingo... nothing shows up????
http://www.tbmustangs.com/forum/timeslips.php?
im not sure whats up... is the info not getting to the database???
anyone else had this prob?
thanks for any inputs
David
When I view your timeslips page I get:
mysql error: Unknown column 'userfield.field55' in 'where clause'
Did you remove the fields or something?
Otherwise if you were just getting a blank page check the spelling of the template names. ie. timeslipsbit not timeslipbit.
black04gt
12-21-2004, 12:42 AM
ok checking now....
ohhhhh it works... but the proib was i didnt enter a 1/4 time so i didnt show up.... sooo how do i have it list HP first as default???
thanks for the help
EvilLS1
12-21-2004, 12:45 AM
ok i followed your directions exactly!!!!! and everything works ...you click submit to add your info to the database and bingo... nothing shows up????
http://www.tbmustangs.com/forum/timeslips.php?
im not sure whats up... is the info not getting to the database???
anyone else had this prob?
thanks for any inputs
David
I just checked again and it seems to be working fine.
Keep in mind that the default sort method is 1/4 mile ET. If nothing is entered in the 1/4 mile ET field it won't list your car. You entered an 1/8 mile ET so in order to see your time you'll have to select sort by 1/8 mile ET or MPH.
Take a look:
http://www.tbmustangs.com/forum/timeslips.php?&do=eighth
EvilLS1
12-21-2004, 12:49 AM
I just submitted my timeslip info to test it. Its working fine. You can remove my slip info by clicking "details" then click "user options".. Then just remove all of my data.
MR-2ZZ
12-25-2004, 06:52 PM
Fatal error: Call to undefined function: fetch_timeslipfields() in /usr/home/mlee/html-dc/forums/profile.php on line 723
I am getting this error, also in the user CP the link is showing up as a black box :(
MR-2ZZ
12-25-2004, 07:07 PM
Fixed the problem ;)
MR-2ZZ
12-25-2004, 07:22 PM
Any updates on the multiple timeslips?
EvilLS1
12-25-2004, 07:32 PM
Any updates on the multiple timeslips?
Not yet. Haven't had much free time to work on hacks lately. :(
MR-2ZZ
12-25-2004, 08:01 PM
I know how that is. Awesome mod none the less. I just got a new car and wanted to update everything :)
StretchNutz
01-07-2005, 01:34 AM
A mod I'd like to see would be if we could get a few specific custom designations for users who are the highest in certain categories in the list, like "Quickest E.T.!", "Top Launcher", "Most Horsepower", etc or even one at the bottom for "Slowest E.T." ;)
Let me know if this could be implemented in the postbits in the same way the mod to this hack shows the "xx second club" under the user title, which I have installed already... :up:
EvilLS1
01-07-2005, 04:24 AM
A mod I'd like to see would be if we could get a few specific custom designations for users who are the highest in certain categories in the list, like "Quickest E.T.!", "Top Launcher", "Most Horsepower", etc or even one at the bottom for "Slowest E.T." ;)
Let me know if this could be implemented in the postbits in the same way the mod to this hack shows the "xx second club" under the user title, which I have installed already... :up:
Interesting idea. I think you'd have to add queries to showthread to make it work though, which wouldn't be worth it IMHO.
tbroush
01-10-2005, 04:26 PM
Hey EvilS1,
I just upgraded to VB 3.0.5 and I re-did the hack and now when a user try to update their profile or submit we are getting a blank page. Help
Thanks
joeychgo
01-10-2005, 05:30 PM
I havent upgraded to 3.05 yet - did you reinstall the hack totally?
PKRWUD
01-10-2005, 05:37 PM
Hey there Evil, long time, no see. :)
I'm having a problem now too, but I'm sure it's something stupid I did.
I doubt you remember me, but I'm one of the many that you took extra time to help last year with this hack/program (v2.0). With your help, it worked perfect. Didn't have a single problem until the other day, after I upgraded to 3.0.5.
I never upgraded to vBTSD 2.1, so I figured since the vB upgrade wiped out any hacks anyway, this was as good a time as any. I downloaded both the upgrade and the complete version, ran the upgrade script, made the file edits as instructed in the complete versions instructions (figured it made more sense since any edits I made before were erased when I upgraded vB to 3.0.5), and edited the templates according to the upgrade instructions. Everything seemed to go well, except now when I go to view it, I get a 48 page list of every member, with the ones that actually submitted data to the TSD on the last 3 pages.
I don't think you need to be a member to check it out, but I believe you still are one at my site. If you have trouble, let me know, and I'll set you up. If you have a minute and want to see what I'm talking about, here's a direct link...
http://www.ricehatersclub.com/vbulletin/timeslips.php?
Any thoughts?
Take care,
~Chris
joeychgo
01-10-2005, 05:44 PM
love your site PKRWUD ~~
:D
PKRWUD
01-10-2005, 06:12 PM
love your site PKRWUD ~~
:D
Thanks!!!
:)
tbroush
01-10-2005, 07:22 PM
I havent upgraded to 3.05 yet - did you reinstall the hack totally?
Well no just update the php files, everything was still there.
EvilLS1
01-10-2005, 08:16 PM
PKRWUD,
Upload this script to your admincp directory and run it. That should fix your problem.
https://vborg.vbsupport.ru/attachment.php?attachmentid=19550
scroush,
If you will set me up a test account and PM me the login info I'll try to figure out whats causing your problem when I get home from work tonight (12:00pm est).
PKRWUD
01-10-2005, 09:44 PM
You ROCK Evil! :)
Thanks again!!!
EvilLS1
01-11-2005, 03:01 AM
PKRWUD,
I noticed that the little icon for the timeslip picture doesn't show up on your timeslips.php page after I uploaded a new timeslip. The icon shows on the details page and the slip shows up in the edit vehicle profile page so I think you just missed a template edit to timeslipsbit when you upgraded. If you replace your timeslipsbit template with the new one it should work.
scroush,
Check your PMs.
Dewayne
PKRWUD
01-11-2005, 07:59 AM
PKRWUD,
I noticed that the little icon for the timeslip picture doesn't show up on your timeslips.php page after I uploaded a new timeslip. The icon shows on the details page and the slip shows up in the edit vehicle profile page so I think you just missed a template edit to timeslipsbit when you upgraded. If you replace your timeslipsbit template with the new one it should work.
Dewayne
Hmmm. You're right. I hadn't noticed that. I just double checked the timeslipsbit template, and I did change it. Still, because it's easy to miss a comma, or such, somewhere, I copied and pasted the code from the instructions again, and the image still doesn't show up in your row. I can see it on your details page, but not the main page. There are others that have the image on the main page, so why doesn't it show up in your row? See, and I thought everything worked perfect. lol. ;)
EvilLS1
01-11-2005, 08:09 AM
Hmmm. You're right. I hadn't noticed that. I just double checked the timeslipsbit template, and I did change it. Still, because it's easy to miss a comma, or such, somewhere, I copied and pasted the code from the instructions again, and the image still doesn't show up in your row. I can see it on your details page, but not the main page. There are others that have the image on the main page, so why doesn't it show up in your row? See, and I thought everything worked perfect. lol. ;)
The reason the others show up is because they just have a link to the slip.. Mine is uploaded.
Wierd... You did upload the new timeslips.php for v2.1 right? If so, and your timeslipsbit template contains the following code it should work:
<if condition="$tdateline!=''">
<a href="image.php?u=$userinfo[userid]&type=timeslip&dateline=$tdateline" target="_blank"><img src="$stylevar[imgdir_misc]/slipicon.gif" border=0></a>
<else />
$slip
</if>
PKRWUD
01-11-2005, 08:19 AM
lol. Man, this is why I build engines better than I build websites. It would seem that I failed to upload the new timeslips.php file. I just did, and all seems to be well with the universe again. :)
Sorry about that.
Thanks again for your help!
EvilLS1
01-11-2005, 08:22 AM
No problem. Thanks for verifying that the TD works on 3.0.5. :)
PKRWUD
01-11-2005, 10:11 AM
My pleasure. It's the least I could do for all the help you've given me in the past! :)
EvilLS1
01-17-2005, 06:54 AM
For those of you who have muscle car or pony car related sites and need some traffic, I've just set up a topsites script called "Top Modern Musclecar Sites". Feel free to submit your site if you'd like.
http://modernmusclecars.net/topsites/index.php?a=display
PKRWUD
01-17-2005, 09:58 AM
Cool idea. :)
Limey-YMR
01-18-2005, 04:57 AM
Cool, our Mustang registry was "removed" from Stangnet's voting page because we complained about the obvious vote rigging going on, hopefully you have something that records the IP address of voters in the database and uses cookies too, since web browser proxying (diddling the cookie en route, modifying the POST request etc) is pretty trivial nowadays.
EvilLS1
01-18-2005, 05:23 AM
Cool, our Mustang registry was "removed" from Stangnet's voting page because we complained about the obvious vote rigging going on, hopefully you have something that records the IP address of voters in the database and uses cookies too, since web browser proxying (diddling the cookie en route, modifying the POST request etc) is pretty trivial nowadays.
I've never used a top sites script before so I'm not sure exactly how "cheat-proof" my list is.. But FWIW it is based on unique hits in and gets reset automatically each month so that new sites have a chance for a high rank.
webnx
01-19-2005, 05:09 AM
This looks like a very nice script, I looked over / searched this thread w/o much luck. is there any way to make sub cats? I am in the process of moving over from phpbb, and the current way we have the 1/4 mile times listed is in sections. eg
1. top 50 1/4
2. top 25 N/A 16v
3. top 25 F/I 16v
and so on. is there any way to do this? Thanks for your time!
Dan
EvilLS1
01-19-2005, 05:45 AM
This looks like a very nice script, I looked over / searched this thread w/o much luck. is there any way to make sub cats? I am in the process of moving over from phpbb, and the current way we have the 1/4 mile times listed is in sections. eg
1. top 50 1/4
2. top 25 N/A 16v
3. top 25 F/I 16v
and so on. is there any way to do this? Thanks for your time!
Dan
It would take some work but it can be done. You'd have to add new select fields (i.e. N/A 16V, F.I. 16V) in your admincp and then add a couple more sort options to timelips.php. You'd also need to add in the new field IDs to the queries in the edits you made to the functions files and profile.php.
webnx
01-19-2005, 02:13 PM
would you be willing to do this for a fee? I have very little php skills. Thanks
Dan
It would take some work but it can be done. You'd have to add new select fields (i.e. N/A 16V, F.I. 16V) in your admincp and then add a couple more sort options to timelips.php. You'd also need to add in the new field IDs to the queries in the edits you made to the functions files and profile.php.
EvilLS1
01-19-2005, 08:57 PM
would you be willing to do this for a fee? I have very little php skills. Thanks
Dan
Dan,
I could do it for you but it would probably be a few weeks before I can get to it because I'm working 7 days per week right now and don't have much free time for anything else.. I haven't even got around to upgrading my own site yet. It might be a better idea to post in the service request forum if you want it done soon.
Dewayne
webnx
01-24-2005, 08:23 PM
Okay, thats fine. send me a email when your free. webmaster (at) vwsport.com thanks!
Dan
joeychgo
01-25-2005, 09:20 PM
Having some problems... Just upgraded to 3.06 (from 3.0)
I Can't Find:
###### In image.php find:
if ($_REQUEST['type'] == 'profile')
{
require_once('./global.php');
}
??? I attached the file. I found everything else. I know im in the right file because I found the second modification in image.php. So there must be different coding in 3.06---
EvilLS1
01-25-2005, 11:08 PM
Joey,
Try this:
Find:
if ($_GET['type'] == 'profile')
{
require_once('./global.php');
}
Replace it with:
if ($_GET['type'] == 'profile' or $_GET['type'] == 'timeslip')
{
require_once('./global.php');
}
joeychgo
01-25-2005, 11:12 PM
I dont know what that command was suppose to do - It all worked without it - but thanks. I made the change. What does it do??
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.