HorrorUK
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyI was thinking about something like that, so I tried:
<?php $app_id = get_option('tabsappid'); echo $app_id; $app_id = get_option('tabsappsecret'); echo $app_id; $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true )); ?>However, that causes the following error:
Fatal error: Call to undefined function get_option() in /var/www/vhosts/writers-site.com/httpdocs/wp-content/plugins/facebook-tabs-for-wordpress/fbindex.php on line 6
It looks like it doesn’t realise it’s part of WordPress.
It makes it worse feeling so close to the answer.
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyI don’t know if this will help make sense of it:
This is the page I have, and it is the second block of PHP I’m trying to work on to bring in the two bits of info I added to admin.
Please note, I changed the two bits of info names, to make it simpler.
They are now:tabsappid
tabsappsecretThis is the error I receive:
Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/writers-site.com/httpdocs/wp-content/plugins/facebook-tabs-for-wordpress/fbindex.php on line 7
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyI’m starting to think I’ve totally messed up here. Looking at the page, I’ve not actually called in any page that holds the info or the db.
I’m wondering if I need to add a line calling the database into the page?
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyBit of a blonde moment going on today, sorry.
How do you store the app_id option?
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyI wrote that slightly wrong in the first box.
It should be reading something like (it’s Facebook):
<?php $app_id = "76543768778578"; ?>I tried:
<?php $app_id = get_option('appid'); echo $app_id; ?>But it still doesn’t seem to be accepting it.
Forum: Fixing WordPress
In reply to: adding echo get_option correctlyThanks, I’ll give that a go 🙂
Forum: Fixing WordPress
In reply to: Show a WP page outside of WP?Blimey, that was quick :o)
Thanks for the link, I’ll check it out.
Forum: Fixing WordPress
In reply to: MySQL server has gone awayIt’s all correct. It is a bit weird, I’ve never seen it happen and, 99% of the time, it’s working ok.
The host was useless, so I’ve moved to a new one, so hopefully that will fix the problem.
Forum: Themes and Templates
In reply to: Get Sidebar not workingThanks, I took a look through that code again and saw how the other widgets were showing, then realised that each opf the sidebars originally in the theme had their own sidebar .php, so I just had to rip one oapart and do it my way 🙂
Forum: Themes and Templates
In reply to: Get Sidebar not workingI set up the new sidebar the same way the other sidebars were set up in functions.php.
register_sidebar( array( 'name' => __( 'Business Directory', 'huddle' ), 'id' => 'sidebar-page', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div><div class='clear'></div>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );I just changed the name of the sidebar
Forum: Plugins
In reply to: [Template Sync] [Plugin: Template Sync] Confused about plugin documentationI had the same problem, no files were created.
The help file talks like it is obvious, but there is no way of knowing what to do to get the files.
Forum: Fixing WordPress
In reply to: Paragraphs are being removedhmm, I fixed the problem, it seems it was a plugin causing it.
Forum: Fixing WordPress
In reply to: Show a link only if a user is not logged inah thanks, I see where I went wrong now.
Thanks for the help 🙂
Forum: Networking WordPress
In reply to: A quick question about sub-domainsok thanks. After a day of looking at all the promises of the numerous hosting companies, it looks like I will be sticking with my current one (Tagadab), and just upgrading from a VPS with 256mb, to one with 512mb.
It is actually thanks to you, having read your response to another post, saying that 512mb should be enough to run Multisite, with possibly a little tweaking done to the server – so thanks for that 🙂
Forum: Alpha/Beta/RC
In reply to: Screen Options in 3.3 Beta 2?That’s good news, judging by the replies on this post.
Though at least I don’t feel so bad having not found it before 🙂