MyBB Community Forums

Full Version: Reading $post['message'] xmlhttp hook Urjent please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

For my plugin

I have added
                                <form onSubmit="LinkChecker.checkLinks(); $('pidval').value = ''; return false;">
                                <div id="linkchecker_{$post['pid']}">
                                     <input type="hidden" id="pidval" value="linkchecker_{$post['pid']}"/>
                                     Click Here to check links ::: <a href="xmlhttp.php?action=linkchecker">Here!</a><br>
                                </div>
                                </form>

after
<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
                                        
				</div>
In postbit template and added respective javascript, php files...


If I pass $post['message'] to my javascript function it is trowing error saying that URI data is too long...

For that reason I dont want to pass $post['message']; instead I want to read $post data from my php function which will run as a hook @ xmlhttp.

is there any way I can read postbit $post object in my xmlhttp hoock...

Otherwise can i store $post into other object in session to retrieve in my hook and what will be the pros and cons if i do store in session... is it advisable?

Thanks in advance..