Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Shoutbox
Topic Started: Jun 3 2014, 06:20 PM (324 Views)
skydom
Member
[ * ]
I use this code for the shoutbox, to see it in all pages: http://if.invisionfree.com/topic/5071131/6/#new
And I use this code to get the textbox below the shouts: http://if.invisionfree.com/single/?p=17240082&t=5100654

BUT, the second code doesn't work if I am in a subforum, can anyone help me to mix the codes? because I want to get the textbox below the shouts in all forums and subforums.

Index forum Shoutbox: http://prntscr.com/3pf1zs
Subforums Shoutbox: http://prntscr.com/3pf32b

Sry if my english sucks :c!
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this instead for the shoutbox input code:
Code:
 
<script type='text/javascript'>
$(document).ajaxSuccess(function () {
(function () {
var e = $('#shoutpost').parent();
e.parent().after("<tr id='new_shoutpost'></tr>");
e.prependTo('#new_shoutpost').css('width', 'auto').find('input[name=shouttext]').attr('size', '110');
e.find('p:first').append(" " + e.find('p:eq(1)').remove().html() + " ").append("(" + $('#shoutopts').remove().html() + ")");
})();
});
</script>
Offline Profile Quote Post Goto Top
 
skydom
Member
[ * ]
Thank you so much!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply