Forum Replies Created

Viewing 15 replies - 16 through 30 (of 186 total)
  • Thread Starter Abe

    (@abu117)

    I have done as suggested. Please see https://www.abeybaby.ca – you will see I created a new menu item called “Test” and edited the Dashboard > Forum > Settings > General page slug to read “Users”.

    When I go to the site, and click the “Test” menu item, it tried to go to https://www.abeybaby.ca/community/users/ but the page will not load.

    Thread Starter Abe

    (@abu117)

    UPDATE: I Changed the custom link in the WPForo Navigation menu to the members page, however it is not loading like the rest of the form pages. The WPForo menu itself is missing on this page?

    Thanks in advance for any help.

    Thread Starter Abe

    (@abu117)

    Thanks again ??

    Thread Starter Abe

    (@abu117)

    Thanks – that worked. A new question though. I would like to add line-height:1.5; to the correct class, so the text does not look so scrunched together. Can you please advise what class I need to target?

    Thread Starter Abe

    (@abu117)

    Sorry, it seemed the other pages were set to default. All is OK now ?? Thanks for your help,

    Abe

    Thread Starter Abe

    (@abu117)

    seems support is non-existent though

    Thread Starter Abe

    (@abu117)

    thanks – that worked for the homepage ?? How can I do this for every page? I’m assuming I shouldn’t have to add this CSS rule for each individual page?

    Thread Starter Abe

    (@abu117)

    After several days of being stalled, it suddenly just re-started again.

    Thread Starter Abe

    (@abu117)

    Thanks so much for the reply. I have increased the maximum incorrect login attempts from the default of 3 to 5. Instantly lockout invalid usernames is not checked. I also checked “Allow unlock requests”.

    Again thanks. I’ll be checking this out for a while ??

    Abe

    Thread Starter Abe

    (@abu117)

    Hi again Eduard – I’m not sure where you are located, or whether you are available on the weekend (I’m in Western Canada and it’s 3 :10 pm here on Saturday). I just wanted to make sure that you did receive my email with the attached functions.php file and if so, when you might have a chance to look at it? Not trying to rush you…

    Abe

    Thread Starter Abe

    (@abu117)

    sorry Edward – I just noticed this still in my drafts folder. It has now been sent.

    Thread Starter Abe

    (@abu117)

    sent – thanks Edward ??

    Thread Starter Abe

    (@abu117)

    I removed the code:

    // New order notification only for “Pending” Order status
    add_action( ‘woocommerce_new_order’, ‘pending_new_order_notification’, 20, 1 );
    function pending_new_order_notification( $order_id ) {
    // Get an instance of the WC_Order object
    $order = wc_get_order( $order_id );

    // Only for “pending” order status
    if( ! $order->has_status( ‘pending’ ) ) return;

    // Get an instance of the WC_Email_New_Order object
    $wc_email = WC()->mailer()->get_emails()[‘WC_Email_New_Order’];

    ## — Customizing Heading, subject (and optionally add recipients) — ##
    // Change Subject
    $wc_email->settings[‘subject’] = __(‘{site_title} – New customer Pending order ({order_number}) – {order_date}’);
    // Change Heading
    $wc_email->settings[‘heading’] = __(‘New customer Pending Order’);
    // $wc_email->settings[‘recipient’] .= ‘[email protected], [email protected]‘; // Add email recipients (coma separated)

    // Send “New Email” notification (to admin)
    $wc_email->trigger( $order_id );
    }

    My product page is loading fine now. But problem still not solved lol

    Thread Starter Abe

    (@abu117)

    nope….

    this is my functions.php file now:

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘my_enqueue_assets’ );

    function my_enqueue_assets() {

    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );

    }

    function my_added_social_icons($kkoptions) {
    global $themename, $shortname;

    $open_social_new_tab = array( “name” =>esc_html__( “Open Social URLs in New Tab”, $themename ),
    “id” => $shortname . “_show_in_newtab”,
    “type” => “checkbox”,
    “std” => “off”,
    “desc” =>esc_html__( “Set to ON to have social URLs open in new tab. “, $themename ) );

    $replace_array_newtab = array ( $open_social_new_tab );

    $show_instagram_icon = array( “name” =>esc_html__( “Show Instagram Icon”, $themename ),
    “id” => $shortname . “_show_instagram_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Instagram Icon on your header or footer. “, $themename ) );
    $show_pinterest_icon = array( “name” =>esc_html__( “Show Pinterest Icon”, $themename ),
    “id” => $shortname . “_show_pinterest_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Pinterest Icon on your header or footer. “, $themename ) );
    $show_tumblr_icon = array( “name” =>esc_html__( “Show Tumblr Icon”, $themename ),
    “id” => $shortname . “_show_tumblr_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Tumblr Icon on your header or footer. “, $themename ) );
    $show_dribbble_icon = array( “name” =>esc_html__( “Show Dribbble Icon”, $themename ),
    “id” => $shortname . “_show_dribbble_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Dribbble Icon on your header or footer. “, $themename ) );
    $show_vimeo_icon = array( “name” =>esc_html__( “Show Vimeo Icon”, $themename ),
    “id” => $shortname . “_show_vimeo_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Vimeo Icon on your header or footer. “, $themename ) );
    $show_linkedin_icon = array( “name” =>esc_html__( “Show LinkedIn Icon”, $themename ),
    “id” => $shortname . “_show_linkedin_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the LinkedIn Icon on your header or footer. “, $themename ) );
    $show_myspace_icon = array( “name” =>esc_html__( “Show MySpace Icon”, $themename ),
    “id” => $shortname . “_show_myspace_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the MySpace Icon on your header or footer. “, $themename ) );
    $show_skype_icon = array( “name” =>esc_html__( “Show Skype Icon”, $themename ),
    “id” => $shortname . “_show_skype_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Skype Icon on your header or footer. “, $themename ) );
    $show_youtube_icon = array( “name” =>esc_html__( “Show Youtube Icon”, $themename ),
    “id” => $shortname . “_show_youtube_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Youtube Icon on your header or footer. “, $themename ) );
    $show_flickr_icon = array( “name” =>esc_html__( “Show Flickr Icon”, $themename ),
    “id” => $shortname . “_show_flickr_icon”,
    “type” => “checkbox2”,
    “std” => “on”,
    “desc” =>esc_html__( “Here you can choose to display the Flickr Icon on your header or footer. “, $themename ) );

    $repl_array_opt = array( $show_instagram_icon,
    $show_pinterest_icon,
    $show_tumblr_icon,
    $show_dribbble_icon,
    $show_vimeo_icon,
    $show_linkedin_icon,
    $show_myspace_icon,
    $show_skype_icon,
    $show_youtube_icon,
    $show_flickr_icon,
    );

    $show_instagram_url =array( “name” =>esc_html__( “Instagram Profile Url”, $themename ),
    “id” => $shortname . “_instagram_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Instagram Profile. “, $themename ) );
    $show_pinterest_url =array( “name” =>esc_html__( “Pinterest Profile Url”, $themename ),
    “id” => $shortname . “_pinterest_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Pinterest Profile. “, $themename ) );
    $show_tumblr_url =array( “name” =>esc_html__( “Tumblr Profile Url”, $themename ),
    “id” => $shortname . “_tumblr_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Tumblr Profile. “, $themename ) );
    $show_dribble_url =array( “name” =>esc_html__( “Dribbble Profile Url”, $themename ),
    “id” => $shortname . “_dribble_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Dribbble Profile. “, $themename ) );
    $show_vimeo_url =array( “name” =>esc_html__( “Vimeo Profile Url”, $themename ),
    “id” => $shortname . “_vimeo_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Vimeo Profile. “, $themename ) );
    $show_linkedin_url =array( “name” =>esc_html__( “LinkedIn Profile Url”, $themename ),
    “id” => $shortname . “_linkedin_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your LinkedIn Profile. “, $themename ) );
    $show_myspace_url =array( “name” =>esc_html__( “MySpace Profile Url”, $themename ),
    “id” => $shortname . “_mysapce_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your MySpace Profile. “, $themename ) );
    $show_skype_url =array( “name” =>esc_html__( “Skype Profile Url”, $themename ),
    “id” => $shortname . “_skype_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Skype Profile. “, $themename ) );
    $show_youtube_url =array( “name” =>esc_html__( “Youtube Profile Url”, $themename ),
    “id” => $shortname . “_youtube_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Youtube Profile. “, $themename ) );
    $show_flickr_url =array( “name” =>esc_html__( “Flickr Profile Url”, $themename ),
    “id” => $shortname . “_flickr_url”,
    “std” => “#”,
    “type” => “text”,
    “validation_type” => “url”,
    “desc” =>esc_html__( “Enter the URL of your Flickr Profile. “, $themename ) );

    $repl_array_url = array( $show_instagram_url,
    $show_pinterest_url,
    $show_tumblr_url,
    $show_dribble_url,
    $show_vimeo_url,
    $show_linkedin_url,
    $show_myspace_url,
    $show_skype_url,
    $show_youtube_url,
    $show_flickr_url,
    );

    $srch_key = array_column($kkoptions, ‘id’);

    $key = array_search(‘divi_show_facebook_icon’, $srch_key);
    array_splice($kkoptions, $key + 6, 0, $replace_array_newtab);

    $key = array_search(‘divi_show_google_icon’, $srch_key);
    array_splice($kkoptions, $key + 8, 0, $repl_array_opt);

    $key = array_search(‘divi_rss_url’, $srch_key);
    array_splice($kkoptions, $key + 17, 0, $repl_array_url);

    //print_r($kkoptions);

    return $kkoptions;
    }
    add_filter(‘et_epanel_layout_data’, ‘my_added_social_icons’, 99);

    define( ‘DDPL_DOMAIN’, ‘my-domain’ ); // translation domain
    require_once( ‘vendor/divi-disable-premade-layouts/divi-disable-premade-layouts.php’ );

    // New order notification only for “Pending” Order status
    add_action( ‘woocommerce_new_order’, ‘pending_new_order_notification’, 20, 1 );
    function pending_new_order_notification( $order_id ) {
    // Get an instance of the WC_Order object
    $order = wc_get_order( $order_id );

    // Only for “pending” order status
    if( ! $order->has_status( ‘pending’ ) ) return;

    // Get an instance of the WC_Email_New_Order object
    $wc_email = WC()->mailer()->get_emails()[‘WC_Email_New_Order’];

    ## — Customizing Heading, subject (and optionally add recipients) — ##
    // Change Subject
    $wc_email->settings[‘subject’] = __(‘{site_title} – New customer Pending order ({order_number}) – {order_date}’);
    // Change Heading
    $wc_email->settings[‘heading’] = __(‘New customer Pending Order’);
    // $wc_email->settings[‘recipient’] .= ‘,[email protected], [email protected]’; // Add email recipients (coma separated)

    // Send “New Email” notification (to admin)
    $wc_email->trigger( $order_id );
    }
    // New order notification only for “Pending” Order status
    add_action( ‘woocommerce_new_order’, ‘pending_new_order_notification’, 20, 1 );
    function pending_new_order_notification( $order_id ) {
    // Get an instance of the WC_Order object
    $order = wc_get_order( $order_id );

    // Only for “pending” order status
    if( ! $order->has_status( ‘pending’ ) ) return;

    // Get an instance of the WC_Email_New_Order object
    $wc_email = WC()->mailer()->get_emails()[‘WC_Email_New_Order’];

    ## — Customizing Heading, subject (and optionally add recipients) — ##
    // Change Subject
    $wc_email->settings[‘subject’] = __(‘{site_title} – New customer Pending order ({order_number}) – {order_date}’);
    // Change Heading
    $wc_email->settings[‘heading’] = __(‘New customer Pending Order’);
    // $wc_email->settings[‘recipient’] .= ‘[email protected], [email protected]’; // Add email recipients (coma separated)

    // Send “New Email” notification (to admin)
    $wc_email->trigger( $order_id );
    }

    I still cannot load the product page and the editor shows:
    Your PHP code changes were rolled back due to an error on line 222 of file wp-content/themes/ikoin/functions.php. Please fix and try saving again.

    Cannot redeclare pending_new_order_notification() (previously declared in wp-content/themes/ikoin/functions.php:181)

    Thread Starter Abe

    (@abu117)

    I now get this error when trying to go to my product:

    Warning: Cannot modify header information – headers already sent by (output started at /home/ikoin889/public_html/wp-content/themes/ikoin/functions.php:202) in /home/ikoin889/public_html/wp-includes/pluggable.php on line 1216

Viewing 15 replies - 16 through 30 (of 186 total)