Gossamer Forum
Home : Products : DBMan : Customization :

Hidden Fields in Email Forward

Quote Reply
Hidden Fields in Email Forward
ould someone help? I don't mind a JPDeni.

I have already istalled the File Upload MOD and Foward Record MOD. The problem is about "hidden

fields". When users click on "Send Mail to Friend" button, It reveals all the info including

address, email, etc., which I don't want them to see until an agreement is reached.

The auto_generate feature will not work with File Upload so the option of using -2 is out.

I beg any guru for assistance.
Quote Reply
Re: [bodemesh] Hidden Fields in Email Forward In reply to
The mod can be changed to only include the fields that you select to send.

Please check out the FAQ noted below under the section "Email" and I'm sure you will find examples of how to make the necessary changes to the mod.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [bodemesh] Hidden Fields in Email Forward In reply to
Thanks, I'll check. It seems so simple.

Meanwhile, could you please help solve this problems?

I have been trying for about a week now to align my image beside the returned record fields but it keeps pushing them under in vertical format. I'll rather wat them to align horizontally.

Then, I want to have a link from "Details" (on "list all" page) to a different web page where I have comprehensive info about our model (this include video clips that will not go into dbman. ""Details" should point to the actual model's .html which I would have designed and uploaded differently but with each registered member "userid" or "ScreenName" such as "userid.html"

Hope you understand me? Thanks in anticipation.
Quote Reply
Re: [bodemesh] Hidden Fields in Email Forward In reply to
As far as your images, is this in the long display? It's hard to guess exactly what you are trying to do without being able to see the display you are referring to. Can you provide the url to take a look?

You could create a field which holds the name of the page you want to provide a "more info" link within the list all display. I don't understand what you mean by the following:

but with each registered member "userid" or "ScreenName" such as userid.html"

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Hidden Fields in Email Forward In reply to
LoisC,

I am using default display, the fact is that I normally develop my websites locally (using Apache} on my system then upload when satisfied.

I don't know any other way to show you than to paste the code below, but if you insist, then I'll have to probably upload the whole site, though it is a comprehensive site.

Here goes:

sub html_record {

# --------------------------------------------------------

# How a record will be displayed. This is used primarily in

# returning search results and how it is formatted. The record to

# be displayed will be in the %rec hash.

my (%rec) = @_; # Load any defaults to put in the VALUE field.

$rec{$db_key} =~ s/<?.B>//g;

($db_auto_generate and print &build_html_record(%rec) and return);

#### # to close off a previous print qq| statement

opendir (GRAPHIC, "$SAVE_DIRECTORY")

or &cgierr("unable to open directory in delete records: $SAVE_DIRECTORY. Reason:

$!"); @files = readdir(GRAPHIC); closedir (GRAPHIC); $file_test = $rec{$db_key}

. "."; foreach $file (@files) { if ($file =~ /^$file_test/) { print qq|

<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">

<tr bgcolor="#CCCCCC">

<td colspan="2" align="default"><img name="grey_placer" src="" width="5" height="2" alt="" style="background-color: #CCCCCC"></td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td width="100" align="left"><table width="100" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="10"></td>

<td align="left"></td>

</tr>

<img src= "$SAVE_DIRECTORY_URL/$file">

<td align="left">|; $graphic_found=1;

</table>

} } print qq| |; unless ($graphic_found) { print qq| </td>

<td width="300"><table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="10"></td>

<td align="left"></td>

</tr>

<img src="http://bode-ibm/uploads/default_graphic.gif">

<td>|;

}

my $font_color = 'Font face="Verdana, Arial, Helvetica" Size=2

Color=#003399'; my $font = 'Font face="Verdana, Arial, Helvetica" Size=2';

print qq|

<table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="200"><strong><font size="2" face="Arial, Helvetica">$rec{'ScreenName'}</font></strong></td>

<td width="100"><font size="-2" face="Arial, Helvetica"><strong>$rec{'Category'}</strong></font></td>

</tr>

</table></tr>

</table>

<table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

<td bgcolor="#FF0000"><img name="red_line_placer" src="" width="3" height="1" alt="" style="background-color: #FF0000"></td>

</tr>

</table>

<table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><font size="-2" face="Arial, Helvetica">$rec{'Profile'}..</font></td>

</tr>

</table>

<table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="200"><strong><font size="-2" face="Arial, Helvetica" font color="red">$rec{'City'}</a></font></td>

<td width="100"><font size="-2" face="Arial, Helvetica"><strong><a href="http://bode-ibm/$rec{'ScreenName'}.html"><$rec{'ScreenName'}.html>Details</a></font></td>

</tr>

</table></td>

</tr>

</table>

</TABLE><td>&nbsp;</td>

|;

}

Quote Reply
Re: [bodemesh] Hidden Fields in Email Forward In reply to
Try adding the coding for the upload mod within the table where you want it to be displayed rather than above in a separate table for instance you could use something like this:

<TABLE width=500 cellpadding=0 cellpadding=0 border=1>
<TR valign=top><TD width="250">
|;
opendir (GRAPHIC, "$SAVE_DIRECTORY") or &cgierr("unable to open directory in delete records: $SAVE_DIRECTORY. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
$file_test = $rec{$db_key};
foreach $file (@files) {
# if ($file =~ /^$file_test/) { see image23.txt
if ($file =~ /^$file_test\./) {
print qq|<IMG SRC= "$SAVE_DIRECTORY_URL/$file" ALT="$rec{'Title'}" BORDER=0 ALIGN=Middle>|;
$graphic_found=1;
}
}
unless ($graphic_found) { print qq| <img src="http://bode-ibm/uploads/default_graphic.gif"> |;
}
print qq|</TD><TD width="250">

<TABLE><TR><TD><B><$font>$rec{'ScreenName'}</B></font></TD>
<TD align=right>$rec{'Category'}</TD></TR>
<TR><TD colspan=2><$font>$rec{'Profile'}..</font></TD></TR>
<TR><TD> $rec{'City'}</TD><TD><B><a href="http://bode-ibm/$rec{'ScreenName'}.html">$rec{'ScreenName'} Details</a></TD></TR></TABLE>
</TD></TR></TABLE>

You'll need to add back some of your font and background colors if you use the example.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [bodemesh] Hidden Fields in Email Forward In reply to
Wait a minute....

Oh Yea! It works, I'll get back to you soon. I guess I need you so badly.

Regards

-Bode Mesh