Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Wordpress Gameaddict error!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Woiah" data-source="post: 349955" data-attributes="member: 13730"><p>Hi, I just paid for a theme called Gameaddict for Wordpress, And now its all installed and i got this error. </p><p></p><p>[CODE]Parse error: syntax error, unexpected '{' in /home/a4816430/public_html/wp-content/themes/gameaddict/themeOptions/functions.php on line 1[/CODE]</p><p></p><p>Here is the functions.php they mean</p><p></p><p>[PHP]<?php</p><p>if ( !function_exists( 'optionsframework_init' ) ) {</p><p>/*-----------------------------------------------------------------------------------*/</p><p>/* Options Framework Theme</p><p>/*-----------------------------------------------------------------------------------*/</p><p>/* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */</p><p></p><p> define('OPTIONS_FRAMEWORK_URL', get_template_directory() . '/themeOptions/admin/');</p><p> define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/themeOptions/admin/');</p><p></p><p>require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');</p><p>}</p><p>/*</p><p>* This is an example of how to add custom scripts to the options panel.</p><p>* This one shows/hides the an option when a checkbox is clicked.</p><p>*/</p><p>add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');</p><p>function optionsframework_custom_scripts() { ?></p><p><script type="text/javascript"></p><p>jQuery(document).ready(function() {</p><p> jQuery('#example_showhidden').click(function() {</p><p> jQuery('#section-example_text_hidden').fadeToggle(400);</p><p> });</p><p> if (jQuery('#example_showhidden:checked').val() !== undefined) {</p><p> jQuery('#section-example_text_hidden').show();</p><p> }</p><p>});</p><p></script></p><p><?php</p><p>}</p><p>/*</p><p>* Turns off the default options panel from Twenty Eleven</p><p>*/</p><p>add_action('after_setup_theme','remove_twentyeleven_options', 100);</p><p>function remove_twentyeleven_options() {</p><p> remove_action( 'admin_menu', 'twentyeleven_theme_options_add_page' );</p><p>}</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Woiah, post: 349955, member: 13730"] Hi, I just paid for a theme called Gameaddict for Wordpress, And now its all installed and i got this error. [CODE]Parse error: syntax error, unexpected '{' in /home/a4816430/public_html/wp-content/themes/gameaddict/themeOptions/functions.php on line 1[/CODE] [B][/B] Here is the functions.php they mean [PHP]<?php if ( !function_exists( 'optionsframework_init' ) ) { /*-----------------------------------------------------------------------------------*/ /* Options Framework Theme /*-----------------------------------------------------------------------------------*/ /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */ define('OPTIONS_FRAMEWORK_URL', get_template_directory() . '/themeOptions/admin/'); define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/themeOptions/admin/'); require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php'); } /* * This is an example of how to add custom scripts to the options panel. * This one shows/hides the an option when a checkbox is clicked. */ add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#example_showhidden').click(function() { jQuery('#section-example_text_hidden').fadeToggle(400); }); if (jQuery('#example_showhidden:checked').val() !== undefined) { jQuery('#section-example_text_hidden').show(); } }); </script> <?php } /* * Turns off the default options panel from Twenty Eleven */ add_action('after_setup_theme','remove_twentyeleven_options', 100); function remove_twentyeleven_options() { remove_action( 'admin_menu', 'twentyeleven_theme_options_add_page' ); } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Wordpress Gameaddict error!
Top