Very new to this whole game.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Very new to this whole game.
spencerlail
CZ Newbie
spencerlail has been a member for over 20 year's 20 Year Member
Occupation: QA Test Engineer
Website:
Status: Offline
Joined: Jan 21, 2004
0.00 posts per day
Posts: 4
Points: 356
AIM Address  MSN Messenger ICQ Number
First things first I would like to thank you for such a killer resource site Telli! I have book marked this and once my site is up and running correctly I will be linking and leaving a big ol fat thanks on it!

Now down to my questions. PHP-Nuke 7.0 was just installed today on my site by my provider. I am receiving a few errors and would like to solve one at a time. This is the first one I am receiving. Parse error: parse error, unexpected ')' in \www\admin\modules\stories.php on line 1182. I pretty much know nothing about PHP so if you can refer me to a great resource book that is very basic that would rock!

Thanks!!!!

Spencer



Back to top Reply with quote
#2   re: Very new to this whole game.
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
There is a how to manual here [ Register or login to view links on this board. ]

and for your error i would look in the admin\modules\stories.php on line 1182 for a ")" that looks out of place. Or post line 1100-1300 in here for us to see.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Very new to this whole game.
spencerlail
CZ Newbie
spencerlail has been a member for over 20 year's 20 Year Member
Occupation: QA Test Engineer
Website:
Status: Offline
Joined: Jan 21, 2004
0.00 posts per day
Posts: 4
Points: 356
AIM Address  MSN Messenger ICQ Number
Here ya go Telli. Thank you once again!




}
$object = $db->sql_fetchrow($db->sql_query("SELECT pollID FROM ".$prefix."_poll_desc WHERE pollTitle='$pollTitle'"));
$id = $object->pollID;
for($i = 1; $i <= sizeof($optionText); $i++) {
if($optionText[$i] != "") {
$optionText[$i] = FixQuotes($optionText[$i]);
}
if(!$db->sql_query("INSERT INTO ".$prefix."_poll_data (pollID, optionText, optionCount, voteID) VALUES ($id, '$optionText[$i]', 0, $i)")) {
return;
}
}
} else {
$haspoll = 0;
$id = 0;
}
$result = $db->sql_query("insert into ".$prefix."_stories values (NULL, '$catid', '$aid', '$subject', now(), '$hometext', '$bodytext', '0', '0', '$topic', '$author', '$notes', '$ihome', '$alanguage', '$acomm', '$haspoll', '$id', '0', '0', '$associated')");
$result = $db->sql_query("select sid from ".$prefix."_stories WHERE title='$subject' order by time DESC limit 0,1");
list($artid) = $db->sql_fetchrow($result);
$db->sql_query("UPDATE ".$prefix."_poll_desc SET artid='$artid' WHERE pollID='$id'");
if (!$result) {
return;
}
if ($uid != 1) {
$row = $db->$db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='4'"));
$db->sql_query("UPDATE ".$user_prefix."_users SET points=points+$row[points] where user_id='$uid'");
$db->sql_query("update ".$user_prefix."_users set counter=counter+1 where user_id='$uid'");
}
$db->sql_query("update ".$prefix."_authors set counter=counter+1 where aid='$aid'");
if ($ultramode) {
ultramode();
}
deleteStory($qid);
}
}

