thank you!
]]>Im using AMFPHP with as3 to get some user variables from wordpress like $user_login, but I always get a null value.
this is the php code im using:
<?php
class Users{
public function userData() {
return $user_login;
}
}
?>
I put a include “../wp-blog-header.php”; under AMFPHP globals.php but nothing happens
what can i do?
i hope you can help me.
thanks!o
]]>Frontend (pulls most of its content from WP):
Flash AS2 + SWFAddress + AMFPHP + ExternalInterface
Backend (main plugins used in WP):
All in One SEO Pack + GD Press Tools + Google XML Sitemaps + WordPress Mobile Edition + WP Google Analytics
The sites:
https://www.cocoabio.com
https://www.pandaec.com.br
https://www.restaurantebabylon.com
I’m using AMFPHP to get wordpress data into flash / as3. AMFPHP services reside in a separate directory from wordpress. I need access to the wordpress environment to call functions like wp_get_attachement_url. I tried including post.php like so:
include_once(‘../../../wordpress/wp-includes/post.php’);
But my service returns:
Fatal error: Call to undefined function wp_cache_get() in /Users/thartman/Sites/wordpress/wp-includes/post.php on line 226
Is there a proper way to include the wp enviro so I have access to the wealth of functions?
thanks,
Trevor
I am using AMFPHP to get my blog posts from the database so that I can then get at the info from inside flash. It’s all working fine, but the problem is the order… When I look at wp_posts.post_title the order is very strange, and some of my posts are repeated.
I am assuming this has something to do with having multiple categories for each post so they get duplicated.
I was wondering how wordpress organises the posts so that they display in the right order, am I using the correct tables?
Thanks,
Bob
[sig moderated – read the rules]
There is this great excample which uses “define(‘WP_USE_THEMES’, false);” [1] and which works finde.
But from inside the amfphp-browser I always get errors with the cache-function of wordpress. For excample when calling get_result()…
Does someone know why this caching-stuff breaks inside amfphp but not in the use-theme-false-excample?
Is there a workaround?
I tried the define no-cache-stuff but it didnt change anything.
Thanks!
[1] https://www.shooflydesign.org/buzz/past/embedding_wordpress.html
similar question over at https://sourceforge.net/forum/forum.php?thread_id=1777524&forum_id=247252
]]>