Forum Replies Created

Viewing 15 replies - 16 through 30 (of 65 total)
  • Thread Starter sallysqueak

    (@sallysqueak)

    Ok, so looking now at method 1 (although I’m not sure this is the right thing to do for a site which only wants the dating site as a part of the site rather than the entire site being a dating site?)

    Assuming I am ok to use method 1, this is what I don’t understand;

    copy page.php ; – I have no page anywhere called page.php, all I have is index.php and all that contains is `<?php
    // Silence is golden.
    `
    The only other thing I can find which is a .php file is in my themes child folder called functions.php, the content of this is the code shown further up in this thread.

    paste it with new name (ex : page-rencontre.php) ;
    add the code mentioned in installation para secundo and tertio at the best place, just after content div ; Paste which code, in which .php file, (and call it what?) and place the .php file where exactly?
    clean unneeded code ;
    in admin panel / page, create or change a page to set page-rencontre as template ;
    in admin panel / settings / reading, choose static page and the page you just changed.

    I’d really like to get this working, but just really need help with the installation. I created the page at https://www. the house of dog .co.uk/dog-assisted-dating/ for the main part of the site, so I’d like to get it all appearing here.

    Please could you explain what you mean above? Sorry I’m a bit stupid!

    Thread Starter sallysqueak

    (@sallysqueak)

    Hi Jacques

    I was under the impression method 2 is for when the dating site is just an add on to an existing site? I don’t want the dating site as my homepage, i already have a complex site at this domain. I just want the dating site to be a feature on the site so I thought I had to use method 2?

    Thread Starter sallysqueak

    (@sallysqueak)

    Hi Jacques

    Apologies for my stupidness here

    So what exactly do I need to do? Create a new item within my themes child folder and call it dynamic-sidebar-function.php and then just add only the code below in it?

    <?php if(!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘my-area-name’)) : endif; ?>

    Or am I completely missing the point?

    Thread Starter sallysqueak

    (@sallysqueak)

    Hi Jacques

    Thanks for getting back to me.

    The code in my function.php at the moment is;

    <?php
    /**
    * Register our sidebars and widgetized areas.
    *
    */
    function arphabet_widgets_init() {
    
    register_sidebar( array(
    'name' => 'Home right sidebar',
    'id' => 'home_right_1',
    'before_widget' => '<div>',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="rounded">',
    'after_title' => '</h2>',
    ) );
    }
    add_action( 'widgets_init', 'arphabet_widgets_init' );
    
    if ( function_exists( 'register_nav_menus' ) ) {
    register_nav_menus( array(
    'footer-nav' => __( 'Footer Navigation',TEMPLATE_DOMAIN ),
    ) );
    }
    function my_custom_tax($taxonomy='', $args='') {
    
    // cast $taxonomy as an array so in_array() always works.
      if( in_array('listing_category', (array) $taxonomy)  ) {
        return array('listing_category');
      }
      elseif( in_array('classifieds_categories', (array) $taxonomy)  ) {
        return array('classifieds_categories');
      }
      return $taxonomy; //Wasn't us so pass original.
    }
    add_filter('show_admin_bar', '__return_false');
    add_filter( 'get_categories_taxonomy', 'my_custom_tax'  );
    add_filter( 'mp_register_post_type', 'add_mp_custom_fields' );
    function add_mp_custom_fields($args) {
    $args['capability_type'] = 'products';
    return $args;
    }
    // custom admin login logo
    function custom_login_logo() {
    	echo '<style type="text/css">
    	h1 a { background-image: url('.get_bloginfo('template_directory').'thehouseofdog.co.uk/wp-content/uploads/2014/01/Thehouseofdog-logo-reduced-e1397132606913.jpg) !important; }
    	</style>';
    }
    add_action('login_head', 'custom_login_logo');
    function geodir_restore_default_pages()
    {
    //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' );
    geodir_restore_default_page( esc_sql( _x('listings', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_listing_page', __('All Listings', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('add-listing', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_add_listing_page', __('Add Listing', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('listing-preview', 'page_slug', 'geodirectory') ), 'geodir_preview_page', __('Listing Preview', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('listing-success', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_success_page', __('Listing Success', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('location', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_location_page', __('Location', GEODIRECTORY_TEXTDOMAIN), '' );
    }
    function geodir_restore_default_page( $slug, $option, $page_title = '', $page_content = '', $post_parent = 0,$status = 'virtual' )
    {
    global $wpdb, $current_user;
    $page_found = $wpdb->get_var(
    $wpdb->prepare(
    "SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;",
    array($slug)
    )
    );
    if ($page_found) :
    // Page exists
    update_option($option, $page_found);
    return;
    endif;
    $page_data = array(
    'post_status' => $status,
    'post_type' => 'page',
    'post_author' => $current_user->ID,
    'post_name' => $slug,
    'post_title' => $page_title,
    'post_content' => $page_content,
    'post_parent' => $post_parent,
    'comment_status' => 'closed'
    );
    $page_id = wp_insert_post($page_data);
    add_option($option, $page_id);
    }
    add_action('init' , 'geodir_restore_default_pages') ;
    add_action('init' , 'geodir_redirect_to_default_login') ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST['geodir_signup']))
    {
      wp_redirect(home_url().'/wp-login.php');
      exit();
    }
    }
    ?>

    So I tried to add the code

    <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('my-area-name')) : endif; ?>

    like this;

    <?php
    /**
    * Register our sidebars and widgetized areas.
    *
    */
    function arphabet_widgets_init() {
    
    register_sidebar( array(
    'name' => 'Home right sidebar',
    'id' => 'home_right_1',
    'before_widget' => '<div>',
    'after_widget' => '</div>',
    'before_title' => '<h2 class="rounded">',
    'after_title' => '</h2>',
    ) );
    }
    add_action( 'widgets_init', 'arphabet_widgets_init' );
    
    if ( function_exists( 'register_nav_menus' ) ) {
    register_nav_menus( array(
    'footer-nav' => __( 'Footer Navigation',TEMPLATE_DOMAIN ),
    ) );
    }
    if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('my-area-name')
    function my_custom_tax($taxonomy='', $args='') {
    
    // cast $taxonomy as an array so in_array() always works.
      if( in_array('listing_category', (array) $taxonomy)  ) {
        return array('listing_category');
      }
      elseif( in_array('classifieds_categories', (array) $taxonomy)  ) {
        return array('classifieds_categories');
      }
      return $taxonomy; //Wasn't us so pass original.
    }
    add_filter('show_admin_bar', '__return_false');
    add_filter( 'get_categories_taxonomy', 'my_custom_tax'  );
    add_filter( 'mp_register_post_type', 'add_mp_custom_fields' );
    function add_mp_custom_fields($args) {
    $args['capability_type'] = 'products';
    return $args;
    }
    // custom admin login logo
    function custom_login_logo() {
    	echo '<style type="text/css">
    	h1 a { background-image: url('.get_bloginfo('template_directory').'thehouseofdog.co.uk/wp-content/uploads/2014/01/Thehouseofdog-logo-reduced-e1397132606913.jpg) !important; }
    	</style>';
    }
    add_action('login_head', 'custom_login_logo');
    function geodir_restore_default_pages()
    {
    //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' );
    geodir_restore_default_page( esc_sql( _x('listings', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_listing_page', __('All Listings', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('add-listing', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_add_listing_page', __('Add Listing', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('listing-preview', 'page_slug', 'geodirectory') ), 'geodir_preview_page', __('Listing Preview', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('listing-success', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_success_page', __('Listing Success', GEODIRECTORY_TEXTDOMAIN), '' );
    geodir_restore_default_page( esc_sql( _x('location', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_location_page', __('Location', GEODIRECTORY_TEXTDOMAIN), '' );
    }
    function geodir_restore_default_page( $slug, $option, $page_title = '', $page_content = '', $post_parent = 0,$status = 'virtual' )
    {
    global $wpdb, $current_user;
    $page_found = $wpdb->get_var(
    $wpdb->prepare(
    "SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;",
    array($slug)
    )
    );
    if ($page_found) :
    // Page exists
    update_option($option, $page_found);
    return;
    endif;
    $page_data = array(
    'post_status' => $status,
    'post_type' => 'page',
    'post_author' => $current_user->ID,
    'post_name' => $slug,
    'post_title' => $page_title,
    'post_content' => $page_content,
    'post_parent' => $post_parent,
    'comment_status' => 'closed'
    );
    $page_id = wp_insert_post($page_data);
    add_option($option, $page_id);
    }
    add_action('init' , 'geodir_restore_default_pages') ;
    add_action('init' , 'geodir_redirect_to_default_login') ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST['geodir_signup']))
    {
      wp_redirect(home_url().'/wp-login.php');
      exit();
    }
    }
    ?>

    But it just broke the page, so I went back to the original. Am I doing this wrong? I’m not much good with code as you can probably tell!

    Thread Starter sallysqueak

    (@sallysqueak)

    Please disregard the last post, my apologies, this issue was in fact caused by the new smush it plugin!

    I now have rencontre installed and it’s telling me i need to install countries. What does it mean by this? I can’t find a countries plugin or add on in the plugin store?

    Also, it appears to have put heart symbols in the place of my geodirectories categories. Could this be a conflict and is this anything to worry about?

    Thanks

    Thread Starter sallysqueak

    (@sallysqueak)

    This plugin has completely broken my site! I’m really not impressed right now.

    Cannot even log into my dashboard and still broken despite deleting the plugin in cpanel!

    Getting security warnings and nothing at all is working except for my cached homepage! Is this plugin malicious?

    That sounds great Jacques, thanks for confirming. Will try to install this now and hope I don’t need to edit too much code to make it work on my existing site, as I’m completely hopeless with coding! Lol

    Thread Starter sallysqueak

    (@sallysqueak)

    Ah, brilliant! ?? I don’t suppose you can recommend a free one so I can research how I would put this together? If you have an example site which has been used like this that would be great to take a look at, and if you have any instructions anywhere on how I can put all this together, that would be even better! Sorry I’ve never made a dating site before and just looking for the most affordable and effective solution ??

    Hi Jacques

    Will there be a charge for the version where you can charge members?

    If so, do you have an idea of what it’s likely to be?

    Thanks

    I’d also be interested in downloading this if I could charge members. Do you have a release date for the paid option?

    Thread Starter sallysqueak

    (@sallysqueak)

    Don’t worry, problem solved, issue was causing by a hosting coding error ??

    Forum: Plugins
    In reply to: [Yoast SEO] Sitemap errors

    Is anyone watching this support forum? Seems like a lot of people having the same problem and no answers are coming. If I can’t resolve this today I’m going to have to uninstall and use an alternative before this affects my web ranking!

    Mine also not working and I’ve tried resetting permalinks and deactivating/reactivating. Just getting a blank page which nothing appears on?

    Thread Starter sallysqueak

    (@sallysqueak)

    Ah ha! Thank you! You’ve saved me hours of wondering…

    Also looking for a free alternative, won’t be paying for WPMU

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