How can i exclude for certain targeting form? cause my site have Shoutbox chat which this module also inject into submit chat button. cause it didn't disappear, when user submit a lot of chat phrases, those icon keep appear and longer.

How can i solve it? My idea is to targeting exclude this chat form.

CommentFileSizeAuthor
chat.gif7.32 KBparasolx

Comments

optalgin’s picture

Currently there is no formal way to exclude from certain form
The only way is to hack the jquery selector in the javascript inside the hide_submit.module file

If you can post the html code generated for the shout-box form I might help with that

I plan to add this kind of feature in the future, I hope I'll have the time to work on it soon

parasolx’s picture

Here is the HTML code generate for the chat:

<div id="block-shoutbox-0" class="block block-shoutbox">
  <h2>Shoutbox</h2>  <div class="content"><div id="shoutbox-body">

<div id="shoutbox-posts">

.... Here is the shout text...

</div>
<div class="shoutbox-add-form"><form action="/" accept-charset="UTF-8" method="post" id="shoutbox-add-form">
<div><input name="nick" id="edit-nick" value="parasolx" type="hidden">
<div class="form-item" id="edit-message-wrapper">
 <input maxlength="128" name="message" id="edit-message" size="15" value="  " class="form-text" type="text">
</div>
<input name="ajax" id="edit-ajax" value="0" type="hidden">
<input name="nextcolor" id="edit-nextcolor" value="0" type="hidden">
<input style="display: inline;" name="op" id="edit-0" value="Chat" class="form-submit" type="submit"><div style="display: none;" id="shoutbox-throbber">&nbsp;</div>
<input name="form_build_id" id="form-ab49712665c14ca2a53d213aa372a366" value="form-ab49712665c14ca2a53d213aa372a366" type="hidden">
<input name="form_token" id="edit-shoutbox-add-form-form-token" value="067f78a29e3dd6201e21c7db02087cb6" type="hidden">

<input name="form_id" id="edit-shoutbox-add-form" value="shoutbox_add_form" type="hidden">

</div></form>
</div></div>
</div>
</div>
optalgin’s picture

The HTML code is missing from your post, try to wrap it using the code tag

  <code> HTML goes here... </code >
optalgin’s picture

I'm looking for a better solution for this
For now you can use this hack

Replace the code in the hide_submit.module file with this

$(document).ready(function() {
  $('input:submit[value!=Chat]').click(function() {
      $(this).siblings('input:submit').hide();            
      $(this).hide();      
      $('$message').insertAfter(this);
  })  
})

This will disable the hide-submit feature for submit buttons with value "Chat"

I also published a forum topic for this issue

parasolx’s picture

Status: Active » Fixed

thanks.. and it works..

sorry for delay updating my post before.

optalgin’s picture

Title: How to exclude for certain FORM? » Conflicts with shoutbox module
Component: User interface » Code
Assigned: parasolx » optalgin
Category: support » bug
Priority: Critical » Normal
Status: Fixed » Needs review

Please try the latest 6.x-1.x-dev release

There is a new fieldset called "Advanced"
Make sure the following line is in the "Form-id exclusion list" textarea

shoutbox_add_form

Please let me know if it worked as expected

parasolx’s picture

I have install and test those dev module.. seem work great and i just insert any ID form or target only the submit button based on it value..

work like a charm.. thanks.

optalgin’s picture

Status: Needs review » Fixed

Release 6.x-1.8 contains configuration options to overcome this conflict
You can exclude the form by form-id.

See Advanced fieldset

note: shout box form is excluded by default

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.