12-04-2008, 07:30 AM
I have tried doing these things in order to have another 'Description' for the tutorials, other than just Category, Source and date added.
1) Added new column at mySQL database (called as 'tutdescription)
2) Changed these (line 54-56 in submit2.php)
to these :
3) To avoid more 'problems', I didn't make the script to validate it (I've tried doing it, but no success).
4) I have also changed these (line 712 in \includes\classes\tutorial.php)
to these :
5) Added these in submit_tutorial_bit
However, I just get 'submission fail' when I try to submit tutorials. So, can anyone tell me which part am I doing wrong / missed?
Thanks.
Edit : I have also added few more lines at tutorial_bit to 'call' the description from the database, but this is not relevant as now it can't even submit.
1) Added new column at mySQL database (called as 'tutdescription)
2) Changed these (line 54-56 in submit2.php)
Code:
$title = $_POST['title'];
$tutorialurl = $_POST['tutorialurl'];
$validate = validate_submit($weburl, $number, $cat);Code:
$title = $_POST['title'];
$tutdescription = $_POST['tutdescription']
$tutorialurl = $_POST['tutorialurl'];
$validate = validate_submit($weburl, $number, $cat);4) I have also changed these (line 712 in \includes\classes\tutorial.php)
Code:
mysql_query("INSERT INTO `tutorial_front`(`tutname`, `source`, `mcate`, `link`, `date`) VALUES('".addslashes($title)."', '".Format_Sourcesite($source)."', '".$cat."', '".$url."', '".time()."')");Code:
mysql_query("INSERT INTO `tutorial_front`(`tutname`, `tutdescription`, `source`, `mcate`, `link`, `date`) VALUES('".addslashes($title)."', '".$tutdescription."', '".Format_Sourcesite($source)."', '".$cat."', '".$url."', '".time()."')");Code:
Please enter a brief description about your tutorial: (Max 100 characters)
<br />
<input name="tutdescription[$submit_tutorial_bit[number]]" maxlength="100" size="60" type="text" class="form_styles">
<br /><br />However, I just get 'submission fail' when I try to submit tutorials. So, can anyone tell me which part am I doing wrong / missed?
Thanks.
Edit : I have also added few more lines at tutorial_bit to 'call' the description from the database, but this is not relevant as now it can't even submit.
