PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 18th, 2006, 05:30 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 238
Displaying custom fields

I've built a custom field 'selection' checkbox for a 'Pick of the Week' feature that we can use to select 40/50 images that viewers can see grouped together on one page. However, I can't seem to display the page that just shows the images that have their checkbox ticked.

I've tried something like this:

/gallery/search.php?do=searchresults&string=selection&cfields=field8

but it didn't work.

Any ideas?

Here's the properties for the edit link of the custom field in the forums admincp:

/forums/admincp/vba_gallery_admin.php?do=editcustomfield&fieldid=8


Customfield info:

Title: selection
Description:
Field required: no
Field searchable: yes
Options: selection
StuartDH is offline   Reply With Quote
Old February 20th, 2006, 11:35 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 238
bump!
StuartDH is offline   Reply With Quote
Old February 20th, 2006, 12:56 PM   #3 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
I personaly have not tryed this option.
- I need to dive into the code and i'll give ya an answer soon.
Zachariah is offline   Reply With Quote
Old February 22nd, 2006, 02:48 PM   #4 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Stuart, I tried a few quick experiments and, much to my surprise, was having some problems getting it to work because for one reason or another I kept getting a blank value for cfields even though it is definitely being passed in on the URL string.

One thing is that instead of "field8" you'll want just "8" for the Gallery tables.

In your testing, what exactly did your URL look like? Hopefully in my testing I just looked over something obvious and seeing your URL will shed some light on it.
KW802 is offline   Reply With Quote
Old February 22nd, 2006, 02:53 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2005
Posts: 238
Hi Kevin,

The custom field is:

selection Checkbox (Multiple options, multiple choices)

and the edit link shows the properties:

http://www.wildaboutbritain.co.uk/fo...ield&fieldid=8

I've tried the URL as 8, rather than field8

http://www.wildaboutbritain.co.uk/ga...tion&cfields=8

but still getting the same error "You must choose some fields to search in!"

Stuart
StuartDH is offline   Reply With Quote
Old February 22nd, 2006, 03:11 PM   #6 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Quote:
Originally Posted by StuartDH
but still getting the same error "You must choose some fields to search in!"
Yeah, that's what I was getting as well. The function is expecting an array to be passed into it for the 'cfields' and 'fields' values but several experiments later I kept getting blank on it. My next experiment will be to simply add a new query value and do a clean_gpc on it as a string instead of an array to at least see if the search from the url method will work and, if it does, then go back and see how/why it's having issues with using cfields.
KW802 is offline   Reply With Quote
Old February 22nd, 2006, 03:18 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,649
The search page works as it is coded though. Everyone here is discussing how to bypass the search page basically and do something it is not designed to do

The search page is POST form not GET.

The variables everyone is talking here are done via the POST and not a GET which is why it does not work like your trying to do it

Sometimes the answers are easy
__________________
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
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
Custom fields... LWillmann Classifieds How do I...? 1 February 4th, 2006 05:59 PM
little problem with custom fields Luciano Bugs - vBulletin 3.5.X 6 January 12th, 2006 08:28 AM
Custom Product Fields SteveSteve ReviewPost Suggestions 2 December 30th, 2005 05:47 PM
Custom fields not being updated... KW802 Bugs From 1.0.0 2 December 22nd, 2004 10:15 PM


All times are GMT -5. The time now is 09:57 AM.

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