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 March 4th, 2007, 04:39 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Change the field type

How can we change the field type from the standard "Textbox" to say "Dropdown" or "Checkbox" or "Radio Buttons" in one/two of the 6 Extra Text Field available (which respond to search command).

Thanks
Bills is offline   Reply With Quote
Old March 4th, 2007, 11:54 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
If your trying to make the 6 extra fields select boxes radio etc then you must edit your uploadphoto editphoto templates to be the respective html for those right now they are normal text boxes. You do know basic html right?
__________________
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 March 4th, 2007, 09:34 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Hi chuck, In "uploadphoto Template" I am not able to find text related to "extra1" , "extra2" etc. The only thing I can see there is as follows...

$ppopen
<tr>
<td colspan="2" align="left" class="tcat">
<b>{$Globals['pp_lang']['extraopts']}</b>
</td>
</tr>
PPPRINT;

So you are requested to pl. tell me (cut-paste) me the exact text.

------------------

But yes I did find "extra1name" to "extra6name" in "editphoto template" and I will do the changes you said and give it aq try (I am sure my problem will be solved)

Thanks for the support
Bills is offline   Reply With Quote
Old March 5th, 2007, 09:28 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
There is definately input boxes for $extra1 and $extra2 etc in the uploadphoto and editphoto templates
__________________
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 March 5th, 2007, 10:40 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Hi Chuck thanks for the reply, like the way I said I am unable to locate it, so pl. highlight it on the the following "uploadphoto.tmpl" coding ...


Quote:
<?php

echo<<<PPPRINT
<script type="text/javascript">
function checkForm(theform)
{
PPPRINT;

if ( !empty($albumcats) )
{
echo<<<PPPRINT
if (theform.category.value == "notcat" && theform.albumsel.value == "0")
PPPRINT;
}
else
{
echo<<<PPPRINT
if (theform.category.value == "notcat")
PPPRINT;
}

echo<<<PPPRINT
{
alert( "{$Globals['pp_lang']['badcat']}" );
theform.category.focus();
return false;
}

if (document.all||document.getElementById)
{
for (i=0;i<theform.length;i++)
{
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
}
}

document.getElementById('pwait').style.display = "";
document.getElementById('pwait2').style.display = "";

return true;
}
</script>
<form method="post" action="{$Globals['maindir']}/uploadphoto.php" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td colspan="2">
$ppopen
<tr>
<td colspan="1" align="left" class="tcat">
<b>{$Globals['galleryname']} {$Globals['pp_lang']['imageupload']}</b>
</td>
<td colspan="1" align="right" class="tcat">
<span class="smallfont"><a href="javascript:PopUpHelp('help/uploadphoto.php')">{$Globals['pp_lang']['help']}</a></span>
</td>
</tr>
<tr>
<td class="alt1" align="left"><span class="smallfont">{$Globals['pp_lang']['username']}</span></td>
<td class="alt1" align="left"><span class="smallfont">{$User['username']}</span></td>
</tr>
<tr>
<td class="alt1" align="center" colspan="2">
<br />
<table style="border:2px groove" cellpadding="0" cellspacing="1" border="0" width="50%">
<tr>
PPPRINT;

if ( $usedpx > 0 )
{
echo<<<PPPRINT
<td width="$usedpx" style="background-color:red; font-size:10px" title="{$Globals['pp_lang']['pdiskused']}: {$usedpx}%">&nbsp;</td>
PPPRINT;
}

echo<<<PPPRINT
<td width="$availpx" style="background-color:green; font-size:10px" title="{$Globals['pp_lang']['pavailable']}: {$availpx}%">&nbsp;</td>
</tr>
</table>
<span class="smallfont">
{$Globals['pp_lang']['diskallowed']}: $disk_k<br />
{$Globals['pp_lang']['diskused']}: $diskuse<br />
{$Globals['pp_lang']['diskremain']}: $diskspace<br />
</span>
</td>
</tr>
PPPRINT;


echo<<<PPPRINT
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['imagetypes']}:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$imagetype</span></td>
</tr>
<tr>
<td class="alt1" align="left"><span class="smallfont">{$Globals['pp_lang']['maxsize']}:</span></td>
<td class="alt1" align="left"><span class="smallfont">$maxfilesize</span></td>
</tr>
PPPRINT;

if ( $User['uploadlimit'] > 0 )
{
echo<<<PPPRINT
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['userlimit']}:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['uplimit2']}</span></td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['imagesqueue']}:</span></td>
<td class="alt1" width="50%" align="left"><span class="smallfont">$photocount</span></td>
</tr>
$ppclose
<br />
$ppopen
<tr>
<td colspan="2" align="left" class="tcat">
<b>{$Globals['pp_lang']['uploadphoto']}</b>
</td>
</tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['choosecat']}</span></td>
<td class="alt1" width="50%" align="left"><select name="category">$catoptions</select></td>
</tr>
PPPRINT;

if ( !empty($albumcats) )
{
echo<<<PPPRINT
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['upalbum']}</span></td>
<td class="alt1" width="50%" align="left">
<select name="albumsel"><option value="0" selected="selected">{$Globals['pp_lang']['none']}</option>$albumcats</select>
</td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
<tr>
<td class="alt1" align="left">
<span class="smallfont"><b>{$Globals['pp_lang']['photoname']}:<br /></b>
$moreinfo</span>
</td>
<td class="alt1" align="left">
PPPRINT;

for( $i = 0; $i < $Globals['maxfiles']; $i++ )
{
echo "<input type=\"file\" name=\"theimage[]\" size=\"50\" /><br />";
}

echo<<<PPPRINT
</td>
</tr>
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['phototitle']}</span></td>
<td class="alt1" align="left" width="50%"><input type="text" size="50" name="deftitle" /></td>
</tr>
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['photodesc']}</span></td>
<td class="alt1" align="left" width="50%"><textareahtml name="defdesc" cols="50" rows="10"></textareahtml></td>
</tr>
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['keywords']}</span></td>
<td class="alt1" align="left" width="50%"><input type="text" size="50" name="keywords" /></td>
</tr>
<tr>
<td colspan="2" class="alt1" align="center">
<input type="submit" value="{$Globals['pp_lang']['uploadsubmit']}" />
<br />
<div id="pwait" style="display:none; margin-top:6px" align="center"><img src="{$Globals['idir']}/indicator.gif" border="0" />&nbsp;<b>{$Globals['pp_lang']['uploading']}</b></div>
</td>
</tr>
$ppclose
</td>
</tr>
</table>
<br />

$ppopen
<tr>
<td colspan="2" align="left" class="tcat">
<b>{$Globals['pp_lang']['extraopts']}</b>
</td>
</tr>
PPPRINT;

if ( $Globals['downurl'] == "yes" )
{
echo<<<PPPRINT
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['downurl']}:</span></td>
<td class="alt1" align="left" width="50%"><input type="text" size="50" maxlength="75" name="downloadurl" /></td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['skipupl']}</span></td>
<td class="alt1" align="left" width="50%"><input type="checkbox" name="skipupload" value="skipupload" /></td>
</tr>
$skiphtml
PPPRINT;

if ( $Globals['usenotify'] == "yes" && $User['userid'] != 0 )
{
echo<<<PPPRINT
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['notify']}</span></td>
<td class="alt1" align="left" width="50%"><select name="notify"><option selected="selected" value="no">{$Globals['pp_lang']['no']}</option><option value="yes">{$Globals['pp_lang']['yes']}</option></select></td>
</tr>
PPPRINT;
}

if ( $Globals['allowrate'] == "yes" )
{
echo<<<PPPRINT
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['ratephoto']}</span></td>
<td class="alt1" align="left" width="50%"><select name="ratings"><option value="no">{$Globals['pp_lang']['no']}</option><option value="yes" selected="selected">{$Globals['pp_lang']['yes']}</option></select></td>
</tr>
PPPRINT;
}

if ( $Globals['allowpost'] == "yes" )
{
echo<<<PPPRINT
<tr>
<td class="alt1" align="left" width="50%"><span class="smallfont">{$Globals['pp_lang']['postcoms']}</span></td>
<td class="alt1" align="left" width="50%"><select name="comments"><option value="no">{$Globals['pp_lang']['no']}</option><option value="yes" selected="selected">{$Globals['pp_lang']['yes']}</option></select></td>
</tr>
PPPRINT;
}

