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 Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 11th, 2005, 12:08 PM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
call a specific category "additional field" in a template?

Hi!
I've add one "additional field" in a category (called "special format" and type checkbox) and I am wondering how can I call that specific field in the template.

The var is {$customboxes['title'][$z]}. I've tried a few things but it didn't work.

Any hint?

Thanks! =)
Ricardo
rbl is offline   Reply With Quote
Old December 11th, 2005, 12:21 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Well this is the code right out of showphoto.tmpl and corresponds to the coding in showphoto.php

Code:
Content visible to verified customers only.
We don't call a specific field. We print all variables. It is an array so they would be something like this

$customboxes['title'][1]
$customboxes['title'][2]
$customboxes['title'][3]

etc
__________________
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 December 11th, 2005, 12:37 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Chuck, I need to use the value in another place in the template, my idea is this:
- if the user checks that additional field checkbox, the Extra Text Fields #n won't be shown and for that I will modify the template changing this:
if ( $Globals['extranname'] != "" && !empty($extran))
into this:
if ( $Globals['extranname'] != "" && !empty($extran) && $customboxes['value'][1] != "checked")

Can I do this with the "additional field"?
rbl is offline   Reply With Quote
Old December 11th, 2005, 12:46 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well $extra1name and customfields are two separate things so that would not work.

The main $extras only show if not empty.

For $customboxes maybe this but I have not tested it

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; December 11th, 2005 at 12:49 PM.
Chuck S is offline   Reply With Quote
Old December 11th, 2005, 12:52 PM   #5 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
If I have 20 additional fields and I can't call the 13th ($customboxes['value'][13]) anywhere else in the template because they are only accessible in that array you posted above, then seems I can't do it =(
rbl is offline   Reply With Quote
Old December 11th, 2005, 01:05 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Nope it would seem so as they are called in the array.

You would probally make a query and grab it if you know the title name directly and define it yourself
__________________
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 December 11th, 2005, 02:22 PM   #7 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Yes... that's an option. Thanks Chuck!
rbl 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
User permission set to "YES" - but database field shows "0" skippy Classifieds Bug Reports 3 November 11th, 2005 02:45 PM
Is it possible to restrict "view large version" to specific usergroup in vB? ironlogik Photopost Pro How Do I...? 1 March 25th, 2005 08:00 AM
Enclose "Images in category" and "display options" in a conditional tag? rbl How Do I? - vBulletin 3.0.X 2 January 15th, 2005 10:50 AM
Another Extra field bug between "wanted" and "help wanted" templates. Johnny Doomo Classifieds Bug Reports 16 June 30th, 2004 07:41 PM


All times are GMT -5. The time now is 02:34 PM.

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