PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 14th, 2007, 05:11 AM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
CL: Random ads anywheer without red crosses

Hi

In classifieds, I configured in ACP that all ads without an images are not displayed in feature photos block (most recent and random). This works fine.

I have currently a script to show random ads from classifieds on an external page. This works fine except for those ads, which have no images. IE shows these ugly red crosses with white background for ads without an image.

Is there any way to use for those ads in classifieds a standard image I save somewhere?

So if a user uploads an ad without an image, this standard image is used automatically instead of nothing?

Or even better: is there any way to code it in my external script not to display a random ad, if there is no image with it?

Thanks in advance
snoopy5 is offline   Reply With Quote
Old February 14th, 2007, 07:39 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
This all depends how your coding your custom script. It seems to be you have not coded it correctly to translate ads which have no bigimage field to show the default noimage.gif file.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 14th, 2007, 07:57 AM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S View Post
This all depends how your coding your custom script. It seems to be you have not coded it correctly to translate ads which have no bigimage field to show the default noimage.gif file.
I did that:

Code:
Content visible to verified customers only.
snoopy5 is offline   Reply With Quote
Old February 14th, 2007, 09:23 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
No you did not from what I see. Your pulling the direct results and printing a line with absolutely no check of any kind. There is nothing above which tells it to load a no image.gif if a thumbnail does not exist. Now if your trying to pull only ads which have images adding this in bold to your query above would help not pull ads with no images

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; February 14th, 2007 at 09:43 AM.
Chuck S is offline   Reply With Quote
Old February 14th, 2007, 09:36 AM   #5 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S View Post
No you did not from what I see. Your pulling the direct results and printing a line with absolutely no check of any kind. There is nothing above which tells it to load a no image.gif if a thumbnail does not exist. Now if your trying to pull only ads which have images adding this in bold to your query above would help not pull ads with no images

Code:
Content visible to verified customers only.

mmmhh,

when I insert that code, I get the following error:

---

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /mypaths/modules/mod_kl_evalphp.php(27) : eval()'d code on line 1

Last edited by Chuck S; February 14th, 2007 at 09:44 AM.
snoopy5 is offline   Reply With Quote
Old February 14th, 2007, 09:43 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Single quotes not double
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 14th, 2007, 09:59 AM   #7 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
o.k., now its working...

now everybody knows that I have no clou about php...
snoopy5 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
more random ads sk24iam Classifieds How do I...? 2 December 25th, 2006 09:31 AM
Ads without images - random ads creativepart Classifieds How do I...? 4 December 6th, 2006 09:24 AM
More Random Ads on sidebar sk24iam Classifieds How do I...? 7 October 25th, 2006 12:16 PM
Recent Ads - Random Ads Question h2ojunkie Classifieds How do I...? 12 October 13th, 2006 02:51 PM


All times are GMT -5. The time now is 08:01 PM.

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