Benjy
Well-known member
Hi,Anyone using this ? Is maison.com still using it ?
Here's what I'm using on maison.com: http://xenforo.com/community/threads/website-integration-class.17906/page-2#post-233639
Hi,Anyone using this ? Is maison.com still using it ?
Thanks!Again ... great job on maison.com - it's a thing of beauty.
The site and the forums are on the same server, so there is no remote stuff needed. Also, I wasn't sure if we'd use xF or another system so an all-in-one connector seemed like a good idea. Now that we use xF and don't plan to change, having a versatile connector isn't that critical so I ended up putting directly the xF stuff (very light: user info retrieval, thread and post info retrieval, thread posting, thread editing) inside the codebase.Maybe the reasons why you are using your new method vs. the one outlined here ?
Err... you can make a JS login box without this, but I guess you're looking for some kind of a XF/WP connector, in which case it's a bit more complicatedThis script might allow me to make a login box on javascript (for Wordpress for example) to login into my forum?
This doesn't get simpler than that:I was refering to be able to login into my forum account through a different page out of the forum...for example an html page
<form action="#XENFORO_HOME_PATH#/login/login" method="post">
<label for="xflogin">Name / Email:</label>
<input type="text" id="xflogin" name="login" />
<label for="xfpassword">Password:</label>
<input type="password" id="xfpassword" name="login" />
<input type="submit" value="Log in" />
<label for="xfremember"><input type="checkbox" id="xfremember" value="1" name="remember" /> Stay logged in</label>
<input type="hidden" name="cookie_check" value="1" />
<input type="hidden" name="redirect" value="#WHERE_YOU_WANT_TO_GO_AFTER_LOGIN#" />
<input type="hidden" name="_xfToken" value="" />
</form>
$whatever is an XML string. You have to parse it by using SimpleXML, XMLReader, Zend_Config_Xml... or even Zend_Json::fromXml() which will return a JSON string that you can transform into an array.How exactly do I use this script?
Whenever I do $whatever = $fcc->getuser(1); it echoes out everything, how can I use the information so I can put it where I want it?
$whatever is an XML string. You have to parse it by using SimpleXML, XMLReader, Zend_Config_Xml... or even Zend_Json::fromXml() which will return a JSON string that you can transform into an array.
$whatever is an XML string. You have to parse it by using SimpleXML, XMLReader, Zend_Config_Xml... or even Zend_Json::fromXml() which will return a JSON string that you can transform into an array.
http://mywebsite.com/forum/xf_server.php?do=isloggedin&ipaddress=MYIP&useragentppl&sessionid=xf_session&sessionuser=xf_user
http://xenforo.com/community/threads/external-login-logout-functions.26899/I got the isloggedin() working now but only if I go to
Code:http://mywebsite.com/forum/xf_server.php?do=isloggedin&ipaddress=MYIP&useragentppl&sessionid=xf_session&sessionuser=xf_user
If I do $fcc->isloggedin(); on http://mywebsite.com/index.php it returns 0
By default, XF cookies are stored for the entire domain, so a site in root is able to access cookies stored by an XF install located in /forums... Anyway, you can ensure that by editing your library/config.php file and inserting:you do mention that my site need access to the forum cookies but how?
$config['cookie']['path'] = '/'; //the cookie is accessible in every folder
$config['cookie']['domain'] = ''; //the cookie is accessible in every subdomain
We use essential cookies to make this site work, and optional cookies to enhance your experience.