Support Forums

Old 05-20-2006, 06:59 AM   #1
Senior Member
 
Join Date: Apr 2006
Posts: 126
Rep Power: 14
sporthorsebreeder will become famous soon enough
Default Error Opening Large Images

When viewing a listing if I click on the image to see the large image I receive the following error.


Notice: Query failed: 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 '' at line 1 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id > 0 AND pid = in C:\Websites\tbdiaries\includes\classes\database\my sql.php on line 119

Notice: Query failed: 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 '' at line 1 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id < 0 AND pid = in C:\Websites\tbdiaries\includes\classes\database\my sql.php on line 119


I carried out the fix recommended by Eric more large image errors
Here is the fix. Open the template file user/userlistinginfo.tpl.php and replace everything with this:

Which I did, but it has not made any difference.
I only replaced the text in the userlistinginfo.tpl.php file in the template I was using.
Do I need to replace the text in all of the userlistinginfo.tpl.php files in the other templates not being used?

If not any idea what else to change to fix it?
Thanks
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 05-20-2006, 01:17 PM   #2
Junior Member
 
Join Date: May 2006
Location: Canada
Posts: 14
Rep Power: 12
frosty is on a distinguished road
Default

Hi Hugh - did you see this thread-->
Thumbnails in ads give popup window w/ error

I fought this one problem too and got it sorted out between the post you refered to and this one above.
frosty is offline   Reply With Quote
Old 05-20-2006, 07:50 PM   #3
Senior Member
 
Join Date: Apr 2006
Posts: 126
Rep Power: 14
sporthorsebreeder will become famous soon enough
Default

Hello Frosty
Thanks for the info.
That was helpful.
Eric said
Quote:
This is an easy fix.
First copy the stock viewimage template over to the new template directory.
Next copy all the images in the images/ directory and put them in templates/yourtemplate/images/ directory. I moved these out for v3.1 that way you could have different images for different templates.
I have copied the images from the image directory to my template images directory, but I cant find the "stock viewimage template" that Eric said to copy over to the new template.
Can anyone tell me which folder it is in?
Many thanks
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 05-22-2006, 05:10 AM   #4
Senior Member
 
Join Date: Apr 2006
Posts: 126
Rep Power: 14
sporthorsebreeder will become famous soon enough
Default

Quote:
I have copied the images from the image directory to my template images directory, but I cant find the "stock viewimage template" that Eric said to copy over to the new template.
Can anyone tell me which folder it is in?
Eric
Can you tell me where to find the stock view image template?
Thanks
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 05-22-2006, 09:09 AM   #5
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,439
Rep Power: 101
Eric Barnes is a jewel in the rough
Default

In v3.1 it has the template editor. So just browse to the viewimage.tpl.php and click the compare button and it will show you the differences.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on loading images manilaboy v3.1 Questions & Support 2 10-26-2006 01:45 PM
Strange Issue Cycling Through Images bgordon v3.1 Questions & Support 2 09-15-2006 09:58 AM
more large image errors frosty v3.1 Questions & Support 2 05-17-2006 12:28 PM
Images in Viewlisting not showing Bucketman v3.1 Questions & Support 9 05-05-2006 11:46 AM
Featured images quickbiz v3.0 Questions & Support 2 04-10-2006 10:22 AM


All times are GMT -4. The time now is 10:10 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0