Jump to content


  • Posts

  • Joined

  • Last visited

Community Answers

  1. OllieMackJames's post in How to do this? Global vars? was marked as the answer   
    Thanks diogo! This is what I was looking for, very happy now!
  2. OllieMackJames's post in htaccess 301 Redirect does not work was marked as the answer   
    Thanks Mike - you ROCK!
    that works like a charm!
  3. OllieMackJames's post in How to do this? was marked as the answer   
    Found it already, posting for others and my own leaky memory...
    <div class='action'><a class='add-to-cart-button' href='" . $plan->page_field . "'><span>".__('ADD TO CART')."</span></a></div> needed to close stuff off with " and then start and end with dots, .__('ADD TO CART').
  4. OllieMackJames's post in Export Site Profile trouble was marked as the answer   
    OK, got it figured out, posting here in case others run into same trouble.
    I had the old export profile installed, then manually uploaded the newest version, but I only uploaded this file: ProcessExportProfile.module
    Turns out I should have uploaded the whole directory called: ProcessExportProfile
    In that directory there were the following things:
    - config.php
    - site-skel directroy with subdirecdtories assets/install/modules/templates with repsective files in there
    - ProcessExportProfile.module
    - README.md
    After upload of whole module with all directories and files all worked great again.
    Thanks for a great module btw!
  5. OllieMackJames's post in Github Branches Error was marked as the answer   
    Problem solved, posting solution in case others run into same stuff.
    The error had to do with php 5.6 ssl certificate verification.
    I got this error message(s):
    - fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    - fsockopen(): Failed to enable crypto
    - fsockopen(): unable to connect to ssl://xx.xx.xx:443 (Unknown error)

    I am on a freebsd 9.3 server and followed these steps to get things sorted out, posting here to help others who might run into same trouble.

    Logged in via ssh
    - # locate cert.pem
    - on my server it was found in /usr/local/etc/ssl/cert.pem
    - added following to php.ini: openssl.cafile=/usr/local/etc/ssl/cert.pem
    - restart httpd service

    Problem solved, so it had nothing to do with processwire, but my update to php 5.6, good luck!
  6. OllieMackJames's post in rootparent selector was marked as the answer   
    OK, got it, for whoever needs it, here it is:
    $results = $pages->find("parent=$page, template=blogpost-iframe, limit=$limit");
  7. OllieMackJames's post in pagination markup question was marked as the answer   
    OK BIG thanks to soma, who helped me get this, here is the final one:
    <?php $limit = 5; // the "limit"-setting used on this page $children = $page->children("limit=" . $limit); $totalpages = ceil($children->getTotal() / $limit); // PAGINATOR: set SEO tags for Google if ($input->pageNum) { if ($input->pageNum < $totalpages) { echo "<a rel='next' href='" . $page->url . $config->pageNumUrlPrefix . ($input->pageNum + 1) . "'>Next "; } else { echo "Thanks for browsing, you have reached the bottom of this page!"; } } ?> Once again, thanks to all for thinking along, now the next hurdle, to get infinitescroll to do the rest!
  • Create New...