atanas wrote:Лъчо, от бая време се каня да те питам дали има начин да се махне информацията за извършено действие, например: login, logout, постване и т.н. Малко ми е досадно чакането.
Bear in mind that the page you get to when a message is posted is also the page that will have to handle the form submission that was used to post. I.e., that page needs to insert the post into the database.
One of the reasons (as far as I am aware) for having a separate page for this is that people tend to navigate around a site using the back button and may hit refresh on any page they think could use an update. If they were to ever hit refresh on a page that was responsible for posting something, that something would get posted again. Of course, them hitting refresh on a page that just says "your post was created" is much less likely then them hitting refresh on a page showing a topic or a forum overview. I'm not sure what methods those other boards you speak of use to circumvent this (if any), but you may well find that they actually are also using a page in between with a meta refresh set to 0.
kalin wrote:Ако има начин ще си го приложа и на двата мои форумаНай-изнервящо е за админа
Anyway... in posting.php, around line 1000, find
meta_refresh(3, $redirect_url);
$message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
replace with
meta_refresh(0, $redirect_url);
$message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
atanas wrote:Аз съм за изключението - посетителите на този форум не дават back и после refresh. Всъщност този проблем, който описват не се случва и на форума на ПУ с далеч по-необразовани потребители
atanas wrote:OK
Return to Коментари и съобщения
Users browsing this forum: No registered users and 2 guests