Hi, im using the audio only mod or PHPMOTION SCRIPT, this is my site www.underz.com.ar
and im doing some cleanning on the code.
And since only audios can be uploaded an of course only audios can be searched, i want to remove the audio option on the search form
i know i have to edit search.php and templates/main_1.htm
THis is the search form in templates/main_1.htm
<form class="FormSearch" method="POST" action="search.php">
<input type="text" name="keyword" size="32" class="FormSpecialInput_1" />
<select size="1" name="type" class="FormSpecialInput_1">
<option value="audio">Audio</option>
</select>
<input type="submit" value="Submit" name="B2" />
</form>
And the audio option is what i want to remove
This is part of the search.php code, which i also think i have to edit.
<?php
include_once ('classes/config.php');
include_once ('classes/menu.php');
include_once ('classes/sessions.php');
include_once ('tag_cloud_audio.php');
$referer = mysql_real_escape_string($_SERVER['HTTP_REFERER']);
$keyword = $_POST['keyword'];//get video id
$type = mysql_real_escape_string($_POST['type']);//get video id
//check if this page is being called from "next>>" or "<<previous" where the keyword are not POST but GET
if ($type == '') {
$keyword = mysql_real_escape_string($_GET['keyword']);
$type = mysql_real_escape_string($_GET['type']);
}
$get_keywords = $keyword;//also send keyword to html
$get_type = $type;//also send type to html
// Start of AUDIO SEARCH
if ($type == 'audio' || $type == '') {
$limit = $config["search_page_limits"];
$keyword_escaped = mysql_real_escape_string($keyword);
$pagination = pagination("SELECT * FROM audios WHERE MATCH(title, tags, description) AGAINST ('$keyword_escaped') AND approved='yes' AND public_private = 'public'",
$limit);
I removed this in the main_1.htm
<option value="audio">Audio</option>
but then the search didnt work, and listed every song uploaded.
Any idea of how to remove that option of the image?
Thanks