Simple drop down box

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Simple drop down box
fr34k
CZ Super Newbie
fr34k has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 29, 2004
0.01 posts per day
Posts: 36
Points: 464
   
Hi guys wondered if someone could help.

I am trying to implement a simple drop down box to be placed within my reviews to make navigating the pages a bit easier

heres the drop down box ive been trying to add into each of the review pages (minus the html and body tags):


<html>
<body>

<form action="">
<select name="Page Selection">
<option value="modules.php?name=JReviews&rop=showcontent&id=61">Introduction/Company Profile</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=2">Specifications/Features</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=3">Product Packaging/Package Contents</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=4">About DirectX</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=5">About Purevideo HD</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=6">8800GTX Benefits</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=7">A Closer Look</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=8">Installation/Extra Tools</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=9">Test Seup/Procedure</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=10">3DMarks/CodeCreature Results</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=11">Gaming Tests</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=12">Gaming Tests Continued</option>
<option value="modules.php?name=JReviews&rop=showcontent&id=61&page=12">Conclusion/Product Rating</option>
</select>
</form>
</body>
</html>


When writing a review and peviewing it, the review module ignores the code and displays this simple srop down box as text separated by a /.

The review module i am using is called JReviews and took a lot of editing (with the help of rIgnak) to get it to display images and such.

Because of the way the reviews are added to the database i am placing this code within the specific review i am adding before each pagebreak.

Is there some code i am missing? Is there an easier way to do this? Is there some way the actual review module can be edited so this code doesn't have to be entered in manually to each and every review? (some of our reviews are 13 pages long so it means entering this code 13 times so it is displayed on every page within the review)

Here's the code for the write function/preview function and display reviews function from within our review modules index.php:

