Is it possible to create a mod that would allow a registered user to click a link to email the admin a list of images they have in their lightbox, possibly with a comment? It just needs to have a simple comment field, then email the image names.
As soon as I get everything re-packaged I'll post my translated version (if Bernd doesn't mind).
Can you give me some advice on how to better format the email that is sent? Maybe adding some spaces between the requested images, etc...
while (list($textfeld, $wert) = each ($HTTP_POST_VARS))
$inPHormer_msg .= "$textfeld: $wert\n";
while (list($textfeld, $wert) = each ($HTTP_POST_VARS))
{
if (preg_match("/Bildnr/", $textfeld)) {
$inPHormer_msg .= "\n------------\n\n";
}
else ;
$inPHormer_msg .= "$textfeld: $wert\n";
}
[..]
Angebot_via: email
------------
Bildnr_1: 011-10-02
Verwendungszweck_1: z.B. Plakate
Abb_Breite_1:
Abb_Hoehe_1:
Plazierung_1: innen
Auflage_1:
Verbreitung_1: Land
Verbreitungsland_Bezeichnung_1: Deutschland
Nutzungsdauer_1: 1 Jahr
Andere_Nutzungsdauer_1:
Branchensperre_1: nein
Bemerkung_1:
------------
Bildnr_2: 040-10-23
Verwendungszweck_2: z.B. Plakate
Abb_Breite_2:
Abb_Hoehe_2:
Plazierung_2: innen
Auflage_2:
Verbreitung_2: Land
Verbreitungsland_Bezeichnung_2: Deutschland
Nutzungsdauer_2: 1 Jahr
Andere_Nutzungsdauer_2:
Branchensperre_2: nein
Bemerkung_2:
[..]
Can you give me some advice on how to better format the email that is sent? Maybe adding some spaces between the requested images, etc
Ok. Here's a rough translation of Bernd's lightbox send mod (including the last email format). Read the readme.txt included.
http://www.coolfront.com/english_translation.zip
Jarmen
<b>Distribution</b><br>
<input type=\"radio\" name=\"Distribution(".$running_number.")\" value=\"North_America\" onFocus=\"if(Angebotsanfrage.Distribution_Country(".$running_number.".value!='') Angebotsanfrage.Distribution_Country(".$running_number.".value=''\">
North America
<br>
<input type=\"radio\" name=\"Distribution(".$running_number.")\" value=\"Worldwide\" onFocus=\"if(Angebotsanfrage.Distribution_Country(".$running_number.".value!='') Angebotsanfrage.Distribution_Country(".$running_number.".value=''\">
Worldwide<br>
<b>Distribution</b><br>
<input type=\"radio\" name=\"Distribution(".$running_number.")\" value=\"North_America\"
onFocus=\"if(Angebotsanfrage.Distribution_Country".$running_number.".value!='')
Angebotsanfrage.Distribution_Country".$running_number.".value=''\">
North America
<br>
<input type=\"radio\" name=\"Distribution(".$running_number.")\" value=\"Worldwide\"
onFocus=\"if(Angebotsanfrage.Distribution_Country".$running_number.".value!='')
Angebotsanfrage.Distribution_Country".$running_number.".value=''\">
Worldwide<br>
$inPHormer_headSend = "From: imagerequest@yourdomain.com";
$inPHormer_headSend = "From: ".$HTTP_POST_VARS['user_email']."(".$HTTP_POST_VARS['user_name'].")";
$thumbnails .= "<tr class=\"imagerow2\"><td width=\"100\"><b>Email</b></td><td><input type=\"text\" name=\"Email\" value=\"".$user_info['user_email']."\"></td>\n";
$thumbnails .= "<tr class=\"imagerow2\"><td width=\"100\"><b>Email</b></td><td><input type=\"text\" name=\"user_email\" value=\"".$user_info['user_email']."\"></td>\n";
$thumbnails .= "<tr class=\"imagerow1\"><td width=\"100\"><b>Registered Name</b></td><td><input type=\"text\" name=\"Registered Name\" value=\"".$user_info['user_name']."\"></td>\n";
$thumbnails .= "<tr class=\"imagerow1\"><td width=\"100\"><b>Registered Name</b></td><td><input type=\"text\" name=\"user_name\" value=\"".$user_info['user_name']."\"></td>\n";
From: BigMagazine [editor@bigmagazine.com]
Thanks fot TheOracel he gave me the information i needed!
$inPHormer_subj = "Image Request - Stock Photos";
$inPHormer_subj = "Image Request - Stock Photos by: ".$HTTP_POST_VARS['user_name']."";
<b>Registered Name</b>
<b>".$lang['registered_name']."</b>
Company</td>
".$lang['company_name']."</td>
<b>Full Name</b>
<b>".$lang['full_name']."</b>
Address</td>
".$lang['address_field']."</td>
Telephone</td>
".$lang['phone_number']."</td>
City</td>
".$lang['iptc_city']."</td>
<b>Email</b>
<b>".$lang['email']."</b>
State</td>
".$lang['iptc_state']."</td>
Fax</td>
".$lang['fax_number']."</td>
Country</td>
".$lang['iptc_country']."</td>
Angebot per</td>
".$lang['optional_fields']."</td>
checked> eMail
checked> ".$lang['email']."
value=\"fax\"> Fax.
value=\"fax\"> ".$lang['fax_number']."
value=\"post\"> Post
value=\"post\"> ".$lang['postal_code']."
Telefon
".$lang['phone_number']."
<b>Intended Usage</b>
<b>".$lang['intended_usage']."</b>
Commercial<br>
".$lang['commercial_order']."<br>
Personal<br>
".$lang['personal_order']."<br>
<br>Short Description
<br>".$lang['short_description']."
<b>Size Requirements</b><br>
<b>".$lang['size_requirements']."</b><br>
<b>Image Placement</b>
<b>".$lang['image_placement']."</b>
Editorial<br>
".$lang['editorial_title']."<br>
Advertisement<br>
".$lang['advertisement_title']."<br>
Other<br>
".$lang['other_statement']."<br>
Composite
".$lang['composite_title']."
Original
".$lang['original_statement']."
<b>Media Name/Edition</b>
<b>".$lang['media_name_edition']."</b>
<b>Distribution</b>
<b>".$lang['distribution_title']."</b>
North America
".$lang['country_north_america']."
Worldwide<br>
".$lang['worldwide_title']."<br>
Specific Country
".$lang['specific_country']."
<b>Usage duration</b>
<b>".$lang['usage_duration']."</b>
1 Year Non-exclusive
".$lang['year_exclusive']."
Unlimited
".$lang['unlimited_statement']."
Other (specify below)
".$lang['other_below']."
<b>Additional Comments</b>
<b>".$lang['additional_comments']."</b>
?>
//-------------------------------------------------------------
//--- Quotation form ------------------------------------------
//-------------------------------------------------------------
$lang['registered_name'] = "Registered name";
$lang['company_name'] = "Company name";
$lang['full_name'] = "Full name";
$lang['address_field'] = "Address";
$lang['phone_number'] = "Phone number";
$lang['fax_number'] = "Fax number";
$lang['postal_code'] = "Postal code";
$lang['optional_fields'] = "Optional fields";
$lang['intended_usage'] = "Intended usage";
$lang['commercial_order'] = "Commercial";
$lang['personal_order'] = "Personal";
$lang['short_description'] = "Short description";
$lang['size_requirements'] = "Size requirements";
$lang['image_placement'] = "Image placement";
$lang['editorial_title'] = "Editorial";
$lang['advertisement_title'] = "Advertisement";
$lang['other_statement'] = "Other";
$lang['composite_title'] = "Composite";
$lang['original_statement'] = "Original";
$lang['media_name_edition'] = "Media name / Edition";
$lang['distribution_title'] = "Distribution";
$lang['country_north_america'] = "North America";
$lang['worldwide_title'] = "Worldwide";
$lang['specific_country'] = "Specific country";
$lang['usage_duration'] = "Usage duration";
$lang['year_exclusive'] = "1 Year Non-exclusive"; // Specify the year time if the number showing is incorrect for your case.
$lang['unlimited_statement'] = "Unlimited";
$lang['other_below'] = "Other (specify below)";
$lang['additional_comments'] = "Additional comments";
// Edit the following
//this should point to your error page if something goes wrong, currently just goes to index.
$inPHormer_err = "http://www.foto-kocher.com";
//this should point to your confirmation page (with a refresh to index.php), currently just goes to index.
$inPHormer_ok = "http://www.foto-kocher.com/vda.php";
a, aber selbst da geht's bei mir nicht?!
Ich hab sicher nen falschen Link eingebunden.
Das ist ja alles eine html. und wenn die action= lw soll der Link zu den führenden angezeigt werden und umgekehrt....
Verstehst Du, was ich meine?
<input type=\"hidden\" name=\"Image_Name(".$running_number.")\" value=\"".$image_row['image_name']."\">
<input type=\"hidden\" name=\"Category_Name(".$running_number.")\" value=\"".$image_row['cat_name']."\"><br>
But the link does't work for me. The link ist not in the sendet mail.
And can you do it so that the ful images where in the mail sendet?
And can you do it so that the ful images where in the mail sendet?
That the link and the big picture from the galery are add to the mail
<a href=\"".$site_sess->url(ROOT_PATH."details.php?image_id=".$image_row['image_id'])."\" target=\"_blank\"><input type=\"hidden\" name=\"Image_Name(".$running_number.")\" value=\"".$image_row['image_name']."\"></a>
can select picture have a lightbox - then going to the quotation.php still works - but after i subit - the submit prozess wil be realy slow - then as it should be come up a thankyou-page then back to the lightbox.php - but the request never came to the email - the email is right allready checked
Parse error: parse error, unexpected '<' in /home/www/html/images/includes/template.php(133) : eval()'d code on line 200
Below is the result of your feedback form. It was submitted by
email@example.com on September 8th, 2005 at 09:20AM (NZST).
Company: Tester Co LTD
Full_Name: Mr Tester
Address: Testing Avenue
City: Testville
user_email: xxx@xxx.com
Country: Testoserone
Image_Name(1): 2004 069
Intended_Usage_general(1): Personal
Intended_Usage(1): It's Personal
Width(1): 10
Height(1): 10
Image_Placement(1): Composite
Media_Name/Edition(1): TestMag
Distribution(1): Worldwide
Usage_duration(1): Unlimited
Additional_Comments(1): None
Image_Name(2): 2004 070
Image_Placement(2): Editorial
Usage_duration(2): 1 Year Non-exclusive
Image_Name(3): 2004 071
Image_Placement(3): Editorial
Usage_duration(3): 1 Year Non-exclusive
Image_Name(4): Photo of Display
Image_Placement(4): Editorial
Usage_duration(4): 1 Year Non-exclusive
submit: Submit
email: email@example.com
-------- Env Report --------
REMOTE_HOST:
REMOTE_ADDR: 192.168.1.2
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050324 Firefox/1.0.2
there is no body to the message.
Quote
there is no body to the message.
Of course not, PHPMail doesn't recognize 4images's sessions when sending the e-mails since 4images uses $site_email to track your user's quotation information. ;)
So how does it work then?
You said that as if I should have known that
hope still somebody could find out whats going wrong
<?php
while (list($textfeld, $wert) = each ($HTTP_POST_VARS))
{
if (preg_match("/Image_Name/", $textfeld)) {
$inPHormer_msg .= "\n------------\n\n";
}
else ;
$inPHormer_msg .= "$textfeld: $wert\n";
}
//-------------------
// Edit the following
//this should point to your error page if something goes wrong, currently just goes to index.
$inPHormer_err = "http://www.foto-kocher.com";
//this should point to your confirmation page (with a refresh to index.php), currently just goes to index.
$inPHormer_ok = "http://www.foto-kocher.com/vda.php";
// Subject of email
// $inPHormer_subj = "Foto_Anfrage: ";
$inPHormer_subj = "Foto_Anfrage von: ".$HTTP_POST_VARS['user_name']."";
// The email the form gets sent to
$inPHormer_mailTo = "anfrage@foto-kocher.com";
// Who the email says it's from. Updated to use the users login name and email (thanks to Chris).
$inPHormer_headSend = "From: ".$HTTP_POST_VARS['user_email']."(".$HTTP_POST_VARS['user_name'].")";
//-------------------end edit
mail($inPHormer_mailTo, $inPHormer_subj, $inPHormer_msg, $inPHormer_headSend);
header("Location: $inPHormer_ok");
?>
could you point me what you mean with this update?
Here :
http://www.4homepages.de/forum/index.php?topic=9289.msg43918#msg43918
As for the quotation_send.php file, I cannot say since it used to work before and now it doesn't. It might simply be a server-side issue which is why it is imperative that you install my new version of the ' Global Server Information ' MOD.
• Your saved session path on your server could not be detected - which is bad since this option has been disabled from your ISP. It would be strongly recommended that you report this issue to your web hosting party and request this path to be enabled from his php.ini file.
• Your saved session path on your server has been set on read-only mode from your ISP - which is bad. It would be strongly recommended that you report this issue to your web hosting party and request this path to be writable from his php.ini file.
I find that many visitors get turned off by having to register and I've modified my site so that the registration process has been removed. Visitors can just use the lightbox without having to register but I can't get this mod, which I'd really like to have, to work properly when I try to remove its call to the lightbox registration notice.
Can anyone solve this problem and perhaps post a revised version of this lightbox email mod that covers all the tweaks mentioned in the 7 pages of posts so far? Having not come in at the start of the thread it can be difficult to follow up on the evolution of the code.
Thanks
Hello
still have the problem - but i found out that the sendig prozess is diferent in this (quotation_send.php) then in the send Postcart or send coment!
the help i hope is somebody could modifie this mod to use a different sending prozess!
sincerly
vincent
- sondern über einen Localhost -das ist sehr allgemein...
If you dont mind, would post a link to the page where you took the code from?
maybe it is because my homepage is on a MS-WIN-Server!
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.katalog_nr, i.marke, i.land, i.zusatz_text, i.plu, i.farbe, i.t_farbe, i.form, i.material, i.breite, i.hoehe, i.specials, i.anzahl, i.album_seite, i.acq_datum, i.acq_quelle, i.kurs, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE image_active = 1 AND image_id IN (167, 168, 169, 170) AND c.cat_id = i.cat_id AND i.cat_id IN (0, 22, 17, 3, 33, 41, 4, 7, 44, 34, 32, 14, 1, 24, 8, 47, 39, 30, 5, 2, 11, 12, 10, 40, 9, 28, 38, 29, 18, 13, 48, 20, 19, 16, 6, 21, 27, 25, 23, 26, 15) ORDER BY image_name ASC LIMIT 0, 12
Unknown column 'i.user_id' in 'on clause'
Note: Beginning with MySQL 5.0.12, natural joins and joins with USING, including outer join variants, are processed according to the SQL:2003 standard. These changes make MySQL more compliant with standard SQL. However, they can result in different output columns for some joins. Also, some queries that appeared to work correctly in older versions must be rewritten to comply with the standard.
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE image_active = 1 AND image_id IN ($image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
ORDER BY ".$config['image_order']." ".$config['image_sort']."
LIMIT $offset, $perpage";
if ($user_info['user_level'] != GUEST) {
$lightbox_url = $self_url;
$lightbox_url .= (!empty($mode)) ? ((preg_match("/\?/", $lightbox_url)) ? "&" : "?")."mode=".$mode : "";
$lightbox_url .= preg_match("/\?/", $lightbox_url) ? "&" : "?";
if (check_lightbox($image_row['image_id'])) {
$lightbox_url .= "action=removefromlightbox&id=".$image_row['image_id'];
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a>";
}
else {
$lightbox_url .= "action=addtolightbox&id=".$image_row['image_id'];
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onmouseover=stm(Text[7],Style[0]) onmouseout=htm()><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a>";
}
}
else {
$lightbox_button = "<img src=\"".get_gallery_image("lightbox_off.gif")."\" border=\"0\" alt=\"\" />";
}
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name
FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c, ".USERS_TABLE." u
WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id AND i.user_id = u.user_id $cat_match_sql
ORDER BY i.image_votes DESC, i.image_name ASC
LIMIT 20";
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c, ".USERS_TABLE." u )
WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id AND i.user_id = u.user_id $cat_match_sql
ORDER BY i.image_votes DESC, i.image_name ASC
LIMIT 20";
<?php
while (list($textfeld, $wert) = each ($HTTP_POST_VARS))
<?php
while (list($textfeld, $wert) = each ($_POST))
$inPHormer_headSend = "From: ".$HTTP_POST_VARS['E-Mail']."(".$HTTP_POST_VARS['Name_oder_Firma'].")";
$inPHormer_headSend = "From: ".$_POST['EMail']."(".$_POST['Name_oder_Firma'].")";
$inPHormer_err = "http://www.site.com/index.php";
and $inPHormer_ok = "http://www.site.com/index.php";
so that language stays correctly after mail sent? Have tried $inPHormer_ok = "".$site_sess->url(ROOT_PATH."index.php")."";
but getting this error : Fatal error: Call to a member function url() on a non-object in /****/****/quotation_send.php on line 22
Is it possible to make it work like this?