I am, in the simplest terms possible, trying to display a forum topic on my website externally (so on site.com/page.html forum located in site.com/forum). All of the pages in the wiki I can't make work. I am almost, almost ALMOST there with Jquery. After chaning the phpbb root path as I just did, I'm now at the point where jquery .load is loading all of the necessary headers and scripts for viewtopic.php?f=2&t=6, my only issue now is when I post from the external form, it says Post successful, fetching the result then a pop-up that says "AJAX Error - Something went wrong when processing your request." even though the post went through.
This tells me the issue has something to do with the forum topic refreshing after the ajax post goes through, this may be a jquery .load limiation, it may be that I've broken my paths for viewtopic.php, I'm not sure. Do you have any ideas?
I thought maybe it had to do with having replaced
Code: Select all
'MESSAGE_TITLE' => $msg_title,
'MESSAGE_TEXT' => $msg_text,
'S_USER_WARNING' => ($errno == E_USER_WARNING) ? true : false,
'S_USER_NOTICE' => ($errno == E_USER_NOTICE) ? true : false,
'REFRESH_DATA' => (!empty($refresh_data)) ? $refresh_data : null
earlier on to hide some error outputs, but it is not. Reverting that fix, and clearing cache, throws up the same AJAX Error with my .load reply form.
Should I just give up and use an iframe, since jquery can strip elements out of iframes the same way it can with .load?