if ( $User['adminedit'] == 1 )
{
echo<<<PPPRINT
<tr>
<td class="tcat" align="center">
<b>{$Globals['pp_lang']['adminopt']}</b>
</td>
<td align="right" class="tcat">
<span class="smallfont"><a href="javascript:PopUpHelp('help/adminskip.php')">{$Globals['pp_lang']['help']}</a></span>
</td>
</tr>
<tr>
<td class="alt1" width="50%"><span class="smallfont">{$Globals['pp_lang']['filenotice']}</span></td>
<td class="alt1" width="50%" align="left"><input type="text" name="updir" value="$imgdir" size="50" /></td>
</tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['processall']}</span></td>
<td class="alt1" width="50%" align="left"><input type="checkbox" name="processall" value="processall" /></td>
</tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['skipwater']}</span></td>
<td class="alt1" width="50%" align="left"><input type="checkbox" name="skipwater" value="skipwater" /></td>
</tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['donotdelete']}</span></td>
<td class="alt1" width="50%" align="left"><input type="checkbox" name="donotdelete" value="donotdelete" /></td>
</tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['showthumbs']}</span></td>
<td class="alt1" width="50%" align="left"><select name="dthumbs"><option selected="selected">yes</option><option>no</option></select></td></tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['numthumbs']}</span></td>
<td class="alt1" width="50%" align="left"><select name="numprocess"><option selected="selected">10</option><option>25</option><option>50</option><option>100</option></select></td></tr>
<tr>
<td class="alt1" width="50%" align="left"><span class="smallfont">{$Globals['pp_lang']['upuser']}</span></td>
<td class="alt1" width="50%" align="left">$useroptions</td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
<tr>
<td class="alt1" colspan="2" align="center">
<input type="hidden" name="userid" value="{$User['userid']}" />
<input type="hidden" name="process" value="do" />
<input type="hidden" name="MAX_FILE_SIZE" value="{$Globals['mmuploadsize']}" />
<input type="submit" value="{$Globals['pp_lang']['uploadsubmit']}" />
<br />
<div id="pwait2" style="display:none; margin-top:6px" align="center"><img src="{$Globals['idir']}/indicator.gif" border="0" />&nbsp;<b>{$Globals['pp_lang']['uploading']}</b></div>
<br /><b>{$Globals['pp_lang']['subdesc']}</b></span>
</td>
</tr>
$ppclose
</form><br />
PPPRINT;

?>
Bills is offline   Reply With Quote
Old March 5th, 2007, 02:02 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
bulkupload.tmpl and editphoto.tmpl sorry
__________________
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 March 5th, 2007, 09:49 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Thanks Chuck
Bills is offline   Reply With Quote
Old March 6th, 2007, 09:09 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
Not a problem
__________________
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 March 7th, 2007, 02:17 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Chuck even after changing the field type of "these six" can also be changed from "text" to say "dropdown" or "checkbox" or "Radio Buttons" through the "bulkupload.tmpl" and "editphoto.tmpl" the required result are not attained "I think" the problem was also with "adm-cats.php" file and I also tried to change the similar changes in "adm-cats.php" but I suppose the simple change from "text" to "dropdown" in "adm-cats.php" won't work.

pl. help me to get the required results. (i.e. changing the field type)
Bills is offline   Reply With Quote
Old March 7th, 2007, 10:06 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
You sure your editing the correct template set? Example if your using the vbulletin integration you need to edit the vb3enhanced templates. If you use the proper html the input box is definately changed so this I assume is your mistake
__________________
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 March 7th, 2007, 10:47 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
============= changed in "bulkupload.tmpl" like that

Quote:
PPPRINT;
}

if ( $Globals['extra1name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra1name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="text" class="textareahtml" name="extra1-$x" />
</td>
</tr>
PPPRINT;
}

if ( $Globals['extra2name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra2name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="text" class="textareahtml" name="extra2-$x" />
</td>
</tr>
PPPRINT;
}

if ( $Globals['extra3name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra3name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="dropdown" class="textareahtml" name="extra3-$x" />
</td>
</tr>
PPPRINT;
}

if ( $Globals['extra4name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra4name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="checkbox" class="textareahtml" name="extra4-$x" />
</td>
</tr>
PPPRINT;
}

if ( $Globals['extra5name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra5name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="dropdown" class="textareahtml" name="extra5-$x" />
</td>
</tr>
PPPRINT;
}

if ( $Globals['extra6name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra6name']}:</span>
</td>
<td class="alt1">
<input class="bginput" type="dropdown" class="textareahtml" name="extra6-$x" />
</td>
</tr>
PPPRINT;
}
==========

============= changed in "editphoto.tmpl" like that

Quote:
PPPRINT;
}

if ( $Globals['extra1name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra1name']}:</td>
<td class="alt1"><input class="bginput" type="text" value="$extra1" size="50" name="extra1" /></td></tr>
PPPRINT;
}

if ( $Globals['extra2name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra2name']}:</td>
<td class="alt1"><input class="bginput" type="text" value="$extra2" size="50" name="extra2" /></td></tr>
PPPRINT;
}

if ( $Globals['extra3name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra3name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra3" size="50" name="extra3" /></td></tr>
PPPRINT;
}

if ( $Globals['extra4name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra4name']}:</td>
<td class="alt1"><input class="bginput" type="checkbox" value="$extra4" size="50" name="extra4" /></td></tr>
PPPRINT;
}

if ( $Globals['extra5name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra5name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra5" size="50" name="extra5" /></td></tr>
PPPRINT;
}

if ( $Globals['extra6name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra6name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra6" size="50" name="extra6" /></td></tr>
PPPRINT;
}
=============

Yes, I have integrated photopost with vBulletin ...

"if your using the vbulletin integration you need to edit the vb3enhanced templates"

pl. tell me where is "vb3enhanced templates" I can't find it Photopost "Edit Template" list.


Thanks
Bills is offline   Reply With Quote
Old March 7th, 2007, 10:53 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
They are located in the vb3enhanced folder in the templates folder

Your free to discuss code modifications in THE MOD CORNER outside our support forums

Thanks
__________________
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 March 7th, 2007, 12:03 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
ok Chuck even after making the following changes in all the four files i.e.

templates/editphoto.tmpl
templates/bulkupload.tmpl
templates/vb3enhanced/editphoto.tmpl
templates/vb3enhanced/bulkupload.tmpl

the problem is still as it is ...

you are requested to make sure that my required results can be attained by making the following changes in these four files only. (pl. test run at your end with any field change)

=============
Quote:
PPPRINT;
}

if ( $Globals['extra1name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra1name']}:</td>
<td class="alt1"><input class="bginput" type="text" value="$extra1" size="50" name="extra1" /></td></tr>
PPPRINT;
}

if ( $Globals['extra2name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra2name']}:</td>
<td class="alt1"><input class="bginput" type="text" value="$extra2" size="50" name="extra2" /></td></tr>
PPPRINT;
}

if ( $Globals['extra3name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra3name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra3" size="50" name="extra3" /></td></tr>
PPPRINT;
}

if ( $Globals['extra4name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra4name']}:</td>
<td class="alt1"><input class="bginput" type="checkbox" value="$extra4" size="50" name="extra4" /></td></tr>
PPPRINT;
}

if ( $Globals['extra5name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra5name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra5" size="50" name="extra5" /></td></tr>
PPPRINT;
}

if ( $Globals['extra6name'] != "" )
{
echo<<<PPPRINT
<tr><td class="alt1">{$Globals['extra6name']}:</td>
<td class="alt1"><input class="bginput" type="dropdown" value="$extra6" size="50" name="extra6" /></td></tr>
PPPRINT;
}
=============

Thanks
Bills is offline   Reply With Quote
Old March 7th, 2007, 01:05 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
You are free to post modification questions in THE MOD CORNER. Product Support personnel do not participate in helping people modify their code.

I personally think you should just use the additional category extra fields which can be dropdowns checkboxes radios or text box and they will show correctly on the upload pages edit pages show photo pages etc. They are not searchable though.

Otherwise if you insist on modifying the default code you would be on your own to do so. I will say looking at your example the HTML is all wrong. Here is what valid input and select statements are

http://www.w3schools.com/tags/tag_input.asp

http://www.w3schools.com/tags/tag_select.asp
__________________
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 March 7th, 2007, 09:05 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
No matter I am still standing at the start point of this problem, but anyways

If possible move this thread to the MOD section, probably they can help me on that.

Thanks for your support Chuck
Bills is offline   Reply With Quote
Old March 8th, 2007, 09:21 AM   #16 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Chuck, I have tried to do it using all the tricks but not successful, and I hope the developers of photopost must solve this small problem (but big for me)

You are once again requested to either solve this problem or move this thread to "Mod" section but I have seen very small percentage of questions answered in Mod section of the forum.

"Even a small WORKING DROPDOWN & CHECKBOX example will solve my problem.

Thanks
Bills is offline   Reply With Quote
Old March 8th, 2007, 10:32 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
Your asking a mod question though and as I have responded this is not a support question. We have functional checkboxes dropdowns radio box addtional fields for categories in Admin => Edit Categories which you can use. They are not searchable though on the search page not how they are designed.

If you continue to want to modify the existing 6 extra fields per category which are searchable on the search page you would need to properly modify the templates to make those input boxes what you want. This would be something you post outside support in THE MOD CORNER. Depending on what your trying to do you might have modifications to make to PHP files etc

This provided you links on how to properly code an input or select box

Code:
Content visible to verified customers only.
This should explain our company policy on code hacks

http://www.photopost.com/forum/showthread.php?t=121154
__________________
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 March 8th, 2007, 11:07 AM   #18 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Chuck thanks for a reply, I have "already" tried this with the following code which is almost similar to the one you posted, but you will be surprised this "only" shows for a selection but when yesterday I tried this with "two" checkbox clicks i.e. bike and car it only "saves one" value.



if ( $Globals['extra4name'] != "" ) {
echo<<<PPPRINT
<tr>
<td class="alt1">
<span class="smallfont">{$Globals['extra4name']}:</span>
</td>
<td class="alt1">
<form>
I have a bike:
<input class="bginput" type="checkbox" value="Bike" size="50" name="extra4-$x" />
I have a car:
<input class="bginput" type="checkbox" value="Car" size="50" name="extra4-$x" />
I have an airplane:
<input class="bginput" type="checkbox" value="Airplane" size="50" name="extra4-$x" />
I have an ship:
<input class="bginput" type="checkbox" value="Ship" size="50" name="extra4-$x" />
</form>
</td>
</tr>
PPPRINT;
}

I generally don't like disturbing unless I haven't tried or I am in a fix. For an experienced programmer playing with photoshop for years it may be an easy task, but even this small thing is shaking me all the way.

Like the way you said I will also try to cut paste the same problem in MOD section but I don't see anyone except you to answer this problem over there too.
Bills is offline   Reply With Quote
Old March 8th, 2007, 11:39 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
Bill you need to use the additional extra fields per categories if you want to use dropdowns radio's or checkboxes otherwise you will have lots of modification to do to get the regular input extra fields to work like that.
__________________
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 March 8th, 2007, 12:58 PM   #20 (permalink)
Member
Verified Customer
 
Join Date: Jan 2007
Posts: 55
Thanks for a reply Chuck, in the beginning of this thread I said "additional field" work "fine" but with a limitation that it can't be included in search. "and that's very important for me and I hope lot of other's too". So now no matter how much of changes required in "php" files and tmpl files, sooner or later with support or without support I want to do it and I am sure I will do it (I always think positive) But in all this a guideline from you guys "will indeed" be a no doubt "big support".

Maybe wrong I also feel that some changes are also required in "adm-cats.php"

Lastly I will just say through this thread or through MOD section of this forum your help is welcome and will be highly appreciated to make the thinks faster

Bills 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
Additional field type aacircle ReviewPost Bug Reports 2 November 9th, 2006 09:59 AM
Additional field type: Order aacircle ReviewPost How do I...? 2 November 8th, 2006 12:14 PM
Add a new field type? Rich Z Classifieds Suggestions 0 March 23rd, 2005 03:28 AM


All times are GMT -5. The time now is 12:16 PM.

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