Jump to content

adrianmak

Members
  • Posts

    533
  • Joined

  • Last visited

Everything posted by adrianmak

  1. is dev 2.6.10 ready for use on production ? the new granularity user permission is an essential feature on an incoming project.
  2. I see. To assign new permission to a role 1. assign "page edit" permission to that role. Save. Then, user-admin permission will be populated on the permission list. 2 assign "user-admin" permission. Save. 3. Eventually, the new permissions will be populated on the list
  3. From the blog post, As of ProcessWire 2.6.10, you can now handle this easily by doing the following: Create a new permission called user-admin-all (Setup > Permission > Add New). You only have to do this once. It is an indicator to ProcessWire that you wish to support granular control for user administration. Create a new permission with the name user-admin-members (Setup > Permissions > Add New). The format is user-admin-[role], where [role] is the name of any role in your system. Assign the user-admin-members permission to your members-manager role (Access > Roles > members-manager). Now users with the members-manager role can create, edit and delete users with the members role. They can also assign the members role to users with the guest role (only), or any other users that they have permission to edit (like if you are using more user-admin-[role] permissions for other roles).
  4. I'm testing out the new user-admin permissions feature of dev 2.6.10 I followed this blog post http://processwire.com/blog/posts/new-user-admin-permissions-automatic-version-change-detection-and-more-2.6.10/#new-managed-module-versions-by-the-core to create two permissions user-admin-all user-admin-members-manager But, I could not find the new permission in user roles setting page
  5. Some benchmarks showing that php7 is out performance 2-3 times than current 5.X version and catching the tail of HHVM
  6. After studying core files, I'm thinking of writing a module to override isValidSession and login hook in wire/core/Session.php
  7. Let say, keep login session for a day, a month or a year like I'm afraid the official back-end sign-on does't provide such facility. Or how could I modify to support it ?
  8. OK......Let see how these could be used on my case.
  9. a row of data set include several fields, raw data figures are computed with a formula with a date range of data set to generate pie chart, bar chart. How could I do it in pw ?
  10. My client's hosting is using litespeed web server
  11. I see. I knew how to do ajax in js/jquery. I supposed "Making an ajax call in pw" is without using js. PW will take care of it by some kind of indicator, similar as of Drupal 7 form api
  12. I could not understand how to make an ajax call to a page. From your article, wordpress required wp_ajax action for a ajax call. In PW, how to tell pw, the data being submitted is a ajax call ?
  13. How to make a ajax call in PW ? Let say A page has a link to another page. In traditional, the link will bring user to that page directly. If i want to make an ajax call to that page, the content of the targeted page will be shown on a div of the same page.
  14. From processwire weekly #58, an article from a developer point of view, being said that, why he chose processwire over wordpress. http://www.okeowoaderemi.com/articles/posts/wordpress-to-processwire-a-guide-for-developers/ When talking about ajax, he said, "PW it as easy as just pointing an Ajax Call to a page and that's that" if($config->ajax){ //Run Code exit(); }else{ Normal HTTP Request How can give me a explicit example of code, how to use $config->ajax for a ajax page call ?
  15. how did you implement the categories and tagging something like /?cat= /?tag= on the url ?
  16. Just a quick idea. configure drupal view of your content, which output format in csv, json something like that, where pw could be imported from them
  17. As tpr pointed out, an ending slash is required.
  18. order template <?php $id = $input->urlSegment1; $out = ""; $out .= "{$pages->get($id)->title}<br/>"; $out .= "{$pages->get($id)->body}<br/>"; $out .= "PRICE: {$pages->get($id)->discount_price}<br/>"; $out .= " <form action='{$config->urls->root}checkout' method='post'> <input type='text' name='product' value='{$pages->get($id)->title}'> <input type='text' name='price' value='{$pages->get($id)->discount_price}'> <input type='submit' value='Pay'> </form> "; $page->body = $out; include('./main.php'); ?> checkout template <?php $out = ''; $out .= $input->post->product; $out .= $input->post->price; $out .= "Submitted data"; $page->body .= $out; include('./main.php'); When order is submitted to checkout page, no post values are got. Anything wrong with my code ? ps I'm testing on 2.5.3
  19. I'm just evaluating this shopping module. Using the following code to show number of product in cart. However, it just simply show a plain numeric digit on the page. echo $modules->get('ShoppingCart')->getNumberOfItems(false); How to display more information, like in a list of product title, product quality
  20. How about to use PageTable fieldtype of each of product variations ?
  21. adrianmak

    Forum Software

    nodebb , a nodejs forum https://nodebb.org/
×
×
  • Create New...