function editStory($sid) {
global $user, $bgcolor1, $bgcolor2, $aid, $prefix, $db, $multilingual;
$aid = trim($aid);
$result = $db->sql_query("select radminarticle, radminsuper from ".$prefix."_authors where aid='$aid'");
list($radminarticle, $radminsuper) = $db->sql_fetchrow($result);
$result2 = $db->sql_query("select aid from ".$prefix."_stories where sid='$sid'");
list($aaid) = $db->sql_fetchrow($result2);
if (($radminarticle == 1) AND ($aaid == $aid) OR ($radminsuper == 1)) {
include ('header.php');
GraphicAdmin();
OpenTable();
echo "<center><font class=\"title\">"._ARTICLEADMIN."</font></center>";
CloseTable();
echo "<br>";
$result = $db->sql_query("SELECT catid, title, hometext, bodytext, topic, notes, ihome, alanguage, acomm FROM ".$prefix."_stories where sid=$sid");
list($catid, $subject, $hometext, $bodytext, $topic, $notes, $ihome, $alanguage, $acomm) = $db->sql_fetchrow($result);
$subject = stripslashes($subject);
$hometext = stripslashes($hometext);
$bodytext = stripslashes($bodytext);
$notes = stripslashes($notes);
$result2=$db->sql_query("select topicimage from ".$prefix."_topics where topicid=$topic");
list($topicimage) = $db->sql_fetchrow($result2);
OpenTable();
echo "<center><font class=\"option\">"._EDITARTICLE."</font></center><br>"
."<table width=\"80%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>"
."<table width=\"100%\" border=\"0\" cellpadding=\"8\" cellspacing=\"1\" bgcolor=\"$bgcolor1\"><tr><td>"
."<img src=\"images/topics/$topicimage\" border=\"0\" align=\"right\">";
themepreview($subject, $hometext, $bodytext, $notes);
echo "</td></tr></table></td></tr></table><br><br>"
."<form action=\"admin.php\" method=\"post\">"
.""._TITLE."<br>"
."<input type=\"text\" name=\"subject\" size=\"50\" value=\"$subject\"><br><br>"
.""._TOPIC." <select name=\"topic\">";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
echo "<option value=\"\">"._ALLTOPICS."</option>\n";
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
if ($topicid==$topic) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "</select>";
echo "<br><br>";
$asql = "SELECT associated FROM ".$prefix."_stories WHERE sid='$sid'";
$aresult = $db->sql_query($asql);
$arow = $db->sql_fetchrow($aresult);
$asso_t = explode("-", $arow[associated]);
echo "<table border='0' width='100%' cellspacing='0'><tr><td width='20%'>"._ASSOTOPIC."</td><td width='100%'>"
."<table border='1' cellspacing='3' cellpadding='8'><tr>";
$sql = "SELECT topicid, topictext FROM ".$prefix."_topics ORDER BY topictext";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
if ($a == 3) {
echo "</tr><tr>";
$a = 0;
}
for ($i=0; $i<sizeof($asso_t); $i++) {
if ($asso_t[$i] == $row[topicid]) {
$checked = "CHECKED";
break;
}
}
echo "<td><input type='checkbox' name='assotop[]' value='$row[topicid]' $checked>$row[topictext]</td>";
$checked = "";
$a++;
}
echo "</tr></table></td></tr></table><br><br>";
$cat = $catid;
SelectCategory($cat);
echo "<br>";
puthome($ihome, $acomm);
if ($multilingual == 1) {
echo "<br>"._LANGUAGE.":"
."<select name=\"alanguage\">";
$handle=opendir('language');
while ($file = readdir($handle)) {
if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
$langFound = $matches[1];
$languageslist .= "$langFound ";
}
}
closedir($handle);
$languageslist = explode(" ", $languageslist);
sort($languageslist);
for ($i=0; $i < sizeof($languageslist); $i++) {
if($languageslist[$i]!="") {
echo "<option name=\"alanguage\" value=\"$languageslist[$i]\" ";
if($languageslist[$i]==$alanguage) echo "selected";
echo ">".ucfirst($languageslist[$i])."\n</option>";
}
}
if ($alanguage == "") {
$sellang = "selected";
} else {
$sellang = "";
}
echo "<option value=\"\" $sellang>"._ALL."</option></select>";
} else {
echo "<input type=\"hidden\" name=\"alanguage\" value=\"\">";
}
echo "<br><br>"._STORYTEXT."<br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"7\" name=\"hometext\">$hometext</textarea><br><br>"
.""._EXTENDEDTEXT."<br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"10\" name=\"bodytext\">$bodytext</textarea><br>"
."<font class=\"content\">"._AREYOUSURE."</font><br><br>"
.""._NOTES."<br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"4\" name=\"notes\">$notes</textarea><br><br>"
."<input type=\"hidden\" NAME=\"sid\" size=\"50\" value=\"$sid\">"
."<input type=\"hidden\" name=\"op\" value=\"ChangeStory\">"
."<input type=\"submit\" value=\""._SAVECHANGES."\">"
."</form>";
CloseTable();
include ('footer.php');
} else {
include ('header.php');
GraphicAdmin();
OpenTable();
echo "<center><font class=\"title\">"._ARTICLEADMIN."</font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center>"._NOTAUTHORIZED1."<br><br>"
.""._NOTAUTHORIZED2."<br><br>"
.""._GOBACK."";
CloseTable();
include("footer.php");



Back to top Reply with quote
#4   re: Very new to this whole game.
spencerlail
CZ Newbie
spencerlail has been a member for over 20 year's 20 Year Member
Occupation: QA Test Engineer
Website:
Status: Offline
Joined: Jan 21, 2004
0.00 posts per day
Posts: 4
Points: 356
AIM Address  MSN Messenger ICQ Number
Is there any books you can recommend?



Back to top Reply with quote
#5   re: Very new to this whole game.
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
The page looks fine I dont see any errors. Did you pay for the installation meaning should they fix it? I have a couple options but they require uploading over pages already there. You can make backups but still I dont want to hose your site. If they offer any support i would use that first. There are alot of good books out there but for phpnuke i suggest you look into your root directory for a folder called Docs. Tells you everything you want to know about PHP Nuke.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: Very new to this whole game.
spencerlail
CZ Newbie
spencerlail has been a member for over 20 year's 20 Year Member
Occupation: QA Test Engineer
Website:
Status: Offline
Joined: Jan 21, 2004
0.00 posts per day
Posts: 4
Points: 356
AIM Address  MSN Messenger ICQ Number
It was installed by the provider but they provide no support for it.... This error happens when I try to post a news story, which is pretty much the bigget reason for using this software due to the fact that my co-news poster can't write HTML or anything at all... Almost wondering if I should just dump this and send him a copy of Dreamweaver and do it that way....

Thank you for the help so far Telli!



Back to top Reply with quote
#7   re: Very new to this whole game.
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
For the heck of it download the nuke 6.9 on this site under the PHP downloads and install that page over the 7.0 one make a back up of the original and then try to post a story. Let me know what happens.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum