I've been browsing the internet for 3 days trying to figure this out have have tried everything i could from from Iframe imports (Which look really really bad), to Ajax Imports (Which i cant quite get 100% working), Nothing has worked to my standards
The setup: I have 2 websites running an Xenforo Forum, and a Wordpress Frontend. I'm trying to essentially merge the 2 together without getting an expensive bridge software for Xenforo (49.99...). The only part im worried about is the Header/Navigation within Xenforo, this includes the Logo Block, Login/Signout, Forum navigation, as well as User Navigation(Messages, Alerts, ECT).
I'm trying to move this into a custom Wordpress Theme, I already have the location within the theme that it would need to be placed in order to fit properly.
The header section of the Xenforo page is stored within a Div called "header", I've been looking into Div importing.
If you need any further information let me know
This is the code I'm experimenting with, if somebody could help me
PHP:
$(document).ready(function(){
console.log('sending request to index.php');
$.post("index.php",{},function(response){
console.log('ajax response:');
console.log(response);
console.log('header:');
console.log($(response).find('.header'));
$(response).find('.header').each(function(){
console.log('appending html:');
console.log($(this).html());
$('#main').append($(this).html());
});
});
});