vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - VB Pro Garage Timeslips (https://vborg.vbsupport.ru/showthread.php?t=236888)

Dylanblitz 12-01-2010 07:31 PM

The new release will fix the featured vehicle and VOTM errors. What kind of errors are you getting on the timeslips?
Quote:

Originally Posted by INDYRPM (Post 2128039)
I'm getting numerous errors when messing with TIMESLIPS (For example adding timeslips, I get an error... and if you hit "BACK" and try again, it gives an error again... After returning to the garage of that person, the timeslips to get added (regardless of the error) and they are impossible to delete. I can never change the primary image if it auto-selects a timeslip as primary image.



I also have errors on making a vehicle "Vehicle of the Month" and "Featured Vehicle".


Vehicle of the Month

Database error in vBulletin 4.1.0:

Invalid SQL:
INSERT INTO garage_special_track (vehicle_id, track_type, date_created) VALUES ('6', 'votm', '1291232171');

MySQL Error : Table 'indyrpmc_vbforum.garage_special_track' doesn't exist
Error Number : 1146
Request Date : Wednesday, December 1st 2010 @ 12:36:11 PM
Error Date : Wednesday, December 1st 2010 @ 12:36:11 PM
Script : http://www.indyrpm.com/forums/garage...m_vehicle&id=6
Referrer : http://www.indyrpm.com/forums/garage...m_vehicle&id=6
IP Address : 75.186.111.43
Username : wickedstang
Classname : vB_Database
MySQL Version : 5.1.47-community-log

Featured Vehicled
Database error in vBulletin 4.1.0:

Invalid SQL:
INSERT INTO garage_special_track (vehicle_id, track_type, date_created) VALUES ('6', 'featured', '1291232210');

MySQL Error : Table 'indyrpmc_vbforum.garage_special_track' doesn't exist
Error Number : 1146
Request Date : Wednesday, December 1st 2010 @ 12:36:50 PM
Error Date : Wednesday, December 1st 2010 @ 12:36:50 PM
Script : http://www.indyrpm.com/forums/garage...e_vehicle&id=6
Referrer : http://www.indyrpm.com/forums/garage...m_vehicle&id=6
IP Address : 75.186.111.43
Username : wickedstang
Classname : vB_Database
MySQL Version : 5.1.47-community-log


INDYRPM 12-01-2010 08:05 PM

Quote:

Originally Posted by Dylanblitz (Post 2128086)
The new release will fix the featured vehicle and VOTM errors. What kind of errors are you getting on the timeslips?


I just downloaded and installed this yesterday, is there a newer release out already/soon that fixes those two errors with VOTM and FV?

When you attempt to add an image of a timeslip, I get this error.

Fatal error: Call to undefined function get_gar_track_link() in /home2/indyrpmc/public_html/forums/includes/garage_func_var.php on line 6484

After pressing back, and going back to the forum... When you enter the garage, the timeslip actually did upload successfully... However, it over-rides your default picture of the vehicle... and if you attempt to change default, timeslip remains default. If you attempt to delete timeslip, it refreshes, but doesnt delete timeslip.

Thoughts? (Thanks for your quick reply)

Dylanblitz 12-01-2010 08:50 PM

Quote:

Originally Posted by INDYRPM (Post 2128100)
I just downloaded and installed this yesterday, is there a newer release out already/soon that fixes those two errors with VOTM and FV?

When you attempt to add an image of a timeslip, I get this error.

Fatal error: Call to undefined function get_gar_track_link() in /home2/indyrpmc/public_html/forums/includes/garage_func_var.php on line 6484

After pressing back, and going back to the forum... When you enter the garage, the timeslip actually did upload successfully... However, it over-rides your default picture of the vehicle... and if you attempt to change default, timeslip remains default. If you attempt to delete timeslip, it refreshes, but doesnt delete timeslip.

Thoughts? (Thanks for your quick reply)

Yes, I posted 3.0.7 this morning to fix those two errors. I'll check the code to see why it's calling that function.

INDYRPM 12-02-2010 02:33 AM

Quote:

Originally Posted by Dylanblitz (Post 2128113)
Yes, I posted 3.0.7 this morning to fix those two errors. I'll check the code to see why it's calling that function.

All I have to do is reupload the XML files, correct? As the upload folder shouldnt have changed?

Dylanblitz 12-02-2010 03:52 AM

Quote:

Originally Posted by INDYRPM (Post 2128202)
All I have to do is reupload the XML files, correct? As the upload folder shouldnt have changed?

garage_vehicle.php and cron/garage_votd.php were changed.

INDYRPM 12-02-2010 04:13 AM

Quote:

Originally Posted by Dylanblitz (Post 2128213)
garage_vehicle.php and cron/garage_votd.php were changed.

You are good! That fixed the issue with the VOTM and FV.

Only thing left was the error on the timeslip I gave you, and then changing the primary photo when a timeslip is uploaded, and automatically or accidental placed as primary image.

Other than that, no complaints! Working well!

Dylanblitz 12-02-2010 05:16 AM

Quote:

Originally Posted by INDYRPM (Post 2128219)
You are good! That fixed the issue with the VOTM and FV.

Only thing left was the error on the timeslip I gave you, and then changing the primary photo when a timeslip is uploaded, and automatically or accidental placed as primary image.

Other than that, no complaints! Working well!

If you open includes/garage_func_var.php and delete line 6484

Code:

$track_link = get_gar_track_link($qtrmile_data[TrackName], $qtrmile_data[track_id], $vbphrase, $vbulletin, $garage_seo_rules);
The error should go away. I'm wondering if that has something to do with the image error you are getting. I've never heard of it overriding the primary image before.

INDYRPM 12-02-2010 05:52 AM

Quote:

Originally Posted by Dylanblitz (Post 2128230)
If you open includes/garage_func_var.php and delete line 6484

The error should go away. I'm wondering if that has something to do with the image error you are getting. I've never heard of it overriding the primary image before.


I did as you advised, and the timeslip uploaded successfully. And actually everything seems to work a lot quicker in regard to the page accepting the timeslip. However it still over-rides the default picture shown on the garage main page, as well as the forum home page garage gallery. When you click on the vehicle, however to edit its options... it shows the correct picture you are wanting as your primary picture on THAT page. And if you change the picture, the detail page of that vehicle will change it... However timeslip remains on garage homepage, and forum homepage.

Then if you attempt to fix this, by deleting the timeslip. By clicking the timeslip image, and clicking delete image... the page reloads, but timeslip remains.

Dylanblitz 12-02-2010 06:49 AM

Quote:

Originally Posted by INDYRPM (Post 2128237)
I did as you advised, and the timeslip uploaded successfully. And actually everything seems to work a lot quicker in regard to the page accepting the timeslip. However it still over-rides the default picture shown on the garage main page, as well as the forum home page garage gallery. When you click on the vehicle, however to edit its options... it shows the correct picture you are wanting as your primary picture on THAT page. And if you change the picture, the detail page of that vehicle will change it... However timeslip remains on garage homepage, and forum homepage.

Then if you attempt to fix this, by deleting the timeslip. By clicking the timeslip image, and clicking delete image... the page reloads, but timeslip remains.

It's possible the image might show up in the forum home random image block. I don't limit the type of image shown there, so it can be a timeslip or vehicle image. The top timeslip block shows the timeslip image associated with that timeslip, maybe that's what is confusing you?
Next version I'll put an option to limit the forumhome only to vehicle images.
I can tell you what to change if you want to manually do it for now.

INDYRPM 12-02-2010 12:46 PM

Quote:

Originally Posted by Dylanblitz (Post 2128249)
.
I can tell you what to change if you want to manually do it for now.


That would be awesome! Let me know what I need to change if you could.
I think that would be a great feature to add to your add-on, as well.

Dylanblitz 12-02-2010 02:49 PM

Quote:

Originally Posted by INDYRPM (Post 2128337)
That would be awesome! Let me know what I need to change if you could.
I think that would be a great feature to add to your add-on, as well.

ACP->Plugins & Products->Plugin Manager
Scroll down and open the plugin VB Pro Garage Forum Home Pictures
Find
Code:

$pic_query = $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " . TABLE_PREFIX . "garage_images gi LEFT JOIN " .TABLE_PREFIX . "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' GROUP BY gi.vehicle_id" . $orpic);
Replace with

Code:

$pic_query = $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " . TABLE_PREFIX . "garage_images gi LEFT JOIN " .TABLE_PREFIX . "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE gi.attach_type = 'vehicle' && guv.active = '1' GROUP BY gi.vehicle_id" . $orpic);

INDYRPM 12-02-2010 03:28 PM

Thanks! Seemed to work!
Look forward to future releases!

cdoyle 12-09-2010 01:46 AM

Hi,
A user asked me this question today, and I couldn't figure it out either.

When someone leaves a comment on your car, how do users view the comments?

Dylanblitz 12-09-2010 02:47 AM

Quote:

Originally Posted by cdoyle (Post 2131138)
Hi,
A user asked me this question today, and I couldn't figure it out either.

When someone leaves a comment on your car, how do users view the comments?

If you view the vehicle, the comments should be at the bottom. And each image has it's own comment area.

cdoyle 12-09-2010 01:00 PM

1 Attachment(s)
Hmm, I don't seem to have any comments on mine. ARe they something that need to be enabled?

I've attached some screenshots.

you can view the garage here
http://www.caraudiocentral.net/forums/garage.php

Dylanblitz 12-10-2010 05:40 AM

Quote:

Originally Posted by cdoyle (Post 2131292)
Hmm, I don't seem to have any comments on mine. ARe they something that need to be enabled?

I've attached some screenshots.

you can view the garage here
http://www.caraudiocentral.net/forums/garage.php

Good catch, the comment display code wasn't working right. I fixed it in the package I just uploaded. If you are running 3.0.7, the only file different is the includes/garage_func_var.php. Just upload that one and you'll be caught up.

Kolbi 12-12-2010 06:39 PM

Is there an possibility to import vehicles from DTOGarage?

Dylanblitz 12-13-2010 05:48 AM

Quote:

Originally Posted by Kolbi (Post 2132942)
Is there an possibility to import vehicles from DTOGarage?

I haven't been asked yet so I haven't tried heh. I'm sure I could build an importer from the free one.

Kolbi 12-13-2010 06:32 AM

Well, that would be very nice if you could try it :)