function write_review() {
    global $admin, $sitename, $user, $cookie, $prefix, $user_prefix, $currentlang, $multilingual, $db, $module_name;
    $row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_config"));
    $anonpost=intval($row["anonpost"]);
    if (is_user($user) || $anonpost==1) {
    OpenTable();
    echo '<b>'._WRITEREVIEWFOR. $sitename.'</b><br><br>
    <i>'._ENTERINFO.'</i><br><br>
    <form method="post" action="modules.php?name='.$module_name.'">
    <b>'._PRODUCTTITLE.':</b><br>
    <input type="text" name="title" size="50" maxlength="150"><br>
    <i>'._NAMEPRODUCT.'</i><br>
    <b>Category:</b><select name="category">';
$sql = "SELECT * FROM ".$prefix."_jreviews_categories ORDER BY name ASC";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
   echo '<option value="'.intval($row["id"]).'">'.stripslashes(check_html($row["name"], "nohtml")).'</option>';
}
echo '</select>';   
    if ($multilingual == 1) {
   echo "<br><b>"._LANGUAGE.": </b>"
       ."<select name=\"rlanguage\">";
   $handle=opendir('language');
   while ($file = readdir($handle)) {
       if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
           $langFound = $matches[1];
           $languageslist .= "$langFound ";
       }
   }
   closedir($handle);
   $languageslist = explode(" ", $languageslist);
   for ($i=0; $i < sizeof($languageslist); $i++) {
       if($languageslist[$i]!="") {
      echo "<option value=\"$languageslist[$i]\" ";
      if($languageslist[$i]==strtolower($currentlang)) echo "selected";
      echo ">$languageslist[$i]</option>\n";
       }
   }
   echo "</select><br><br>";
    } else {
   echo "<input type=\"hidden\" name=\"rlanguage\" value=\"$language\"><br><br>";
    }
    echo "<b>"._REVIEW.":</b><br>
    <textarea name=\"text\" rows=\"15\" wrap=\"virtual\" cols=\"60\"></textarea><br>";
    if (is_admin($admin)) {
   echo "<font class=\"content\">"._PAGEBREAK."</font><br>";
    }
    echo "
    <i>"._CHECKREVIEW."</i><br><br>
    <b>"._YOURNAME.":</b><br>";
    if (is_user($user)) {
        $result = $db->sql_query("select name, user_email from ".$user_prefix."_users where username='$cookie[1]'");
        list($rname, $email) = $db->sql_fetchrow($result);
        $rname = stripslashes(check_html($rname, "nohtml"));
        $email = stripslashes(check_html($email, "nohtml"));
   }
   echo "<input type=\"text\" name=\"reviewer\" size=\"41\" maxlength=\"40\" value=\"$rname\"><br>
       <i>"._FULLNAMEREQ."</i><br><br>
       <b>"._REMAIL.":</b><br>
       <input type=\"text\" name=\"email\" size=\"40\" maxlength=\"80\" value=\"$email\"><br>
       <i>"._REMAILREQ."</i><br><br>
       <b>"._SCORE."</b><br>
       <select name=\"score\">
            <option name=\"score\" value=\"15\">15</option>
            <option name=\"score\" value=\"14\">14</option>
            <option name=\"score\" value=\"13\">13</option>
            <option name=\"score\" value=\"12\">12</option>
       <option name=\"score\" value=\"11\">11</option>
       <option name=\"score\" value=\"10\">10</option>
       <option name=\"score\" value=\"9\">9</option>
       <option name=\"score\" value=\"8\">8</option>
            <option name=\"score\" value=\"7\">7</option>
       <option name=\"score\" value=\"6\">6</option>
       <option name=\"score\" value=\"5\">5</option>
       <option name=\"score\" value=\"4\">4</option>
       <option name=\"score\" value=\"3\">3</option>
       <option name=\"score\" value=\"2\">2</option>
       <option name=\"score\" value=\"1\">1</option>
       <option name=\"score\" value=\"0\">0</option>
       </select>
       <i>"._SELECTSCORE."</i><br><br>
       <b>"._RELATEDLINK.":</b><br>
       <input type=\"text\" name=\"url\" size=\"40\" maxlength=\"100\" value=\"http://\"><br>
       <i>"._PRODUCTSITE."</i><br><br>
       <b>"._LINKTITLE.":</b><br>
       <input type=\"text\" name=\"url_title\" size=\"40\" maxlength=\"50\"><br>
       <i>"._LINKTITLEREQ."</i><br><br>
   ";
    if(is_admin($admin)) {
      echo "<b>"._RIMAGEFILE.":</b><br>
         <input type=\"text\" name=\"cover\" size=\"40\" maxlength=\"100\"><br>
         <i>"._RIMAGEFILEREQ."</i><br><br>
      ";
    }
    echo "<i>"._CHECKINFO."</i><br><br>
       <input type=\"hidden\" name=\"rop\" value=\"preview_review\">
       <input type=\"submit\" value=\""._PREVIEW."\"> <input type=\"button\" onClick=\"history.go(-1)\" value=\""._CANCEL."\"></form>
    ";
    CloseTable();
  } else {         
      $pagetitle = "- "._ACCESSDENIED."";
      title("$sitename: "._ACCESSDENIED."");
      OpenTable();
      echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
          .""._MODULEUSERS."";            
      echo "<br><br>"._GOBACK."";
      CloseTable();
   }
}

