68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.0.x Help & Support > v3.0 Questions & Support
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.0 Questions & Support Help and support for 68 Classifieds

 
Thread Tools Display Modes
  #21  
Old 09-15-2006, 12:10 AM
bgordon's Avatar
bgordon bgordon is offline
Senior Member
 
Join Date: Aug 2006
Location: Georgian Bay, Ontario Canada
Posts: 154
Default

Quote:
Originally Posted by Bucketman View Post
I've got it working now, but if no title data is entered by the user it just shows as NULL. I have set the default value to No Title, but if I set it in MySQL to not null, it doesn't set any value to it, and I get the funny photo display problems. When I set to NULL, it does work, but as I said it just displays NULL, not No Title.

You can see it working on my site GoBuyItBrisbane - I've done a little customising and think it looks much better than the default way to show images in another popup window.

I'm happy to leave it with the NULL value for now as at least it's working - if anyone has some ideas they'd be much appreciated.

I just added an initial value to the Title text form field "Image Title" so at very least it has a title when submitting from the two templates. Low tech but it works.
__________________
B.Gordon
v.3.1.5 Developer
www.canadaboatshopper.com
Canada Boat Shopper - Boats For Sale By Owner In And Around Canada
Reply With Quote
  #22  
Old 09-15-2006, 10:28 AM
juven14's Avatar
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,880
Default

Here is what I ended up doing (it requires developer):

I removed the original call for images and then called it myself (viewlisting.php):

removed:
PHP Code:
//get the images
$image=$Listing->getImages($view);
$class_tpl->assign('data', $image);
replaced with:
PHP Code:
//get the images
        
$sSQL='SELECT id, pid, title, image, rank FROM '.PREFIX.'prodimages WHERE pid = '.$view.' ORDER BY rank ASC';
        
$result=$db->query($sSQL);
        
        
$i=0;
        while (
$rs=$result->fetch())
        {
            if(
$rs['title'] == '')
            {
                
$imageTitle = ' ';
            }
            else
            {
                
$imageTitle = $rs['title'];
            }
            
$image['title']=$imageTitle;
            
$image['image']=$rs['image'];
            
$size = @getimagesize('photos/'.$rs['image']);
            
$image['width']=$size[0];
            
$image['height'] = $size[1];
            
$data[]=$image;
        }
        
$class_tpl->assign('data', $data);
__________________
Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #23  
Old 11-08-2006, 03:33 PM
Acpjax Acpjax is offline
Junior Member
 
Join Date: Oct 2006
Posts: 28
Default

Ive recently implimented this change and it works however i get the done with errors message when viewed. When i pull the error up it said its a "Unterminated string constant" error.... Anyone else run into this? or did i just mess something up along the way
Reply With Quote
  #24  
Old 11-08-2006, 04:51 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,737
Default

Quote:
Originally Posted by Acpjax View Post
Ive recently implimented this change and it works however i get the done with errors message when viewed. When i pull the error up it said its a "Unterminated string constant" error.... Anyone else run into this? or did i just mess something up along the way
What version of 68C are you running?
__________________
Larry.
Reply With Quote
  #25  
Old 11-08-2006, 05:12 PM
Acpjax Acpjax is offline
Junior Member
 
Join Date: Oct 2006
Posts: 28
Default

3.1.5 dev im gonna start from scratch and re- do it tonight as i messed around alot with this page and very well could have created an issue while i was playing with something else...

http://www.recreationalrentalsource....ing.php?view=6

is the page
Reply With Quote
  #26  
Old 11-08-2006, 05:15 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,737
Default

Quote:
Originally Posted by Acpjax View Post
3.1.5 dev im gonna start from scratch and re- do it tonight as i messed around alot with this page and very well could have created an issue while i was playing with something else...

http://www.recreationalrentalsource....ing.php?view=6

is the page
This is the ver 3.0 forum and Bucketman is running 68C ver 3.0. It may not work properly with 68C ver 3.1.X
__________________
Larry.
Reply With Quote
  #27  
Old 11-08-2006, 05:20 PM
Acpjax Acpjax is offline
Junior Member
 
Join Date: Oct 2006
Posts: 28
Default

Aye.... I actually found this post linked from one in the 3.1 forums... :-) no worries i was just curious if anyone had run into the same error..
Reply With Quote
  #28  
Old 11-09-2006, 07:40 AM
juven14's Avatar
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,880
Default

Looks like you got it. Let me know if you still need help.
__________________
Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #29  
Old 09-24-2007, 10:59 PM
spaceboy spaceboy is offline
Member
 
Join Date: Aug 2006
Posts: 97
Default

anyone know if this code is good for v3.1... or where I might find a thread explaining how to create one large listing image on the viewlisting page with smaller thumbnails to the side or underneath thelarge image?
__________________
Lindsay

developer 3.1.5
abletrader.com
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Yahoo map appear where photo would be GSP v3.1 Modifications 0 09-26-2006 03:58 PM
modifying display of one category dawyatt v3.1 Modifications 4 08-27-2006 05:18 PM
Images in Viewlisting not showing Bucketman v3.1 Questions & Support 9 05-05-2006 10:46 AM
photo upload 7standing7 v3.0 Questions & Support 11 04-23-2006 03:29 PM
Change my photo in a posted ad... garysmith v3.0 Questions & Support 2 04-23-2006 11:29 AM


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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.