Actually I'm using the paid version of DTOGarage but my license expired and the function your free garage system has is much more better than the actual DTO version.

Perhaps I'm thinking about converting to your free or paid garage version.

If you need any data to try/build importer than let me know :)

wmguk 12-15-2010 06:52 PM

Hey,

Excellent Mod, Installed it!!

Just wondered if there is a way to place the random garage images in the sidebar block and remove it off the index page?

Also, how do I add some new fields? I run a forum that installs computers in cars and I need a way for people to add the specifications of the pc to the car?

Dylanblitz 12-15-2010 07:01 PM

Quote:

Originally Posted by wmguk (Post 2134389)
Hey,

Excellent Mod, Installed it!!

Just wondered if there is a way to place the random garage images in the sidebar block and remove it off the index page?

Also, how do I add some new fields? I run a forum that installs computers in cars and I need a way for people to add the specifications of the pc to the car?

I haven't done a forum block before, I'm working on getting one done though.

You can add new fields through plugins. If you want you can pm me the fields and their values (things like PC Brand, drop down with such and such values, pc model that's a text field, whatever the names you want for the fields) and I'll create the file for you.

Kolbi 12-26-2010 08:12 PM

Have you tried to work on an importer for DTOGarage?

Dylanblitz 12-27-2010 11:25 PM

Quote:

Originally Posted by Kolbi (Post 2139339)
Have you tried to work on an importer for DTOGarage?

I should have it done soon, just been real busy with the holidays

kether1 01-01-2011 07:45 PM

Thanks for this great modification! I have spent the better part of two days playing with it on my test site and can see so many possibilities. Nice work!

I would like to use your garage system as a 'hobby' garage instead of a 'car' garage but need to add additional fields to do so. There are also fields I would want to remove/ disable completely.

Is it possible to remove some of the fields I would not need? For instance, I would like to disable:
  • the Required Year
  • Comment notification enable/disable drop-down (as I will not need comments as this would be more of a database with discussion in the forum),
  • Trims,
  • Mileage,
  • and URL fields?

I would also like to disable the Timeslips page or remove the required numerical data and be able to add some drop down choices/ alpha-numeric text fields.

My biggest concern is how do I add some custom fields? Is this possible?

For instance, I would like to add a drop down that has a few choices and include a link like the 'Not Listed?' link so members can add to the list if that feature is enabled in the ACP.

Again, this is excellent work. VB should buy it from you!:up:

Kether

Dylanblitz 01-01-2011 11:53 PM

Quote:

Originally Posted by kether1 (Post 2142434)
Thanks for this great modification! I have spent the better part of two days playing with it on my test site and can see so many possibilities. Nice work!

I would like to use your garage system as a 'hobby' garage instead of a 'car' garage but need to add additional fields to do so. There are also fields I would want to remove/ disable completely.

Is it possible to remove some of the fields I would not need? For instance, I would like to disable:
  • the Required Year
  • Comment notification enable/disable drop-down (as I will not need comments as this would be more of a database with discussion in the forum),
  • Trims,
  • Mileage,
  • and URL fields?
I would also like to disable the Timeslips page or remove the required numerical data and be able to add some drop down choices/ alpha-numeric text fields.

My biggest concern is how do I add some custom fields? Is this possible?

For instance, I would like to add a drop down that has a few choices and include a link like the 'Not Listed?' link so members can add to the list if that feature is enabled in the ACP.

Again, this is excellent work. VB should buy it from you!:up:

Kether

You can add custom fields through plugins. You could disable all those fields, but the year is a required field so you'd need to do some tweaking to not have problems.

You can disable the timeslips through the acp, there is an option to have it enabled/disabled.

For the dropdown you might want to utilize a field already there that has that option. Maybe the engine types field? Just rename the phrase for it.

kether1 01-02-2011 04:09 AM

Quote:

Originally Posted by Dylanblitz (Post 2142541)
You can add custom fields through plugins. You could disable all those fields, but the year is a required field so you'd need to do some tweaking to not have problems.

You can disable the timeslips through the acp, there is an option to have it enabled/disabled.

For the dropdown you might want to utilize a field already there that has that option. Maybe the engine types field? Just rename the phrase for it.

Thanks so much! Do you have an example of how to do custom fields with plugins?

I will have another look at the timeslips in the acp. I must have missed that setting somehow.

Thanks again for great work! :up:

Regards,
Kether

Dylanblitz 01-02-2011 08:32 PM

Quote:

Originally Posted by kether1 (Post 2142617)
Thanks so much! Do you have an example of how to do custom fields with plugins?

I will have another look at the timeslips in the acp. I must have missed that setting somehow.

Thanks again for great work! :up:

Regards,
Kether

PM me your email, I'll send you a product xml I have to add a video field to the vehicle record.

kether1 01-02-2011 11:00 PM

Quote:

Originally Posted by Dylanblitz (Post 2142900)
PM me your email, I'll send you a product xml I have to add a video field to the vehicle record.

Awesome! PM sent.

Kether

dmorales 01-02-2011 11:24 PM

1 Attachment(s)
I can't see the location to comment on a vehicle. Did I miss something?

Also how do I remove the Comment notification option and I have a drop down with no name. See attach image.


Quote:

Originally Posted by Dylanblitz (Post 2142900)
PM me your email, I'll send you a product xml I have to add a video field to the vehicle record.


Can I get this as well?

Dylanblitz 01-03-2011 03:37 AM

Quote:

Originally Posted by dmorales (Post 2142995)
I can't see the location to comment on a vehicle. Did I miss something?

Also how do I remove the Comment notification option and I have a drop down with no name. See attach image.

Can I get this as well?

PM me your email and I'll send you the file

For the questions
Best way to fix the problem and remove the comment notification:

ACP->Styles and Templates->Style Manager

At your style select Edit Templates
Scroll down to and double click VB Pro Garage Templates
Double Click garage_vehicle_edit

Find

Code:

<form action="{vb:raw this_page}" method="post" enctype="multipart/form-data">
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />

and replace with

Code:

<form action="{vb:raw this_page}" method="post" enctype="multipart/form-data">
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="comm_notify" value="0" />

Find and delete
Code:

        <tr>
        <td width="250"><b>{vb:rawphrase garage_thead_comm_notify}</b>
        </td>
        <td width="*">
<select id="comm_notify" name="comm_notify">
{vb:raw notify_enabled}
</select>
        </td>
        </tr>

Find and delete

Code:

        <tr>
        <td><b>{vb:rawphrase garage_fuel_pref}</b>
        </td>
        <td>
<select id="fuel_preference" name="fuel_preference">
{vb:raw fuel_type_option}
</select>
        </td>
        </tr>


dmorales 01-03-2011 03:54 AM

Nevermind. It's a problem with my template skin. Thank you!!!!

Dylanblitz 01-03-2011 04:07 AM

Quote:

Originally Posted by dmorales (Post 2143086)
Nevermind. It's a problem with my template skin. Thank you!!!!

Was going to say, need to make sure the garage images go into each skin you have, glad you figured it out though :)

Kolbi 01-03-2011 06:49 PM

If have a little question.

If I add a new vehicle there's another field below description.
But the content of this box is not shown on the details site?

The file URL shall be used for? URL to youtube?

Sixes 01-03-2011 08:36 PM

Vehicle image from the web?

kether1 01-04-2011 12:00 AM

Quote:

Originally Posted by Sixes (Post 2143533)
Vehicle image from the web?

You can post an image in the description field using the image BB code. :)

kether1 01-04-2011 12:09 AM

Hi Dylan,

Is there a way that I can use text in the fields of the timeslips page instead of numbers? I want to utilize those fields for data that is not numeric and it appears that those fields only seem to take numerals or they change to 0.00.

Thanks for the help!!

Dylanblitz 01-04-2011 07:34 AM

Quote:

Originally Posted by Kolbi (Post 2143492)
If have a little question.

If I add a new vehicle there's another field below description.
But the content of this box is not shown on the details site?

The file URL shall be used for? URL to youtube?

Sorry, that field wasn't supposed to be there. It's a commercial field I didn't take out. If you edit the garage_vehicle_edit template
Find and delete

Code:

        <tr>
        <td><b>{vb:rawphrase garage_thead_todolist}</b>
        </td>
        <td>
<textarea id="todo_list" name="todo_list" rows="8" cols="60">{vb:raw my_vehicle_data[todo_list]}</textarea>
        </td>
        </tr>


Dylanblitz 01-04-2011 07:35 AM

Quote:

Originally Posted by kether1 (Post 2143611)
Hi Dylan,

Is there a way that I can use text in the fields of the timeslips page instead of numbers? I want to utilize those fields for data that is not numeric and it appears that those fields only seem to take numerals or they change to 0.00.

Thanks for the help!!

You would have to change the database fields and some of the code that formats the numbers. It might be better to hide the fields and add a text field through a plugin. That file I sent you make sense?
You can do the same thing to add fields to the timeslip record as well.
In a couple versions all the custom fields will be done a lot easier through the ACP.

Kolbi 01-04-2011 03:00 PM

Is it possible that in the phrase "garage_ msg_ err_ image_ resolution" is an issue?
Quote:

Error: Image resolution is too high. Max resolution allowed is
isn't the resolution at the end missing?

Dylanblitz 01-04-2011 03:27 PM

Quote:

Originally Posted by Kolbi (Post 2143936)
Is it possible that in the phrase "garage_ msg_ err_ image_ resolution" is an issue?

isn't the resolution at the end missing?

That was one of the phrases I did before I knew how to do a contruct_phrase and never updated it :)
It builds the rest of it before it displays

Quote:

$vbphrase['garage_msg_err_image_resolution'] . ' ' . $vbulletin->options[garage_image_width] . $vbphrase['garage_txt_px_width'] . ' x ' . $vbulletin->options[garage_image_height] . $vbphrase['garage_txt_px_height']


All times are GMT. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02538 seconds
  • Memory Usage 1,877KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete