Author |
Message |
Deseroka
Client

Joined: Apr 15, 2003
Posts: 466
Location: FL
|
Posted:
Tue Apr 04, 2006 2:05 pm |
|
On the risk of sounding stupid (what the hey, I'm used to it) can someone direct me on what to do in order for the final page shown after using the feedback form to be a custom page?
Sorry if this has been touched on, I searched to no avail.
Thanks in advance. |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Tue Apr 04, 2006 3:31 pm |
|
Whitch feedback form?
the old version or the new one in ravenuke? |
|
|
|
 |
Deseroka

|
Posted:
Tue Apr 04, 2006 8:12 pm |
|
DUH! Sorry, just the standard one in 7.6.3.1 |
|
|
|
 |
hitwalker

|
Posted:
Tue Apr 04, 2006 8:29 pm |
|
Well there isnt realy a final page or whatever.
it basically shows "FBTHANKSFORCONTACT","Thank you for contacting us"
So infact ,you can just as well edit that part in the index.php file of Feedback and give it anything you want.. |
|
|
|
 |
Deseroka

|
Posted:
Wed Apr 05, 2006 7:24 am |
|
No, I need a custom page, it's not something just the langauage files will handle, I don't think. I need to be able to add an opportunity for them to donate to the site from there, and also add the text that they have contacted me concerning the designated subject. Looks as tho I'm gonna have to do this outside the site, tho I really wanted to make it for members only.
I'd appreciate any ideas anyone may have....
Thanks Hitwalker! |
|
|
|
 |
hitwalker

|
Posted:
Wed Apr 05, 2006 7:53 am |
|
Well i dont realy mean by language but by adding a bit design.
In the feedback form change this ..
echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
To :
echo "<table width=100%><tr><td>"._CUS1."</td></tr><tr><td>"._CUS2." </td></tr></table>";
Add to the Feedback lang :
define("_CUS1","Bla bla this is area 1 on top table")
define("_CUS2","Bla bla this is area 2 on lower table"); |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 5:42 am |
|
Thanks Hitwalker, I'll give it a try. Cross your fingers for me! |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 5:46 am |
|
well this works....
if you have a different layout in mind just draw it for and ill make it and post it again...
you can alter the language in to the text you want. |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 6:17 am |
|
Arrg, I feel like I'm in english class. I keep getting a syntax error and can't locate it.
unexpected T_STRING, expecting ',' or ';'
Isn't this usually something that has a " doubled up or something?
Yeah, I know, it's something alright--I'm still on my first coffee.... |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 6:19 am |
|
can you put your index.php (Feedback) in here... |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 6:23 am |
|
Yes, thanks so much for your help.
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* http://www.InternetIntl.com */
/* jack@internetintl.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
if ($cookie[1] != "") {
$sql = "SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[name] != "") {
$sender_name = $row[name];
} else {
$sender_name = $row[username];
}
$sender_email = $row[user_email];
}
$form_block = "
<center><font class=\"title\"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class=\"content\">"._FEEDBACKNOTE."</font>
<FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
<P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\""._SEND."\"></p>
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class=\"option\"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$sender_name = removecrlf($sender_name);
$sender_email = removecrlf($sender_email);
$msg = "$sitename\n\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= ""._MESSAGE.": $message\n\n";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<p><center>"<table width=100%><tr><td>"._CUS1."</td></tr><tr><td>"._CUS2." </td></tr></table></center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?> |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 6:30 am |
|
here you go...
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* http://www.InternetIntl.com */
/* jack@internetintl.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
if ($cookie[1] != "") {
$sql = "SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[name] != "") {
$sender_name = $row[name];
} else {
$sender_name = $row[username];
}
$sender_email = $row[user_email];
}
$form_block = "
<center><font class=\"title\"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class=\"content\">"._FEEDBACKNOTE."</font>
<FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
<P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\""._SEND."\"></p>
</FORM></center>";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class=\"option\"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$sender_name = removecrlf($sender_name);
$sender_email = removecrlf($sender_email);
$msg = "$sitename\n\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= ""._MESSAGE.": $message\n\n";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<p><center><table width=100%><tr><td>"._CUS1."</td></tr><tr><td>"._CUS2." </td></tr></table></center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?> |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 6:40 am |
|
Thanks, I now get the same error on line 35, tho comparing to my back up index of the mod it looks identical to me.
Wait! My bad, let me look again. Sorry, sounds like it's time for the second coffee. |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 6:45 am |
|
yes you do need a coffee,i found the error and its fine...lol |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 6:56 am |
|
My error now is in the language file, I just was not paying attention to the detail of that. I still have an error at line 35 after the form is sent. I think it is because I am trying to add a form into the language file, but I don't know enough to fix it. |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 7:01 am |
|
now its not your fault...
i missed something....
look here...
define("_CUS1","Bla bla this is area 1 on top table") < < < <
define("_CUS2","Bla bla this is area 2 on lower table");
That ; is missing.....lol
Change the 2 lines to:
define("_CUS1","Bla bla this is area 1 on top table");
define("_CUS2","Bla bla this is area 2 on lower table"); |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 7:08 am |
|
I caught that. I can completely remove any define from _CUS2 and everything works, but if I attempt to put in a paypal form or link it will give the the parse error. |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 7:10 am |
|
i dont understand.....what are you trying to put in?
Are you talking about the language area?
If so thats correct...dont forget to escape everey " like \" |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 7:23 am |
|
I'm sorry, English is my first language, I just haven't mastered it yet....
In the second define _CUS2, I am attempting to insert a link to paypal. It will not accept a form at all, tho I can get it to take an email link, just it is not an active link. I have tried putting \ before the "https://" and following but then come up with another parse error. I know that it is something really simple and obvious that I am missing, which just makes me feel all the more dense. |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 7:25 am |
|
well if its to private to post or whatever,isnt it easier to send me with description whatever it is you want to put in? |
|
|
|
 |
Deseroka

|
Posted:
Thu Apr 06, 2006 9:12 am |
|
Ok, I have it working with a simple link now. I have no hair left, but it's working. Can someone tell me how I can limit access to once per week? (Yeah, 3 years with Nuke and I still flounder at some things ) |
|
|
|
 |
hitwalker

|
Posted:
Thu Apr 06, 2006 9:20 am |
|
You still need the full code in it like you maild me or is that ok now?
And what is that with once a week? |
|
|
|
 |
|