function preview_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage, $category) {
    global $admin, $db, $multilingual, $module_name, $prefix;
    if (eregi("<!--pagebreak-->", $text)) {
      $text = ereg_replace("<!--pagebreak-->","&lt;!--pagebreak--&gt;",$text);
    }
    $title = stripslashes(check_html($title, "nohtml"));
    $text = stripslashes(check_html($text, ""));
    $category = intval($category);
    $reviewer = stripslashes(check_html($reviewer, "nohtml"));
    $url_title = stripslashes(check_html($url_title, "nohtml"));
    $email = stripslashes(check_html($email, "nohtml"));
    $score = intval($score);
    $cover = stripslashes(check_html($cover, "nohtml"));
    $url = stripslashes(check_html($url, "nohtml"));
    $url_title = stripslashes(check_html($url_title, "nohtml"));
    $hits = intval($hits);
    $id = intval($id);
    OpenTable();
    echo "<form method=\"post\" action=\"modules.php?name=$module_name\">";

    if ($title == "") {
       $error = 1;
   echo ""._INVALIDTITLE."<br>";
    }
    if ($text == "") {
       $error = 1;
   echo ""._INVALIDTEXT."<br>";
    }
    if (($score < 0) || ($score > 15)) {
   $error = 1;
   echo ""._INVALIDSCORE."<br>";
    }
    if (($hits < 0) && ($id != 0)) {
   $error = 1;
   echo ""._INVALIDHITS."<br>";
    }
    if ($reviewer == "" || $email == "") {
   $error = 1;
   echo ""._CHECKNAME."<br>";
    } else if ($reviewer != "" && $email != "")
   if (!(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email))) {
       $error = 1;
       /* eregi checks for a valid email! works nicely for me! */
       echo ""._INVALIDEMAIL."<br>";
   }
   if (($url_title != "" && $url =="") || ($url_title == "" && $url != "")) {
       $error = 1;
       echo ""._INVALIDLINK."<br>";
   } else if (($url != "") && (!(eregi('(^http[s]*:[/]+)(.*)', $url))))
       $url = "http://" . $url;
       /* If the user ommited the http, this nifty eregi will add it */
   if ($error == 1)
       echo "<br>"._GOBACK."";
   else
   {
   if ($date == "")
       $date = date("Y-m-d", time());
       $year2 = substr($date,0,4);
       $month = substr($date,5,2);
       $day = substr($date,8,2);
       $fdate = date("F jS Y",mktime (0,0,0,$month,$day,$year2));
           echo "<table border=\"0\" width=\"100%\"><tr><td colspan=\"2\">";
       echo "<p><font class=\"title\"><i><b>$title</b></i></font><br>";
       echo "<blockquote><p>";
       if ($cover != "")
          echo "<img src=\"images/reviews/$cover\" align=\"right\" border=\"1\" vspace=\"2\" alt=\"\">";
       echo "$text<p>";
      $row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_jreviews_categories WHERE id='".intval($category)."'"));
       echo "<b>Category</b> ".$row["name"]."<br>";      
       echo "<b>"._ADDED."</b> $fdate<br>";
       if ($multilingual == 1) {
      echo "<b>"._LANGUAGE."</b> $rlanguage<br>";
       }
       echo "<b>"._REVIEWER."</b> <a href=\"mailto:$email\">$reviewer</a><br>";
       echo "<b>"._SCORE."</b> ";
       #display_score($score);
       if ($url != "")
      echo "<br><b>"._RELATEDLINK.":</b> <a href=\"$url\" target=\"new\">$url_title</a>";
          $id = intval($id);
       if ($id != 0) {
      echo "<br><b>"._REVIEWID.":</b> $id<br>";
      echo "<b>"._HITS.":</b> $hits<br>";
       }
       echo "</font></blockquote>";
       echo "</td></tr></table>";
       $text = urlencode($text);
       echo "<p><i>"._LOOKSRIGHT."</i> ";
       echo "<input type=\"hidden\" name=\"id\" value=$id>
        <input type=\"hidden\" name=\"hits\" value=\"$hits\">
        <input type=\"hidden\" name=\"rop\" value=send_review>
        <input type=\"hidden\" name=\"date\" value=\"$date\">
        <input type=\"hidden\" name=\"title\" value=\"$title\">
        <input type=\"hidden\" name=\"text\" value=\"$text\">
        <input type=\"hidden\" name=\"category\" value=\"$category\">
        <input type=\"hidden\" name=\"reviewer\" value=\"$reviewer\">
        <input type=\"hidden\" name=\"email\" value=\"$email\">
        <input type=\"hidden\" name=\"score\" value=\"$score\">
        <input type=\"hidden\" name=\"url\" value=\"$url\">
        <input type=\"hidden\" name=\"url_title\" value=\"$url_title\">
        <input type=\"hidden\" name=\"cover\" value=\"$cover\">";
        echo "<input type=\"hidden\" name=\"rlanguage\" value=\"$rlanguage\">";
      echo "<input type=\"submit\" name=\"rop\" value=\""._YES."\"> <input type=\"button\" onClick=\"history.go(-1)\" value=\""._NO."\">";
          $id = intval($id);
       if($id != 0)
          $word = ""._RMODIFIED."";
       else
          $word = ""._RADDED."";
       if(is_admin($admin))
          echo "<br><br><b>"._NOTE."</b> "._ADMINLOGGED." $word.";
   }
    CloseTable();
}
function reviews($id, $order, $field) {
    global $bgcolor4, $sitename, $prefix, $multilingual, $currentlang, $db, $module_name;
    if ($multilingual == 1) {
    $querylang = "AND rlanguage='$currentlang'";
    } else {
    $querylang = "";
    }
    $numcat = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_jreviews_categories WHERE parent = '".intval($id)."'"));
    $row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_jreviews_categories WHERE id='".intval($id)."'"));

//    if ($numcat<>0) {
//       OpenTable();
//       echo '<center>Category: <a href="modules.php?name='.$module_name.'"><b>Main</b></a>/<a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.$row["id"].'"><b>'.$row["name"].'</b></a>';
//       echo 'Category: '.breadcrb($id);
//       CloseTable();
//   }
      OpenTable();
      echo '<center><font class="title">'._CATEGORY.':</font> ';
      breadcrb($id);
      echo '</center>';
      CloseTable();
    if ($numcat<>0) {
       category_index($id);
    }
    OpenTable();
    echo '<center><b>'.$sitename.' - '._REVIEWS.' in category '.$row["name"].'</b><br>';
    switch ($field) {

   case "reviewer":
   $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE category=".intval($id)." $querylang ORDER by reviewer $order");
   break;
/*
   case "score":
   $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE category=".intval($id)." $querylang ORDER by score $order");
   break;
*/
   case "rating":
   $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE category=".intval($id)." $querylang ORDER by rating $order");
   break;

   case "hits":
   $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE category=".intval($id)." $querylang ORDER by hits $order");
   break;

   default:
   $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE category=".intval($id)." $querylang ORDER by title $order");
   break;

    }
    $numresults = $db->sql_numrows($result);
    if ($numresults == 0) {
   echo '<i><b>'._NOREVIEWS.'</b></i><br>';
    } elseif ($numresults > 0) {
   echo '<table border="0" width="100%" cellpadding="2" cellspacing="4">
      <tr>
      <td width="50%" bgcolor="'.$bgcolor4.'">
      <p align="left"><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=title&amp;order=ASC"><img src="images/up.gif" border="0" width="15" height="9" alt="'._SORTASC.'"></a><b>'._PRODUCTTITLE.'</b><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=title&amp;order=DESC"><img src="images/down.gif" border="0" width="15" height="9" alt="'._SORTDESC.'"></a>
      </td>
      <td width="18%" bgcolor="'.$bgcolor4.'">
      <p align="center"><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=reviewer&amp;order=ASC"><img src="images/up.gif" border="0" width="15" height="9" alt="'._SORTASC.'"></a><b>'._REVIEWER.'</b><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=reviewer&amp;order=desc"><img src="images/down.gif" border="0" width="15" height="9" alt="'._SORTDESC.'"></a>
      </td>
      <td width="10%" bgcolor="'.$bgcolor4.'">
      <p align="center"><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=hits&amp;order=ASC"><img src="images/up.gif" border="0" width="15" height="9" alt="'._SORTASC.'"></a><b>'._HITS.'</b><a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.intval($id).'&amp;field=hits&amp;order=DESC"><img src="images/down.gif" border="0" width="15" height="9" alt="'._SORTDESC.'"></a>
      </td>
      </tr>';
   while($myrow = $db->sql_fetchrow($result)) {
       $title = stripslashes(check_html($myrow["title"], "nohtml"));
       $id = intval($myrow['id']);
        $reviewer = stripslashes($myrow['reviewer']);
        $email = stripslashes($myrow['email']);
       $score = intval($myrow['score']);
       $hits = intval($myrow['hits']);
       $rating = floatval($myrow['rating']);
       $time = $myrow["date"];
       echo '<tr>
          <td width="50%" bgcolor="#FFFFFF"><a href="modules.php?name='.$module_name.'&amp;rop=showcontent&amp;id='.$id.'">'.$title.'</a>';
          newreviewgraphic($time);
          echo '</td>
          <td width="18%" bgcolor="#FFFFFF">';
       if ($reviewer != "")
      echo '<center>'.$reviewer.'</center>';
       #echo '</td><td width="22%" bgcolor="#FFFFFF"><center>';
       #display_score($score);
              #echo '<b>'.$rating.'</b>';
       echo '</center></td><td width="10%" bgcolor="#FFFFFF"><center>'.$hits.'</center></td>
        </tr>';
   }
   echo '</table>
   <br>'.$numresults._TOTALREVIEWS.'<br><br>';
    }
    CloseTable();
}



