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)

cTak 03-16-2011 08:46 PM

Whoops, I had an error from me playing with it before hand.

Reloaded the original garage_func_var.php and added the code above and it works as intended!

Thanks!

southeastminis 03-16-2011 10:43 PM

I keep getting the following error message when trying to upload a picture to the garage.

Warning: mkdir() [function.mkdir]: Permission denied in [path]\includes\garage_func_var.php on line 2744

Warning: move_uploaded_file(images/garage/attach/1/garage_vehicle-3-13003189071_full.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in [path]\includes\garage_func_var.php on line 2821

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\Temp\php\php5A27.tmp' to 'images/garage/attach/1/garage_vehicle-3-13003189071_full.jpg' in [path]\includes\garage_func_var.php on line 2821

any help would be appreciated@!

southeastminis 03-16-2011 11:17 PM

Forgot to put that I tried to change the permissions to 777, but got the following error message with my FTP.

Response: 500 'SITE CHMOD 777 attach': command not understood

Club XJ 03-20-2011 07:05 PM

Found one issue. I'm not sure if its been discussed before or not. When you're on the main garage page the facebook connect icon does not show up. When you are connected with facebook as normal its also not there.

Dylanblitz 03-24-2011 12:36 AM

Quote:

Originally Posted by Club XJ (Post 2175542)
Found one issue. I'm not sure if its been discussed before or not. When you're on the main garage page the facebook connect icon does not show up. When you are connected with facebook as normal its also not there.

If you edit the template garage_main and change the top to be the following it should show it after that.

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if>  dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>


Dylanblitz 03-24-2011 12:37 AM

Quote:

Originally Posted by southeastminis (Post 2174198)
Forgot to put that I tried to change the permissions to 777, but got the following error message with my FTP.

Response: 500 'SITE CHMOD 777 attach': command not understood

I'm not sure what would cause that. You could see if you have a file manager in your domain control panel. Most of them allow you to set permissions there as well. Just make sure you are setting the permissions on the right folder. images/garage/attach

zeus_r6 03-27-2011 08:53 PM

Any idea what's causing this when I try to post a comment on a vehicle image?

Database error in vBulletin 4.1.2:

Invalid SQL:
SELECT COUNT(image_id) AS ImageCommCount FROM garage_image_comments WHERE image_id = '33' WHERE active = '1';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE active = '1'' at line 1
Error Number : 1064
Request Date : Sunday, March 27th 2011 @ 04:50:40 PM
Error Date : Sunday, March 27th 2011 @ 04:50:40 PM
Script : http://www.xxxxxx.com/forums/garage_comments.php
Referrer : http://www.xxxxx.com/forums/garage-i...mments-33.html
IP Address : xx.xxxx.10.30
Username : xxxxxx
Classname : vB_Database
MySQL Version : 5.1.52

Dylanblitz 03-28-2011 05:15 AM

Open includes/garage_func_var.php
Find

Code:

$img_comm_cnt_query = $vbulletin->db->query_read("SELECT  COUNT(image_id) AS ImageCommCount FROM " . TABLE_PREFIX .  "garage_image_comments WHERE image_id = '$data[id]' WHERE active =  '1'");
replace with
Code:

$img_comm_cnt_query = $vbulletin->db->query_read("SELECT  COUNT(image_id) AS ImageCommCount FROM " . TABLE_PREFIX .  "garage_image_comments WHERE image_id = '$data[id]' && active =  '1'");
Quote:

Originally Posted by zeus_r6 (Post 2178106)
Any idea what's causing this when I try to post a comment on a vehicle image?

Database error in vBulletin 4.1.2:

Invalid SQL:
SELECT COUNT(image_id) AS ImageCommCount FROM garage_image_comments WHERE image_id = '33' WHERE active = '1';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE active = '1'' at line 1
Error Number : 1064
Request Date : Sunday, March 27th 2011 @ 04:50:40 PM
Error Date : Sunday, March 27th 2011 @ 04:50:40 PM
Script : http://www.xxxxxx.com/forums/garage_comments.php
Referrer : http://www.xxxxx.com/forums/garage-i...mments-33.html
IP Address : xx.xxxx.10.30
Username : xxxxxx
Classname : vB_Database
MySQL Version : 5.1.52


Club XJ 03-28-2011 09:30 AM

Quote:

Originally Posted by Dylanblitz (Post 2176804)
If you edit the template garage_main and change the top to be the following it should show it after that.

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if>  dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>


That didn't change it.

zeus_r6 03-28-2011 12:22 PM

Quote:

Originally Posted by Dylanblitz (Post 2178229)
Open includes/garage_func_var.php
Find

Code:

$img_comm_cnt_query = $vbulletin->db->query_read("SELECT  COUNT(image_id) AS ImageCommCount FROM " . TABLE_PREFIX .  "garage_image_comments WHERE image_id = '$data[id]' WHERE active =  '1'");
replace with
Code:

$img_comm_cnt_query = $vbulletin->db->query_read("SELECT  COUNT(image_id) AS ImageCommCount FROM " . TABLE_PREFIX .  "garage_image_comments WHERE image_id = '$data[id]' && active =  '1'");

That got rid of the database error, thank you...what it does now is shows the vbulletin message "could not find the phrase 'addedgb'" and I notice none of the comments show up in the latest comments block on the garage home...it says "no listings in the database at this time"


All times are GMT. The time now is 09:06 PM.

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

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

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

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