Flash navbar from scratch – undefined function error?
-
Hello!
I have created a navbar in Flash for use in my WordPress blog. For testing purposes it is limited to only one dynamic text field at the moment, which is supposed to call up the function:
<?php wp_loginout(); ?>I created a .php document which contains the following:
sites_txt=<?php wp_loginout(); ?>(sites_txt is the instance name that I assigned to the dynamic text field in Flash)
I uploaded the above .php document to my FTP, along with the .swf navbar file. The .swf file is calling on this .php file just fine, but I’m not getting the result that I expected. Instead of displaying a link to Log In or Out as I expected, the navbar displays this text:
Fatal error: Call to undefined function: wp_loginout() in /home/content/b/e/i/beingray/html/sites.php on line 1
My question: How do I fix this error so that my .swf file will correctly display a Log In/Out link?
Note: My WordPress files are not corrupted or missing. I know that much, as I can code a normal text navbar with the same function and have it work just fine in my header.php.
Note2: I’m not sure if it’s relevant, but my WordPress files are saved to the directory /blog on my FTP. My navbar .swf file is saved into /flash on my FTP. The .php file called on by the navbar is saved to the top level, main directory of the FTP.
The topic ‘Flash navbar from scratch – undefined function error?’ is closed to new replies.