miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Delete Function, NO Javascript!

 
Author MangX
Partaker
#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=\"https://www.minibb.com/forums/{$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
Partaker
#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!
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