charlievaughan

Forum Replies Created

Viewing 14 posts - 31 through 44 (of 44 total)
  • Author
    Posts
  • in reply to: Add listing 403 error #59533

    charlievaughan
    Lifetime Member
    Post count: 70

    I’ve tracked down what is causing the problem by uninstalling all the non GeoDirectory plugins at a blog and network level.

    I’m using a multisite install (version 4.3.1–en_GB).

    It looks like the plugin WordPress MU Domain Mapping (version 0.5.5.1) that I use to map my domains to individual blogs is conflicting with GeoDirectory. When I turn this off on a network level after clicking on a link to the add listing page (when not logged in) I get redirected to the login / register forms correctly.

    This is a problem. I might have to find an alternative plugin to map my domains.

    in reply to: Add listing 403 error #59511

    charlievaughan
    Lifetime Member
    Post count: 70

    Looking at this further is seems to be a redirect that isn’t working.

    If I visit http://sitename.com/add-listing/

    I get redirected to http://sitename.com/gd-login/?redirect_add_listing=http%3A%2F%2Fsitename.com%2Fadd-listing%2F

    It’s this query string that returns the 403. I’ve tried removing the “/” preceding the query string but that also returns a 403.

    But if I go to http://sitename.com/gd-login/ directly I get the login and registration forms and I can login.

    Once logged in if I visit http://sitename.com/add-listing/ again I get successfully redirected to the add listing form. I get redirected to http://sitename.com/add-listing/?listing_type=gd_place and can register a listing with no problems.

    Also I’m getting this error in my log files when I try to navigate to the add listing page and getting the 403:

    [09-Nov-2015 22:32:11 UTC] PHP Warning: Missing argument 4 for geodir_cpt_post_type_link() in /home3/charliev/public_html/expertdesign.eu/wp-content/plugins/geodir_custom_posts/geodir_cp_functions.php on line 1141

    I’ll log a ticket with my host as I’ve followed their tutorial on the issue but not found a solution: http://support.hostgator.com/articles/403-forbidden-or-no-permission-to-access

    in reply to: Adding contextual copy to search results #40002

    charlievaughan
    Lifetime Member
    Post count: 70

    I think my solution to add descriptions to tag pages looks like it will work.

    Here’s a plugin that looks like it will allow be to content manage the descritpions: Rich Text Tags plugin https://wordpress.org/plugins/rich-text-tags/

    And here’s a tutorial that explains what I intend to do in greater detail:

    HOW TO: Hack Tag Descriptions into WordPress Themes and Boost Your SEO: http://www.methodshop.com/gadgets/tutorials/wp-tagdescriptions/

    Thanks for your help.

    in reply to: Adding contextual copy to search results #39871

    charlievaughan
    Lifetime Member
    Post count: 70

    @Simone, I’m not really sure of the URL structure in which I would expect to see the meta data as specified in the multi-location settings pages. I’m assuming it is something like:

    http://mydomain.com/post_type/london

    But I can’t see any metadata matching what I set.

    I only really want to understand how this works to see if I can repurpose the data in my custom PHP templates.

    @paolo

    Its my understanding of SEO that keyword and description meta has no SEO benefit due to abusive use by webmasters over the years.

    GeoDirectory allows users to search for listings near a location.

    So if a user searches for “Bars in Camden” and GeoDirectory returns search results for all the bars in Camden, I’d like to embed a 300 to 500 word block of visible copy in the page to enhance its SEO value and gain traffic from long-tail search results. But I don’t think search results pages show up in XML sitemaps and aren’t crawled, so this might not be beneficial.

    I’m now thinking there is another solution to this. GeoDirectory has a different set of tags for each post type, eg ‘Bars tags’. I’ve already tagged my listings with location eg ‘Camden’. WordPress allows me to set description meta for individual tags. So I might be able to use tags and their associated description metadata in the way I wish.

    I’ll need to research the WordPress API to see how I can access the tag description data I will save for individual tags and use that to populate my page copy.

    in reply to: Adding contextual copy to search results #39766

    charlievaughan
    Lifetime Member
    Post count: 70

    Ok I’ve been playing with this for a while.

    So it looks like what I would like to do is show a block of copy when people search for listings near a location or tags that are locations.

    So I went to GeoDirectory > Multilocations > Location Settings > Wish to enable neighbourhoods? > checked to enable Neighbourhood options.

    So now when I go to GeoDirectory > Multilocations > Manage Location, there are 33 City Neighbourhood(s) in my database. I can edit these neighbourhoods individually and fill the ‘City Meta’ and ‘City Description’ fields.

    I can see how these options might be able to store the copy I need for SEO, assuming the description field allows for unlimited characters. But I’ll need to figure out what the variable is that inserts this field into the PHP templates so I can reuse the value for visible body copy.

    Although I think ideally I’d prefer to have something more granular and set copy based on location and custom post type eg “Hotels in Camden” and “Pubs in Islington”.

    Firstly when I save a new meta and description value on this form, my changes aren’t being saved and have reverted to the values for the default location eg: “london meta”, “london description”. So I’m not able to set these individually.

    Secondly I can’t see where these two fields are being used in my site. The only description meta in the source is blank when I search for listings in a location:

    <meta property="og:description" content="">

    If I search for listings in ‘Camden’ or ‘London’ I’m assuming the SEO settings for Meta and Description would be used for the HTML keyword and description meta data? But when I do this, I can’t see the meta and description I saved for the default location or the neighbourhood.

    in reply to: Schedule uploaded post publication #36717

    charlievaughan
    Lifetime Member
    Post count: 70

    Yeah sure no problem.

    I can just make the change before I upload a batch of listings.

    I just couldn’t wait for the update!

    Also, after testing, the listing images didn’t show up on the draft when I previewed the listing. But they showed up fine once published. Someone will probably raise this as a bug when the feature goes live.

    in reply to: Schedule uploaded post publication #36704

    charlievaughan
    Lifetime Member
    Post count: 70

    I’m using the latest version of Geodirectory v1.4.2. I think I found the code you were referring to between lines 1773 to 1786:

    
    
    $my_post['post_title'] = $post_title;
    $my_post['post_content'] = $post_desc;
    $my_post['post_type'] = addslashes($buffer[5]);
    $my_post['post_author'] = $current_post_author;
    $my_post['post_status'] = 'draft';
    $my_post['post_category'] = $catids_arr;
    $my_post['post_tags'] = $tag_arr;
    
    $gd_post_info['post_tags'] = $tag_arr;
    $gd_post_info['post_title'] = $post_title;
    $gd_post_info['post_status'] = 'draft';
    $gd_post_info['submit_time'] = time();
    $gd_post_info['submit_ip'] = $_SERVER['REMOTE_ADDR'];

    As you can see above I changed ‘publish’ to ‘draft’. This didn’t work even after reinstalling all my Geodirectory plugins.

    I then did a search of the plugin codebase and found the same block of code in admin_hooks_actions.php lines 1486 to 1498.

    After also changing both of those references to ‘draft’ this has worked, with the uploaded listings being marked as ‘draft’ and without me having to reinstall anything!

    By the way, the reason I want to do this is so I can schedule my listings to go live over an extended period of time using Drafts Scheduler plugin (https://wordpress.org/plugins/drafts-scheduler/). This is so Google hopefully judges my site as being regularly updated for improved SEO.

    in reply to: Schedule uploaded post publication #36678

    charlievaughan
    Lifetime Member
    Post count: 70

    Thanks for the info Paolo.

    Could you tell me the name of that function? Maybe I could temporarily change the variable to set the uploads to draft?

    in reply to: Schedule uploaded post publication #36593

    charlievaughan
    Lifetime Member
    Post count: 70

    This didn’t work for me, it went straight to published. Also I was previously using a column called “post_status” for one of my own custom fields (now changed).

    Is there any documentation for all of the columns Geodirectory may potentially be looking for (other than the ones in the dummy CSV file), just in case I might be using clashing column names for something else?

    Also is it advised to follow the column order in the dummy CSV exactly, or does it not matter?

    Should my own custom columns all go at the end?

    in reply to: Map not populated on CSV import #16128

    charlievaughan
    Lifetime Member
    Post count: 70

    Both of those fields are on the CSV I attached above.

    I think what might of happened is I deleted the category I specified (while trying to test something else) and only remembered to re-create it after I had done the import.

    I’ve re-imported the CSV above and all the maps are working this time.

    Thanks, thats fixed!

    in reply to: Map not populated on CSV import #16125

    charlievaughan
    Lifetime Member
    Post count: 70
    This reply has been marked as private.
    in reply to: CSV Import problems #16081

    charlievaughan
    Lifetime Member
    Post count: 70

    Glad to help 😀

    in reply to: CSV Import problems #16079

    charlievaughan
    Lifetime Member
    Post count: 70

    After posting that comment and checking the attachment I can see the my CSV is mangled.

    I’ve created a new copy using Microsoft Excel 2008 for Mac and its working, with the geocode data and phone number working correctly.

    It looks like my CSV from the latest OpenOffice might have been the problem (although I validated it online).

    Maybe if the CSV upload documentation detailed what settings to use when opening the file in OpenOffice that might help?

    in reply to: CSV Import problems #16077

    charlievaughan
    Lifetime Member
    Post count: 70

    I’m also having problems with upload. I’ve downloaded the sample CSV, changed the address to match my default location (now passes address validation) also changed category to “Hotel” (already added the dummy data).

    But despite only making a few changes to the example CSV I also get “3 out of 3 record(s) could not be inserted due to invalid/blank post type. Only use geodirectory’s post type.”

    I’ve only got the default “gd_place” post type, its the same in the CSV and no additional white space.

    I’m using the latest version of WordPress and your plugins.

    What else can I try?

Viewing 14 posts - 31 through 44 (of 44 total)