craigiswayne
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Smart App Banner] Undefined IndexesSorry for the late reply Stephen, it’s working perfectly thank you 🙂
p.s. your website link is spelt incorrectly.
Forum: Plugins
In reply to: [Smart App Banner] Undefined Indexeshi @stephend, thanks, really struggling to figure out how to use svn, but as per your request here’s the diff:
Index: trunk/wsl-smart-app-banner.php =================================================================== --- trunk/wsl-smart-app-banner.php (revision 1911837) +++ trunk/wsl-smart-app-banner.php (working copy) @@ -37,6 +37,9 @@ add_action('plugins_loaded', 'wsl_smart_app_banner_init'); function wsl_output_safari_app_banner($post_ID) { + + $app_id = $app_id_list = null; + // This is a weird order, but the idea is that if there's a local // definition we use that in preference to the global option if (! is_front_page()) { @@ -174,6 +177,7 @@ $appid_ipad_val = $_POST[ $appid_ipad_field_name ]; $affiliate_val = $_POST[ $affiliate_field_name ]; $argument_val = $_POST[ $argument_field_name ]; + $_POST[ $global_banner_field_name ] = isset( $_POST[ $global_banner_field_name ] ) ? $_POST[ $global_banner_field_name ] : ''; $global_banner_val = $_POST[ $global_banner_field_name ]; // Save the posted value in the database- This reply was modified 7 years, 10 months ago by craigiswayne. Reason: code block formatting
- This reply was modified 7 years, 10 months ago by Jan Dembowski. Reason: Fixed formatting
Forum: Plugins
In reply to: [Smart App Banner] Undefined IndexesI did give it a bash earlier without any luck, this is probably my lack of experience with svn, will give it another go.
Viewing 3 replies - 1 through 3 (of 3 total)