Greg McEwan Marriott

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • in reply to: Need help with incorrect search URL #32143

    Greg McEwan Marriott
    Buyer
    Post count: 36

    Thank you for info – is there anyway i can “hook” or append the search form submit to add the /go2/ in front of the ?geodir_search=

    The only reference i could find to the search url or string was in geodirectory_advance_search_function.php e.g.

    echo '<li '.$classname.'><a href="'.home_url().'go2/?geodir_search=1&stype='.$

    I tried changing in that page to see if it would work but no go, i could not find any reference in the core plugin pertaining to the search string


    Greg McEwan Marriott
    Buyer
    Post count: 36

    Hi all, i know about switching off the categories either in the sidebar or details page, but what i am looking for is the page that generates the categories on the sidebar


    Greg McEwan Marriott
    Buyer
    Post count: 36

    to get rid of the ‘and’ in the output cat1, cat2, cat3 and cat4 i had to add this to theme functions.php

    
    
    function wpb_adding_scripts() {
    	wp_register_script('place_tag_fix', '/wp-content/themes/buzzbook/js/place_tag_fix.js','','1.1', true);
    	wp_enqueue_script('place_tag_fix');
    }
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );

    place_tag_fix.js

    
    
    
    window.onload = function() {
      changeText();
    };
    
    function changeText(){
    	var tags = document.getElementById('geodirtags').innerHTML;
    	var res = tags.replace("and", ""); 
    	document.getElementById('geodirtags').innerHTML = res;
    }
    in reply to: Category description help needed #29824

    Greg McEwan Marriott
    Buyer
    Post count: 36

    would be great if it was multisite compat – i did not multisite enable geodir… site specific would be great to star with – if u need admin access i have made u admin on site

    in reply to: Unable to create new listings #29817

    Greg McEwan Marriott
    Buyer
    Post count: 36
    This reply has been marked as private.
    in reply to: Unable to create new listings #29798

    Greg McEwan Marriott
    Buyer
    Post count: 36

    ouch….. i was just alerted by a user that I have the same issue…. Been working like a well oiled machine till to be honest not sure – i was a few versions behind and did updates a few days ago…. Front & Backend add listings use to work fine, now it seems after i add a front end listing, and after preview i say post, it looks like it posts, returns to the site front page… look in db or listings in backend and new listing went “kapoof” no where…. no error message nothing, just disappears pretending it has been submitted fine….

    Any ideas where i can start looking? http://smeak.com/add-listing/?listing_type=gd_place

    in reply to: Category description help needed #29713

    Greg McEwan Marriott
    Buyer
    Post count: 36
    This reply has been marked as private.
    in reply to: Multisite – use one table? #23621

    Greg McEwan Marriott
    Buyer
    Post count: 36

    tx – stiofan – i do not want to change the core plugin but abandon the idea i cannot – this is not a personal request from me – i have no choice as this is what i have to provide for the client – so trust me, i will do my best to share ALL i can and NOt try to change the core plugin – there are many multi site plugins, why is it so “impossible” to have a multisite wpgeodirectory plugin?

    I bought your old geodirectory/geotheme system many moons ago, and i did many changes to that and had that working fine on muktisite, i then also tried for over a year geomywp which IS multisite, i even integrated that into the DIRECTORY theme on themeforest… I decided to switch back to your system, as i felt you guys have done a great job so far and i would like to support you….

    as i said i don’t have the luxury of cannot… I MUST achieve this, i have no options, and i also know that NOTHING in programming is unachievable – to have a multisite version of your great system is NO train smash – it can be done

    in reply to: Multisite – use one table? #23576

    Greg McEwan Marriott
    Buyer
    Post count: 36

    @m33 – will keep you posted on this – I tried yesterday to replace all references to $wpdb->prefix with $wpdb->base_prefix which forces the plugin to use the “root” blog or site tables – that did not work as much as i wanted – i then tried replacing all db calls to $wpdb->posts. terms etc to wp_posts, wp_terms etc… that only got some parts working as in now at least i can see the locations taxonomy in the 2nd blog… also some listings show up now in 2nd blog, but not in admin….

    At the end of it this is not the way to go… what needs to be done is to have a network admin screen that asks if the plugin must be installed network wide or not.

    Before in another plugin we used the switch blog function to access any references to posts or terms and taxonomies… I will spend some time on this, for us a solution is not a “want” it is a MUST… without this we cannot use the system in our business model. Either way, any help or suggestions appreciated – Lets get this done !!!!

    Maybe a function using switch_to_blog( $site->blog_id );??

    or

    global $wpdb;

    $base_prefix = $wpdb->get_blog_prefix(0);
    $base_prefix = str_replace( ‘1_’, ” , $base_prefix );
    Best Regards

    in reply to: Multisite – use one table? #23478

    Greg McEwan Marriott
    Buyer
    Post count: 36

    users have one login across all sites in install … we have the listings site, and the 2nd is a buddypress social site that pulls in the listings as well in widgets allowing users to rate, and mark as favourites etc… places they have been to. The social site uses a completely different theme – which we have to retain, the listings in both the main blog and subsite have to be shared or the same on both.

    When you install the plugins at moment on the 2nd site – it does not totally share the posts across both blogs

    in reply to: Multisite – use one table? #21933

    Greg McEwan Marriott
    Buyer
    Post count: 36

    aah that is good news Stiofan… all i am really trying to achieve is to have the install on the 2nd blog use the same listings and locations on the main site…. i see all the geodir tables are global, except that the wp_posts and wp_postmeta tables are not “multiste” so on root blog it uses wp_posts and wp_postmeta and on say blog id 331 it uses wp_331_posts and wp_331_postmeta.

    So if u look in the sublog under Places you see no listings… this is because it is reading wp_331_posts and wp_331_postmeta and not wp_posts and wp_postmeta

    in reply to: Multisite – use one table? #21928

    Greg McEwan Marriott
    Buyer
    Post count: 36

    If I am correct, only wp_posts and post meta would be not compat at moment? rest of tables are global

    
    
    add_filter('bp_core_get_table_prefix', 'sb_filter_bp_table_prefix', 2001);
    function sb_filter_bp_table_prefix($prefix ){
        global $wpdb;
        return $wpdb->prefix;
    }

    Here is an old function we used to allow us to insert a post into two blogs at the same time

    
    
    			// post to smeak.tv
    			
    			global $switched, $video_post_pe;
    			switch_to_blog(44);
    			$video_post_id = wp_insert_post($video_post);
    			update_post_meta($video_post_id, 'dp_video_url', $_POST['insert_video_link'], true);
    			$video_post_pe = get_permalink( $video_post_id );
    			restore_current_blog(); 
    in reply to: Multisite – use one table? #21925

    Greg McEwan Marriott
    Buyer
    Post count: 36
    in reply to: How do I the name of a city as a variable I can use or call? #18769

    Greg McEwan Marriott
    Buyer
    Post count: 36

    🙂 Worked like a DREAM (awesome weather widget) – THANK YOU !!!!!!!!!!!!!!!!!!!!!!!

    in reply to: What is the Merge City option for? #18568

    Greg McEwan Marriott
    Buyer
    Post count: 36

    Need another level As well (County) or is South Africa we have Districts

Viewing 15 posts - 1 through 15 (of 29 total)