First of all sorry for my bad english..
i dont want my user can edit their questions and answers.. Only permissions is they can hide them.
Then i add a code at questions-view.php
At 1.6.3 version i havent got any error. But when i upgrade 1.7 i have too much error.. ( its working like before.. but now i have too much error at this time )
Thats my code change
Original code is ;
---------------------------------------------------
$rules['editbutton']=(!$post['hidden']) && (!$rules['closed']) &&
($rules['isbyuser'] || (($permiterror_edit!='level') && ($permiterror_edit!='approve') && (!$rules['queued'])));
$rules['editable']=$rules['editbutton'] && ($rules['isbyuser'] || !$permiterror_edit);
$rules['retagcatbutton']=($post['basetype']=='Q') && (qa_using_tags() || qa_using_categories()) &&
(!$post['hidden']) && ($rules['isbyuser'] || (($permiterror_retagcat!='level') && ($permiterror_retagcat!='approve')) );
$rules['retagcatable']=$rules['retagcatbutton'] && ($rules['isbyuser'] || !$permiterror_retagcat);
if ($rules['editbutton'] && $rules['retagcatbutton']) { // only show one button since they lead to the same form
if ($rules['retagcatable'] && !$rules['editable'])
$rules['editbutton']=false; // if we can do this without getting an error, show that as the title
else
$rules['retagcatbutton']=false;
}
---------------------------------------------------
My edits ;
---------------------------------------------------
$level=qa_get_logged_in_level();
if ($level>=QA_USER_LEVEL_ADMIN) {
$rules['editbutton']=(!$post['hidden']) && (!$rules['closed']) &&
($rules['isbyuser'] || (($permiterror_edit!='level') && ($permiterror_edit!='approve') && (!$rules['queued'])));
$rules['editable']=$rules['editbutton'] && ($rules['isbyuser'] || !$permiterror_edit);
$rules['retagcatbutton']=($post['basetype']=='Q') && (qa_using_tags() || qa_using_categories()) &&
(!$post['hidden']) && ($rules['isbyuser'] || (($permiterror_retagcat!='level') && ($permiterror_retagcat!='approve')) );
$rules['retagcatable']=$rules['retagcatbutton'] && ($rules['isbyuser'] || !$permiterror_retagcat);
if ($rules['editbutton'] && $rules['retagcatbutton']) { // only show one button since they lead to the same form
if ($rules['retagcatable'] && !$rules['editable'])
$rules['editbutton']=false; // if we can do this without getting an error, show that as the title
else
$rules['retagcatbutton']=false;
}
}
--------------------------------------------------
Then in my server error log file always write this ;
Undefined index: closeable in .....public_html/qa-include/pages/question-view.php on line 283
[17-Jan-2015 02:29:04 Europe/Istanbul] PHP Notice: Undefined index: reopenable in ..../public_html/qa-include/pages/question-view.php on line 290
[17-Jan-2015 02:29:04 Europe/Istanbul] PHP Notice: Undefined index: editbutton in ..../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:29:05 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:29:05 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:29:05 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:30:49 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 243
[17-Jan-2015 02:30:49 Europe/Istanbul] PHP Notice: Undefined index: retagcatbutton in .../public_html/qa-include/pages/question-view.php on line 252
[17-Jan-2015 02:30:49 Europe/Istanbul] PHP Notice: Undefined index: closeable in .../public_html/qa-include/pages/question-view.php on line 283
[17-Jan-2015 02:30:49 Europe/Istanbul] PHP Notice: Undefined index: reopenable in .../public_html/qa-include/pages/question-view.php on line 290
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 243
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: retagcatbutton in .../public_html/qa-include/pages/question-view.php on line 252
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: closeable in .../public_html/qa-include/pages/question-view.php on line 283
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: reopenable in .../public_html/qa-include/pages/question-view.php on line 290
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:30:52 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:31:07 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 451
[17-Jan-2015 02:31:27 Europe/Istanbul] PHP Notice: Undefined index: editbutton in .../public_html/qa-include/pages/question-view.php on line 243
[17-Jan-2015 02:31:27 Europe/Istanbul] PHP Notice: Undefined index: retagcatbutton in .../public_html/qa-include/pages/question-view.php on line 252
Please help me whats the problem ?