Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter joshuairl

    (@joshuairl)

    Yeah so, it works on the /2014/xx/xx/post-name page.
    No error in console.

    But on all other renderings of it (on custom post types) it seems to throw this error.

    Error: Permission denied to access property ‘toString’

    Thread Starter joshuairl

    (@joshuairl)

    Maybe has something to do with this showing up in the firebug console…
    Error: Permission denied to access property ‘toString’

    Not sure…?

    Thread Starter joshuairl

    (@joshuairl)

    omg, sorry just noticed the giant Shortcode Menu button on left nav… sorry

    Thread Starter joshuairl

    (@joshuairl)

    With the “naming” of the loop logic…
    If I use “$post” instead of “$homesection” it gets lost and sometimes returns a special-guest variable and sometimes the home_section variable… it’s almost like a race condition or something…
    Thinking it might just be safer and fool proof to use some sort of scope but who knows…

    global $homesection; // required
      $homesectionArgs = array( 'post_type' => 'home_section', 'numberposts' => 10, 'orderby' => 'menu_order', 'order' => 'ASC' ); // exclude category 9
      $homesections = get_posts($homesectionArgs);
      foreach($homesections as $homesection) : setup_postdata($homesection);
    
      endforeach;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thread Starter joshuairl

    (@joshuairl)

    It seems if I use the “get_posts()” with a foreach instead of the “have_posts()” loops I can get around it for now…

    No rush

    Thread Starter joshuairl

    (@joshuairl)

    Maybe it would be useful to somehow be able to provide a name to the loop.
    Similar to CFML (ColdFusion)…
    <cfquery name=”my-custom-loop”>
    SELECT * FROM BLAH;
    </cfquery>
    <cfloop query=”my-custom-loop”>
    #my-custom-loop.id#
    #my-custom-loop.image#
    </cfloop>

    Your plugin reminds me a lot of CFML and that’s why I’m using it as a reference.

    Yours could just do something like:

    [loop name=”my-lil-loop” post-type=”product”]

    [/loop]

    Which could define some sort of custom “scope” for the query / for loop to live in and respect?

    I guess my biggest problem is I don’t understand the logic behind the wordpress “Loop” well enough to understand the core of the issue with nesting loops.

    If I can help in any way, let me know! Thanks!

    Thread Starter joshuairl

    (@joshuairl)

    Thank you thank you for the prompt response.
    I’ve also double checked all my variables and ensured they were scoped / named properly as to avoid possible conflicts or overrides.

    It’s definitely funky.

    I’ve added wp_reset_postdata(); to my loops too and it doesn’t help… can’t seem to figure it out on my own ??

    Thread Starter joshuairl

    (@joshuairl)

    Okay, this screenshot might help outline my issue…

    https://www.dropbox.com/s/ifqownefubn9ieu/Screenshot%202014-06-19%2009.36.36.png

    It starts out as a main hardcoded loop in the template for post type of “home-sections” and then it hits my [loop] post and things go nuts.

    [loop type=”product”]
    [content field=”image”]
    [/loop]

    It’s supposed to pull “product” posts only. The [content field=”image”] is in fact pulling the the product images but it somehow changes the_title() to my “special-guests” post type which is COMPLETELY UNRELATED to any of the post types I’m even referencing… :-/

    I’m very confused.

    Thread Starter joshuairl

    (@joshuairl)

    Nevermind, purchased your custom fields add-on! Thanks!

    Thread Starter joshuairl

    (@joshuairl)

    Nevermind, I just decided to update $_POST[‘wpcf’][‘my_field’] in my hook and it saves it fine.

    Thanks!

    +1 +1 +1

    Really want to update the UI to the new one… it’s a bit combersome with as many images I have in media.

    Thread Starter joshuairl

    (@joshuairl)

    Thread Starter joshuairl

    (@joshuairl)

    Well, I did it…
    Not sure how pretty it is though…

    Here are the two repos:
    https://github.com/joshuairl/keyring-importer-youtube
    https://github.com/joshuairl/keyring-service-youtube

    Btw, I seriously think you should consider breaking everything out into it’s own repos to make community support stronger and more modular.

    Also, I’m very familiar with Git/GitHub and could help get your SVN repos ported over to GitHub.

    It would be great to have each “service” of keyring and each “importer” of social importer to be broken into it’s own repository for maintenance.

    You could have a “keyring” organization on GitHub and have all of the repos for each module under that org.

    It would draw a lot more attention to your wordpress plugins in the wordpress directory as well because they would be named differently so you wouldn’t just have one plugin called social importer.

    Someone searching for “import facebook” would be more likely to find a plugin called “keyring-facebook-importer” and after installing that, they would obviously be told to install the keyring-social-importer plugin obviously.

    I had a hard time finding Keyring and/or Keyring Social Importer. It took a lot of digging to find a good importer and yours is by far the most stable and robust.

    Just my two cents!

    Thread Starter joshuairl

    (@joshuairl)

    After each label there is a closing </p> for some reason..?

    FYI, here is the output in view source:

    <div class="form-group">
      <label class="col-md-4 control-label" for="selectbasic">Reason for Inquiry</label></p>
    <div class="col-md-6">
        <span class="wpcf7-form-control-wrap contact_reason"><select name="contact_reason" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required form-control" id="contact_reason" aria-required="true" aria-invalid="false"></select></span>
      </div>
    </div>
    <div class="form-group">
      <label class="col-md-4 control-label" for="textinput">Your Name</label>  </p>
    <div class="col-md-6"> <span class="wpcf7-form-control-wrap contact_name"><input type="text" name="contact_name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required form-control" aria-required="true" aria-invalid="false" /></span></div>
    </div>
    <div class="form-group">
      <label class="col-md-4 control-label" for="textinput">Email Address</label>  </p>
    <div class="col-md-6"><span class="wpcf7-form-control-wrap contact_email"><input type="email" name="contact_email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email form-control" id="contact_email" aria-required="true" aria-invalid="false" /></span></div>
    </div>
    <div class="form-group">
      <label class="col-md-4 control-label" for="textinput">Phone</label>  </p>
    <div class="col-md-6">
    <span class="wpcf7-form-control-wrap contact_phone"><input type="tel" name="contact_phone" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-tel wpcf7-validates-as-tel form-control" id="contact_phone" aria-invalid="false" /></span>
      </div>
    </div>
    <div class="form-group">
      <label class="col-md-4 control-label" for="Details">Details</label></p>
    <div class="col-md-4">
        <span class="wpcf7-form-control-wrap contact_details"><textarea name="contact_details" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required form-control" id="contact_details" aria-required="true" aria-invalid="false"></textarea></span>
      </div>
    </div>
    <div class="form-group">
      <label class="col-md-4 control-label" for="button1id"></label></p>
    <div class="col-md-8">
     <input type="submit" value="Send Inquiry" class="wpcf7-form-control wpcf7-submit btn btn-primary" id="contact_btn" />
      </div>
    </div>
    </fieldset>

    Real bots use captcha automation services like death2captcha.com. It’s very simple now adays to write an automation procedure to get around captcha images using these types of services.

    In case you don’t know, they pay people to work at home per captcha answered and it works over an API. The person that is getting paid to answer them sits and waits for captcha images to be presented and all they have to do is type them.

    It’s pretty slick and will bust your captcha’s everytime.

    It would be more worth your while to implement the Akismet spam block techniques rather than a mathematical one or an image someone has to just look at…

Viewing 15 replies - 1 through 15 (of 22 total)