- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 60 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - GT and Contact Plus [ ]
Author
Message
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Wed Sep 03, 2003 9:02 pm
IACOJ
Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Wed Sep 03, 2003 10:55 pm
Have you had problems creating depts for contacting? Or they just don't show up in the drop down menu and you get the error instead?
laurel2k
Nuke Soldier
Joined: Aug 21, 2003
Posts: 14
Posted:
Thu Sep 04, 2003 7:09 am
The problem I am getting is a fatal error. The module loads but only half of the form is displayed. It stops at the drop down menu that allows you to select what department you want to contact.
The drop down menu displays the following fata error message:
Fata Error: call to a member function on a non-object in /....../modules/contact/index.php on line 95
The strange thing about this is that the contact module works fine under Netscape, 7.1 at least, but not under IE 6.0
I don't know if GT is to blame but my contact module quit functioning after I installed GT. Coincidence?
Jorge
www.diecast-source.com
IACOJ
Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Fri Sep 05, 2003 7:43 pm
When you were configuring the contact module, adding the depts did you have any problems?
Could you try to add one after have GT in there to see if it gives an error please.
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 06, 2003 11:58 am
IACOJ
Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Sat Sep 06, 2003 2:48 pm
Can you disable GT please so it can be tested to see if the error persists.
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sat Sep 06, 2003 2:51 pm
IACOJ
Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Sat Sep 06, 2003 2:55 pm
Please return the copyrights and credits for Nuke and the SubSystem theme you are using.
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 06, 2003 2:56 pm
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 06, 2003 2:57 pm
laurel2k
Nuke Soldier
Joined: Aug 21, 2003
Posts: 14
Posted:
Sat Sep 06, 2003 7:08 pm
I can still adds depts. to the contact module. The admin page for the module works just fine.
Jorge
www.diecast-source.info
Imago
Captain
Joined: Jan 17, 2003
Posts: 629
Location: Europe
Posted:
Sun Sep 07, 2003 2:03 am
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Sep 07, 2003 9:46 pm
IACOJ wrote:
Please return the copyrights and credits for Nuke and the SubSystem theme you are using.
Ok smart Rainbow Brite, try to get yourself some glasses before pick on someone.
What do you see there?
Now here is a quote from their ReadMe File:
Quote:
If you like this theme please consider adding the included OurLink button to your site.
CAN you see the link to the auther where I thought would fit well, visible?
Now please either help others out or don't say anything at all, you are a support staff, not a copyright (a blind one too) police.
Imago, I was having the excat problems problems are had to change something in the index.php file of the module...
Let me paste the whole code for the people to find out what changes I have made
Please see next post.
_________________Only FREE Dating site for Desis.
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Sep 07, 2003 9:50 pm
Ok, here is the code.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Contact Plus V2.2 for Nuke 6.5 */
/* Copyright (c) 2002 by Shawn Archer */
/* http://www.NukeStyles.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);
$pagetitle = "- "._CONTACTUS."";
$index = 1;
function ns_info() {
global $module_name, $sitename, $prefix, $dbi;
$result = sql_query("select address from ".$prefix."_ns_contact_add", $dbi);
list($address) = sql_fetch_array($result, $dbi);
$address = FixQuotes(nl2br($address));
echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" align=\"center\">";
echo "<tr><td align=\"left\">";
echo "$address";
echo "</td></tr></table><br>";
}
function ns_phone() {
global $module_name, $sitename, $prefix, $dbi;
echo "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">";
$result = sql_query("select pid, phone_name, phone_num from ".$prefix."_ns_contact_phone order by phone_name", $dbi);
while(list($pid, $phone_name, $phone_num) = sql_fetch_array($result, $dbi)) {
echo "<tr><td align=\"right\">";
echo "<font class=\"content\">$phone_name:</td>";
echo "<td align=\"left\">$phone_num</td></tr>";
}
echo "</table><br><br>";
}
function ns_form() {
global $module_name, $sitename, $prefix, $dbi;
include("header.php");
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
$result_s = sql_query("select show_add from ".$prefix."_ns_contact_show", $dbi);
list($show_add) = sql_fetch_array($result_s, $dbi);
if ($show_add == 1) {
echo "<br><br><center><font class=\"title\"><u>"._ADDRESSINFO."</u></font></center><br>";
ns_info();
echo "<hr>";
}
$result_p = sql_query("SELECT * FROM ".$prefix."_ns_contact_phone", $dbi);
$num = sql_num_rows($result_p, $dbi);
if ($num > 0) {
echo "<br><br><center><font class=\"title\"><u>"._PHONEINFO."</u></font></center><br>";
ns_phone();
echo "<hr>";
}
echo "<br><center><font class=\"title\">"._FORMHEADER." $sitename</font></center><br><br>";
if (is_user($user)) {
$result_ui = sql_query("select name, username, user_email from ".$prefix."_users where username='$cookie[1]'", $dbi);
list($yn, $yun, $ye) = sql_fetch_row($result_ui, $dbi);}
if ($yn != "") { $ns_un = $yn; } else { $ns_un = $yun; }
echo "<form action=\"modules.php?name=$module_name\" method=\"post\"";
echo "name=\"contact_plus\">";
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" align=\"center\">";
echo "<tr><td align=\"left\" valign=\"middle\"><font class=\"content\"><b>"._YOURNAME.":</b></font> ";
echo "<font class=\"tiny\">("._OPTIONAL.")</font><br>";
echo "<input name=\"cname\" size=\"35\" value=\"$ns_un\"></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._YOUREMAIL.":</b></font><br>";
echo "<input name=\"from\" size=\"35\" value=\"$ye\"></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._PLEASESELECT.":</b></font><br>";
echo "<select name=\"dpid\">";
echo "<option value=\"\" selected>---------------------------------";
echo "<option value=\"\">";
$result = $db->sql_query("select did, dept_name, dept_email from ".$prefix."_ns_contact_dept order by dept_name");
while ($row = $db->sql_fetchrow($result)) {
$did = $row[did];
$dept_name = $row[dept_name];
$dept_email = $row[dept_email];
echo "<option value=\"$did\">$dept_name";
}
echo "<option value=\"\">";
echo "</select></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._YOURMESSAGE.":</b></font><br>";
echo "<textarea cols=\"55\" name=\"message\" rows=\"12\" ></textarea></td></tr>";
echo "<tr><td colspan=\"2\" align=\"center\" valign=\"middle\">";
echo "<input type=\"hidden\" name=\"op\" value=\"ns_send\">";
echo "<input type=\"submit\" name=\"submit\" value=\""._SEND."\">";
echo " <input type=\"reset\" value=\""._CLEAR."\">";
echo "</td></tr></table></form>";
echo "<br>";
Closetable();
include("footer.php");
}
function ns_send($dpid, $cname, $from, $email, $message) {
global $module_name, $sitename, $prefix, $dbi;
include("header.php");
if(ereg("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$from)) {
} else {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._INVALIDEMAIL.":<br><br>";
echo"<font color=\"#CC0000\">$from</font><br><br>"._INVALIDEMAIL2."</font>";
echo"<br><br><br><font class=\"title\">"._PLEASEGO."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
if ($dpid == "") {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._SELECTDEPARTMENT."<br><br>";
echo""._PLEASEGO3."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
if ($message == "") {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._NOMESSAGE."<br><br>";
echo""._PLEASEGO2."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
$result = sql_query("select dept_name, dept_email from ".$prefix."_ns_contact_dept where did='$dpid'", $dbi);
list($dept_name, $dept_email)=sql_fetch_row($result, $dbi);
$department = $dept_name;
$department = stripslashes(trim($department));
$subject = $department;
$from = strip_tags(trim($from));
$message = stripslashes(trim($message));
$header = ""._FROM.": "._CONTACTFORM." - $cname <$from>\r\n";
$header .= "\n";
$header .= ""._VISITOR.": $cname <$from>\r\n\n";
$header .= ""._TODEPARTMENT.": $department\r\n\n";
$header .= ""._MESSAGE.":\r\n";
$header .= "\n==============================================================";
@$send=mail($dept_email,$subject,$message,$header);
if ($send == 1) {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo "<br>";
echo "<br><div align=\"center\"><font class=\"title\">"._THANKYOUFOR." $sitename</font>";
echo "<br><br>"._EMAILSENT."<br>"._GETBACK."</div><br><br>";
echo "<center>[ <a href=\"index.php\">"._HOME."</a> ] - ";
echo "[ <a href=\"modules.php?name=$module_name\">"._CONTACTFORM."</a> ]</center><br>";
echo "<br>";
CloseTable();
include ("footer.php");
} else {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<center><font class=\"title\">"._ERROR2."</font>";
echo"<br>"._TRYAGAIN."<br>";
echo"[ <a href=\"modules.php?name=Contact\">"._BACK."</a> ]</center>";
CloseTable();
include ("footer.php");
}
exit();
include("footer.php");
}
switch ($op) {
case "ns_send":
ns_send($dpid, $cname, $from, $email, $message);
break;
default:
ns_form();
break;
}
?>
_________________Only FREE Dating site for Desis.
mynukecops
Private
Joined: Jun 19, 2003
Posts: 41
Posted:
Mon Sep 08, 2003 6:27 am
I have Contact Plus installed on phpnuke6.7/6.8, googletap enabled. Everything is fine and even googletapped contact.html is working. See it at www.natrindex.com.
Only one thing is important to me that I commented out the last exit() method before include("footer.php") in index.php file. Otherwise the googletapped footer.php will not be loaded.
Goto page 1 , 2 Next
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum