15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Delete Function, NO Javascript!

Author MangX
#1 | Posted: 15 Aug 2011 07:20 
in bb_func_vthread.php

Line 230 - 232

<a href="JavaScript:confirmDelete({$cols[6]},0)" onmouseover="window.status='{$l_deletePost}'; return true;" onmouseout="window.status=''; return true;">$l_deletePost</a>

:D Can you provide me the noscript code like the Edit Function? Some of the feature phones don't support JS.

Edit Function:

$allowedEdit="<a href=\"{$main_url}/{$indexphp}action=editmsg&amp;topic=$topic&amp;forum=$forum&amp;post={$cols[6]}&amp;page=$page&amp;an chor={$cols[6]}\">$l_edit</a>

Author Paul
Lead Developer
#2 | Posted: 15 Aug 2011 23:21 
Follow confirmDelete function and you will discover the full URL.

Author MangX
#3 | Posted: 16 Aug 2011 03:49 
Paul, I tried but failed. :(

Author Paul
Lead Developer
#4 | Posted: 16 Aug 2011 11:38 
What does it mean? How you can fail on the open source code?

You need to find a file, where this function is located. Then just go through lines of this function and you will discover how to send a GET request for deleting a message. This request is actually sent by JavaScript now, but it also could work in standalone mode, for sure.

Specific miniBB Support Forums / Specific / Delete Function, NO Javascript! Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB