Jump to content

matthiaspaul

Friends
  • Posts

    100
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

matthiaspaul's Achievements

  1. Hi, I've been running into an issue with IP.Board 2.3.4, where the Post editor stops working when a rules/hints box above a subforum contains a HTML form. When you hit the Send button of the Post editor, the post will not be submitted, but the form in the hint box will get executed instead. Apparently, this problem is down to nested forms (something, which is not allowed, IIRC). I'm using the classical 2.2 skin, but this also applies to the new "Pro" skin. This is an excerpt of the resulting HTML source code, while you're in the Post editor editing/writing a post in a sub-forum which has a hint box: [...] <!--IBF.NEWPMBOX--> <form id='postingform' action='http://www.myforum.de/forum/index.php?' method='post' name='REPLIER' onsubmit='return ValidateForm()' enctype='multipart/form-data'><input type='hidden' name='st' value='0' /> <input type='hidden' name='act' value='Post' /> <input type='hidden' name='s' value='' /> <input type='hidden' name='f' value='22' /> <input type='hidden' name='auth_key' value='1234567890' /> <input type='hidden' name='removeattachid' value='0' /> <input type='hidden' name='MAX_FILE_SIZE' value='1234567890' /> <input type='hidden' name='CODE' value='09' /> <input type='hidden' name='t' value='9884' /> <input type='hidden' name='p' value='116975' /> <input type='hidden' name='st' value='0' /> <input type='hidden' name='attach_post_key' value='1234567890' /> <!-- Show FAQ/Forum Rules --> <div class="borderwrap" style='margin-bottom:6px;'> <h3><img src='http://forums.invisionpower.com/style_images/1/nav_m.gif' border='0' alt='&gt;' width='8' height='8' />&nbsp;Hints</h3> <p> Hint box contents comes here... </p> </div> <!-- End FAQ/Forum Rules --><br /> <div class="borderwrap"> <table cellspacing="0" class='ipbtable'> [...] Everything is fine unless you put something like this into the hint box: <div> <form id="view-multi" action="http://www.myforum/forum/index.php?" method="post" name="search"><input type="hidden" name="forums[]" value="10" /><input type="hidden" name="forums[]" value="11" /><input type="hidden" name="cat_forum" value="forum" /><input type="hidden" name="act" value="Search" /><input type="hidden" name="joinname" value="1" /><input type="hidden" name="CODE" value="01" /><input type="hidden" name="keywords" value="the" /><input type="submit" value="Multi View" class="button" /></form> </div> because then the two forms will effectively get nested. If, however, the generated IP.Board code would be slightly rearranged like this (that is, the Show FAQ/Forum Rules block be moved just before the <form id='postingform' ...> starts, everything works fine): [...] <!--IBF.NEWPMBOX--> <!-- Show FAQ/Forum Rules --> <div class="borderwrap" style='margin-bottom:6px;'> <h3><img src='http://forums.invisionpower.com/style_images/1/nav_m.gif' border='0' alt='&gt;' width='8' height='8' />&nbsp;Hints</h3> <p> Hint box contents comes here... </p> </div> <!-- End FAQ/Forum Rules --> <form id='postingform' action='http://www.myforum.de/forum/index.php?' method='post' name='REPLIER' onsubmit='return ValidateForm()' enctype='multipart/form-data'><input type='hidden' name='st' value='0' /> <input type='hidden' name='act' value='Post' /> <input type='hidden' name='s' value='' /> <input type='hidden' name='f' value='22' /> <input type='hidden' name='auth_key' value='1234567890' /> <input type='hidden' name='removeattachid' value='0' /> <input type='hidden' name='MAX_FILE_SIZE' value='1234567890' /> <input type='hidden' name='CODE' value='09' /> <input type='hidden' name='t' value='9884' /> <input type='hidden' name='p' value='116975' /> <input type='hidden' name='st' value='0' /> <input type='hidden' name='attach_post_key' value='1234567890' /> <br /> <div class="borderwrap"> <table cellspacing="0" class='ipbtable'> [...] Unfortunately, the order, in which the code blocks occur, seems to be hardwired somewhere in the PHP scripts, and not be easily changeable in the HTML skin snippets (or I haven't found it). Hence, I would hereby like to request/suggest to change the physical order of these HTML blocks in the code in order to allow for forms in hint boxes. The resulting page rendering should be exactly the same, so there seems to be no drawback. As a sidenote, you may wonder, why I am trying to use forms in hint boxes. Actually, I would prefer to use simple links instead, but all attempts to pass multiple forum IDs as URL arguments failed. I tried: http://www.myforum/forum/index.php?act=Search&forums=10&cat_forum=forum&joinname=1&CODE=01&keywords=the -> works, but only searches in forum 10 - not what I want http://www.myforum/forum/index.php?act=Search&forums=11&cat_forum=forum&joinname=1&CODE=01&keywords=the -> works, but only searches in forum 11 - not what I want http://www.myforum/forum/index.php?act=Search&forums=10&forums=11&cat_forum=forum&joinname=1&CODE=01&keywords=the -> does not works, as it only searches in forum 11 http://www.myforum/forum/index.php?act=Search&forums[]=10&cat_forum=forum&joinname=1&CODE=01&keywords=the -> rejected, and not what I want, anyway http://www.myforum/forum/index.php?act=Search&forums[]=10&forums[]=11&cat_forum=forum&joinname=1&CODE=01&keywords=the -> rejected http://www.myforum/forum/index.php?act=Search&forums[0]=10&forums[1]=11&cat_forum=forum&joinname=1&CODE=01&keywords=the -> rejected Of course I also tried to escape [] with %5B%5D and & with &amp; to no avail. As soon as I try to use arrays, the link gets rejected. It would be great, if this could be made working. Greetings, Matthias
×
×
  • Create New...