Forum Replies Created

Viewing 15 replies - 196 through 210 (of 570 total)
  • Comprehensive Google Map Plugin seems to conflict with various plugins and themes including my own CSV 2 POST.

    I just spent a couple of hours changing how I load scripts in my plugin so that it is a bit closer to as recommended but there is no change at all. My own approach was sound.

    It is time for me to get to the bottom of this. If I find it is the Google Map plugin at fault for sure I need to make it clear to my user by detecting this plugin in their blog and displaying a warning.

    Get me at http://www.webtechglobal.co.uk if you want to find out the conclusion.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    Oh yes sorry about that.

    Not much to show…

    $pageposts = $wpdb->get_results($q, OBJECT);

    $pageposts gets dumped by var_dump() and global $wpdb is called before this. I have error display on and no MySQL errors. I have worked on this plugin for almost a year so I’m confident in how it stores the meta data plus its easy to check in database as each posts meta is grouped.

    The two meta values I’m searching in my query are close together and I can confirm there are 9 posts that share the same meta keys and I should get 9 records returned.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    Double alias is something I learned from more than one site for the first time in order to perform this.

    I need a post record that has two specific meta keys, one of which is a specific value and the other is a date.

    Multiple sites show this is possible but I’m in agreement with you when working in PHP or at least in WordPress this query does not work but it does work in the MySQL console which must be why sites state this approach as possible.

    Thank you for all your help.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    Yes sure. I did try it already, on both on each of them and trying the query with variable and with date string.

    Tried loads of variations. What you have told me allows it to work in MySQL Workbench only, which is so strange especially how you have it working!

    They query is going through get_results() and the returned value is being dumped, which has always been NULL with the queries that work in Workbench.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    And with STR_TO_DATE on the meta value, again does not return anything in PHP using WordPress get_results() but returns a record in MySQL Workbench…

    SELECT wposts.* FROM wp_posts wposts, wp_postmeta metaprojectcode, wp_postmeta metaupdated
    WHERE wposts.ID = metaprojectcode.post_id
    AND wposts.ID = metaupdated.post_id
    AND (metaprojectcode.meta_key = 'csv2post_project_code' AND metaprojectcode.meta_value = 'proh4hyq2')
    AND (metaupdated.meta_key = 'csv2post_last_update')
    AND (STR_TO_DATE(metaupdated.meta_value, GET_FORMAT(DATETIME, 'ISO')) < STR_TO_DATE('2012-11-05 12:43:39', GET_FORMAT(DATETIME, 'ISO')))
    LIMIT 1

    I can tell I’m going to need to go with the longer approach. Query the meta first and use LIMIT 1 then use the post_id from meta table to query the post. That is not a whole lot more processing.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    Sorry no the actual query and I just tried it again is …

    SELECT wposts.* FROM wp_posts wposts, wp_postmeta metaprojectcode, wp_postmeta metaupdated
    WHERE wposts.ID = metaprojectcode.post_id
    AND wposts.ID = metaupdated.post_id
    AND (metaprojectcode.meta_key = 'csv2post_project_code' AND metaprojectcode.meta_value = 'proh4hyq2')
    AND (metaupdated.meta_key = 'csv2post_last_update')
    AND (metaupdated.meta_value < STR_TO_DATE('2012-11-05 12:43:39', GET_FORMAT(DATETIME, 'ISO')))
    LIMIT 1

    This returns a record in MySQL Workbench but not in PHP

    Thread Starter WebTechGlobal

    (@webtechglobal)

    This query works in MySQL Workbench but it does not work in PHP. This is the query after using var_dump and it return the exact number of records it should.

    This is a first for me. A query that works outside of PHP.

    SELECT wposts.* FROM wp_posts wposts, wp_postmeta metaprojectcode, wp_postmeta metaupdated
    WHERE wposts.ID = metaprojectcode.post_id
    AND wposts.ID = metaupdated.post_id
    AND (metaprojectcode.meta_key = 'csv2post_project_code' AND metaprojectcode.meta_value = 'proh4hyq2')
    AND (metaupdated.meta_key = 'csv2post_last_update')
    AND (metaupdated.meta_key < STR_TO_DATE('2012-11-05 12:43:39', GET_FORMAT(DATETIME, 'ISO')))'
    Thread Starter WebTechGlobal

    (@webtechglobal)

    I tried a few approaches because I’ve not worked with functions like this in MySQL before but I think this is the proper syntax and it still does not return records.

    SELECT wposts.* FROM wp_posts wposts, wp_postmeta metaprojectcode, wp_postmeta metaupdated WHERE wposts.ID = metaprojectcode.post_id AND wposts.ID = metaupdated.post_id AND (metaprojectcode.meta_key = 'csv2post_project_code' AND metaprojectcode.meta_value = 'proh4hyq2') AND (metaprojectcode.meta_key = 'csv2post_last_update' AND STR_TO_DATE(metaupdated.meta_key, GET_FORMAT(DATETIME, 'ISO')) < STR_TO_DATE('2012-11-05 12:35:04', GET_FORMAT(DATETIME, 'ISO'))) LIMIT 1'

    It has been a while since I spent so many hours on one problem, just like the Uni days lol

    Plugin Author WebTechGlobal

    (@webtechglobal)

    Hello again Steve

    It is not possible to import multiple images yet but featured image ability exists and a single URL can be placed anywhere in the template designs with any HTML/CSS around it.

    I noted that we need to upgrade image ability so we can import multiple image fields. This is to be done with some urgency over other tasks in the todo list because I think it is a common requirement.

    What is it you would like the plugin to do with the multiple image field?

    I’ll add the ability to just list the image, maybe lay them out using divs. A lot of options could be provided on this especially in terms of the CSS to style image borders etc.

    I’ve also noted for multiple image values to be stored as albums in Next Gen Gallery plugin but with the added ability to create albums and galleries by grouping images based on keywords in a selected column. Usually that would be one of the category columns.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    Was nice to wake up to such a good answer this morning thanks.

    It make think about trying greater than on the same query and that returned a record. However it should not have so it must be a format issue.

    The meta value stored is 2012-11-04 00:45:14.

    Even in MySQL Workbench it is behaving as if 2012-11-04 00:45:14 is greater than 2012-11-04 23:41:31.

    Oh and there is a correct to my original query however before making this post it was correct. I had started over again in trying to figure this issue out and typed it up wrong.

    SELECT wposts.* FROM wp_posts wposts, wp_postmeta metaprojectcode, wp_postmeta metaupdated
        WHERE wposts.ID = metaprojectcode.post_id
        AND wposts.ID = metaupdated.post_id
        AND (metaprojectcode.meta_key = 'csv2post_project_code' AND metaprojectcode.meta_value = 'proh4hyq2')
        AND (metaupdated.meta_key = 'csv2post_last_update' AND metaupdated.meta_key > '2012-11-04 23:41:31')
        LIMIT 1

    I will try your second method.

    Thread Starter WebTechGlobal

    (@webtechglobal)

    I just realized there may be a whole another approach I could be using. I forget about “post_modified” columns in the posts table. However that will not be suitable if post_modified is not updated when meta, categories etc are edited. I need to go check that.

    My date value indicates when CSV 2 POST makes a change to a post/page,a post as the users sees it.

    That is essentially what my csv2post_last_update value is, which is still relevant because it can be used to determine when CSV 2 POST changed the post record.

    Plugin Author WebTechGlobal

    (@webtechglobal)

    Kai you got me thinking regarding what you said about no experience on Wiki software. I realized that using Wiki software would be a bad thing. So thanks loads for that.

    I checked that link though and I will be trying that software I think it looks good. The wiki software does touch on something we have planned for WordPress though. A project management plugin, mainly for our own use but we will release it to the public no reason why not. We were going to make it admin-side only but I see an opportunity to extend that project by adding a wiki approach.

    So we decided to add wiki style features to the existing website and after some research we have found that some of our own ideas are unique.

    Won’t happen for months yet though.

    Plugin Author WebTechGlobal

    (@webtechglobal)

    Hi

    I deleted posts and nothing appeared on the Your Creation page on any of the screens there. I also run post creation to see if that displayed PHP notices but nothing.

    I would need more information. When you say error messages do you mean PHP notices or notice boxes styled by the plugin?

    Also did you perform an action or just visit the page.

    Plugin Author WebTechGlobal

    (@webtechglobal)

    I done some work on the Update Specific Post procedure. Great improvement and a fix that should only update a post using the record used to make it.

    If that record for any reason, no longer exists. A warning will be displayed. Zara has been running some tests and found using this panel always done what it should now.

    Kai make sure you get a copy of the next premium edition version from me. Thanks a lot for bringing this one to my attention.

    Plugin Author WebTechGlobal

    (@webtechglobal)

    Sure it is.

    An approach I used in Easy CSV Importer was to offer a long list of fields. That is not a great approach either because the forms just get very big and very wide.

    We intend to add a lot of Ajax to CSV 2 POST instead. So the forms we see now are keeping that in mind. It will be good but we are holding back on getting this done for a while yet. We have at least 2 more months of pure PHP I think.

    Thanks for mentioning it. I think you are the first to discuss this and it make us aware what users demand. We actually notch up an item on our todo list everytime feedback is giving. That is how we know what is asked for the most.

Viewing 15 replies - 196 through 210 (of 570 total)