rick

Members
  • Content count

    280
  • Joined

  • Last visited

  • Days Won

    5

rick last won the day on December 26 2015

rick had the most liked content!

Community Reputation

329 Excellent

About rick

  • Rank
    Sr. Member

Contact Methods

  • Website URL
    https://simulatedconcepts.com

Profile Information

  • Gender
    Male
  • Location
    Texas
  • Interests
    Web applications, scotch, hunting, fishing, scotch, graphic design. Did I mention scotch?

Recent Profile Visitors

2,245 profile views
  1. Where are you saving the customer_number field value? If it is not set then you will get a default return value 0 from your selector depending on the field setting you have in place.
  2. Thank you @ryan. I appreciate the clarification.
  3. I removed the login code on the site and the 500 error is no longer present. However, the only log entries are similar to that included below. I changed the mapping of facebook picture field to pw image field in module settings. The error and exceptions logs continue showing this error... Attempting to save the user's facebook picture to an image field fails with the above error. Creating and adding a text field to the user template, and mapping the facebook picture to that field does not display an error (log in is successful), but no data is stored in the text field. There is no picture_url field as shown in the blog post., only picture is available in settings. Attempts to dump the $facebook variable to a log file or echo'd results in a 500 error. The server is running other PW (3.0.62) sites (no facebook login module) without issues. I'll get it sorted eventually. I was just curious if anyone else had experienced this problem so I can tell where i am pulling another newbie stunt.
  4. Is anyone else getting this error? This error occurs in two scenarios. 1. Currently logged into facebook. Selecting to login using facebook from web site. Immediately displays this error. 2. Not logged into facebook. Selecting to login using facebook displays the facebook login form. This error is displayed after logging into facebook.
  5. I'll test some stuff when I get home. Hopefully someone will jump in with the solution in the meantime.
  6. In browser so couldn't test. Odd that the icon would be removed too. Try it with a   in place of the text.
  7. Since bootstrap uses the input group addon to position the icon within the container, your code is also setting the label to email, which also appears. Removing the label entry should remove the text and leave the icon. so 'item_label' => "<label class=input-group-addon>{out}</label>" should be 'item_label' => "<label class=input-group-addon></label>"
  8. Maybe this will help.
  9. It isn't part of a PageTable or AdminDataTable. The showInHeader() is part of the header of the current page. It will display like the Add New Template button on the Template page. // in process execute function: $table = $this->modules->get('MarkupAdminDataTable'); $table->setEncodeEntities(false); $table->setSortable(true); $table->setCaption('Table Caption'); $table->headerRow(['col1', 'col2', '...']); $button = $this->modules->get("InputfieldButton"); $button->showInHeader(); //$button->setSecondary(); $button->href = "{$this->page->url}something"; $button->icon = 'some_icon'; $button->value = "Add New Something"; // $table->row( array() ); // populate table rows loop return $table->render() . $button->render(); // Button is shown after table list (and in page header)
  10. Maybe I am misunderstanding. Does this not do what you need? $button = $this->modules->get("InputfieldButton"); $button->showInHeader(); //$button->setSecondary(); $button->href = "{$this->page->url}whatever"; // ??? execute whatever $button->icon = 'some_icon'; $button->value = "New Thing"; // output button render return $button->render();
  11. I'm not sure if you have seen the profile export module but it has been a great addition for me when setting up initial sites.
  12. Try this from ryan regarding tracking changes and notifications.
  13. Ah, ok. I knew strftime was locale aware, but not that it took into account the 12/24 hour format. Good to know.
  14. You can use the format "%l:%M %p" to display the time, without seconds. For example: $p = wire("pages")->get(some_id); echo strftime( "%l:%M %p",$p->getUnformatted($p->created)); returns a time like, 6:00 AM. I apologize if I am misunderstanding what you are wanting to achieve.
  15. I agree. I come from a very old school of IBM bookmaster coding so I still prefer the simple approach.