Thanks in advance


Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
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
   
I suspect the check_html function may be stopping the form from being posted.

As far as automating the process of the menu look at how the <!--pagebreak--> works and use something similar for the menu.

The showcontent function is actually the one that is going to have the output and that wasnt included above. If you mess around with it post some of your code and I will try to help you.




_________________
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   
fr34k
CZ Super Newbie
fr34k has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 29, 2004
0.01 posts per day
Posts: 36
Points: 464
   
Hi Telli, thanks for your reply.


I did have a look at the function of the review paging layout, but wouldn't have a clue what code to insert and where it would need to be inserted.

I am a phpnuke noob when it comes to things like this - if i know what code to insert and where, i am fine - as far as me inserting code - i wouldn't even know where to start.

Here is the showcontent part of the reviews index.php:

function showcontent($id, $page) {
    global $admin, $uimages, $prefix, $db, $module_name;
    $id = intval($id);
    $page = intval($page);
    OpenTable();
    if (($page == 1) OR ($page == "")) {
   $db->sql_query("UPDATE ".$prefix."_jreviews SET hits=hits+1 WHERE id='$id'");
    }
    $result = $db->sql_query("SELECT * FROM ".$prefix."_jreviews WHERE id='$id'");
    $myrow = $db->sql_fetchrow($result);
    $id = intval($myrow['id']);
    $date = $myrow['date'];
    $year = substr($date,0,4);
    $month = substr($date,5,2);
    $day = substr($date,8,2);
    $fdate = date("F jS Y",mktime (0,0,0,$month,$day,$year));
    $title = $myrow['title'];
    $title = stripslashes(FixQuotes(check_html($title, nohtml)));
    $text = html_entity_decode($myrow['text']);
    $category = $myrow["category"];
    $cover = $myrow['cover'];
    $reviewer = $myrow['reviewer'];
    $email = $myrow['email'];
    $hits = intval($myrow['hits']);
    $url = $myrow['url'];
    $url_title = $myrow['url_title'];
    $score = intval($myrow['score']);
    $rating = $myrow["rating"];
    $rlanguage = $myrow['rlanguage'];
   $rating = $myrow["rating"];   
   $totalvotes = intval($myrow["totalvotes"]);
   if ($totalvotes == 1) {
      $votestring = _VOTE;
   } else {
      $votestring = _VOTES;
   }
    $text = str_replace('&lt;!--pagebreak--&gt;','<!--pagebreak-->',$text);
    $contentpages = explode( "<!--pagebreak-->", $text );

    $pageno = count($contentpages);
    if ( $page=="" || $page < 1 )
   $page = 1;
    if ( $page > $pageno )
   $page = $pageno;
    $arrayelement = (int)$page;
    $arrayelement --;
    echo "<p><i><b><font class=\"title\">$title</b></i></font><br>";
    echo "<BLOCKQUOTE><p align=justify>";
    if ($cover != "")
    echo "<img src=\"images/reviews/$cover\" align=right border=1 vspace=2 alt=\"\">";
    echo "$contentpages[$arrayelement]
    </BLOCKQUOTE><p>";
    if (is_admin($admin))
      echo "<b>"._ADMIN."</b> [ <a href=\"modules.php?name=$module_name&rop=mod_review&amp;id=$id\">"._EDIT."</a> | <a href=modules.php?name=$module_name&rop=del_review&amp;id_del=$id>"._DELETE."</a> ]<br>";
    echo "<b>"._ADDED."</b> $fdate<br>";
   $row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_jreviews_categories WHERE id='".intval($category)."'"));   
   echo '<b>Category:</b> <a href="modules.php?name='.$module_name.'&amp;rop=categ&amp;id='.$row["id"].'">'.$row["name"].'</a><br>';
    if ($reviewer != "")
   echo "<b>"._REVIEWER."</b> <a href=mailto:$email>$reviewer</a>";
   #echo "<b>"._SCORE."</b> ";
    #display_score($score);
   #echo '<br /><b>'._ALLSCORE.'</b>: '.$rating.' ('.$totalvotes.' '.$votestring.')';   
    if ($url != "")
      echo "<br><b>"._RELATEDLINK.":</b> <a href=\"$url\" target=new>$url_title</a>";
    if ($radminsuper == 1) {
       echo '<a href="modules.php?name='.$module_name.'&amp;rop=mod_review&amp;id='.$id.'">'._EDIT.'</a> | ';
    }
    $title = htmlspecialchars(urldecode($title));
   #echo '<a href="modules.php?name='.$module_name.'&amp;rop=postcomment&amp;id='.$id.'&amp;title='.$title.'"><b>'._RATECOMMENT.'</b></a>';
    #echo "<br><b>"._HITS.":</b> $hits";
    echo "<br><b>"._LANGUAGE.":</b> $rlanguage";
    if ($pageno > 1) {
   echo "<br><b>"._PAGE.":</b> $page/$pageno<br>";
    }
    echo "</font>";
    echo "</CENTER>";
    $title = urlencode($title);
    if($page >= $pageno) {
     $next_page = "";
    } else {
   $next_pagenumber = $page + 1;
   if ($page != 1) {
       $next_page .= "<img src=\"images/blackpixel.gif\" width=\"10\" height=\"2\" border=\"0\" alt=\"\"> &nbsp;&nbsp; ";
   }
   $next_page .= "<a href=\"modules.php?name=$module_name&rop=showcontent&amp;id=$id&amp;page=$next_pagenumber\">"._NEXT." ($next_pagenumber/$pageno)</a> <a href=\"modules.php?name=$module_name&rop=showcontent&amp;id=$id&amp;page=$next_pagenumber\"><img src=\"images/right.gif\" border=\"0\" alt=\""._NEXT."\"></a>";
    }
    if($page <= 1) {
   $previous_page = "";
    } else {
   $previous_pagenumber = $page - 1;
   $previous_page = "<a href=\"modules.php?name=$module_name&rop=showcontent&amp;id=$id&amp;page=$previous_pagenumber\"><img src=\"images/left.gif\" border=\"0\" alt=\""._PREVIOUS."\"></a> <a href=\"modules.php?name=$module_name&rop=showcontent&amp;id=$id&amp;page=$previous_pagenumber\">"._PREVIOUS." ($previous_pagenumber/$pageno)</a>";
    }
    echo "<center>"
   ."$previous_page &nbsp;&nbsp; $next_page<br><br>"
   ."[ <a href=\"modules.php?name=$module_name\">"._RBACK."</a> | "
   ."<a href=\"modules.php?name=$module_name&rop=postcomment&amp;id=$id&amp;title=$title\">"._REPLYMAIN."</a> ]";
    CloseTable();
    if (($page == 1) OR ($page == "")) {
   echo "<br>";
   r_comments($id, $title);
    }
}


btw Telli - do you have msn? as it would be easier than writing messages back and forth.

Thanks for all your help.
Darren


Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
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
   
Actually after I think about it your best bet is to add the menu like your doing. The other route is going to require quite a bit of work.

Did you check the chck_html function to see if it was blocking the menu from being posted?




_________________
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
#5   
fr34k
CZ Super Newbie
fr34k has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Oct 29, 2004
0.01 posts per day
Posts: 36
Points: 464
   
hi Telli, thanks for the reply - apologies about the late response (it's a bit manic on our site with our competition just finishing).

I have gone through the check_html function and added all sorts of stuff like:

- form 1
- form 2
- table 1
- table 2

but nothing seems to work.

My original idea was to add this drop down box manually to each review, however as my latest review was 13 pages long, it would mean adding the code in my first post 13 separate times so that it shows on each page.

Like i said i can input code if i know what it is i have to add, other than that my talents with phpnuke end there icon_sad.gif

any help anyone could provide would be greatly apreciated.

BTW - the review module we are using is called JReviews, to get it looking the way it does and to have it display the reviews correctly RIgnak helped us to re-code it as there were a lot of conflicts within the code.

Im not sure if something within the review module code is stopping the drop down box from being displayed, whether nuke sentinal is conflicting with the code, or whether it's something completely different.

Once again thanks for all your help



Back to top Reply with quote
#6   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
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
   
Attach your mainfile.php and your config.php (remove your database information) I will see if i can locate whats blocking it.




_________________
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