miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Delete Function, NO Javascript!

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

Line 230 - 232

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

: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
Registered
#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:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB