Jump to content

Pixrael

Members
  • Content Count

    197
  • Joined

  • Last visited

  • Days Won

    1

Pixrael last won the day on October 31 2017

Pixrael had the most liked content!

Community Reputation

213 Excellent

About Pixrael

  • Rank
    Sr. Member

Profile Information

  • Gender
    Male
  • Location
    Florida, USA

Recent Profile Visitors

1,385 profile views
  1. WOW! .. THANKS @Robin S ..You always helping! I'll tray this 🙂
  2. Does anyone know how to save an Array or a WireArray back to the YAML field in the page? In the source code I saw some functions for "Dump", but I don't know which one would be the right one, or how to use it.
  3. @ryan I know you are now traveling, but when you had some time I would like to know your opinion about this, maybe you have been in this situation before. If I implement the option 3, a simple calculation (as example) 5 tools with 3 different types of data to be stored by 3000 users would yield a total of approximately 45,000 pages only to store configurations and data lists, apart from the user's profile data. . it would be correct?
  4. Check this: https://mediamanager.kongondo.com/
  5. @OllieMackJames Just yesterday I was reviewing the amember.com website, I see it's a hosting solution to install on my server. Anyway this would be for the administration of accesses, permissions and payments (which is very interesting and I will try it for sure) but my problem now is how to save all the information of the tools (which is a lot) for each user to use internally in PW for calculations, analysis, etc. Thank you very much for your answer
  6. Hello, I'm building a website with a membership system that allows users to access different tools, each one has different configuration and data according to the user needs. I try to find the best approach to store that customized information in the PW tree, but I don't find any similar situation in the forum. Ex. the context for each user could be like: - Tool A - Settings - Recent results - Saved results - Tool B - Settings - Saved results - Todo list - Tool C - Settings - Working list - Related "Tool A" saved results - Globals - Entries list (can be access from any tool) As you can see is a complex interrelated system 😞 My ideas to record all this are: - Option 1) Add a field to the user template, ex. Repeater matrix to record a JSON or YAML for each tool/task that the user access. - Option 2) Add a field to the tool template (or to a tool child template) ex. Profield Table (in the tool context the fields are the same) and each row is for one user data. - Option 3) Create a page tree apart, like "settings", the child template have a field JSON or YAML and 2 Page Reference fields, for tool-customer match. - Option 3b) Same but different child templates, one for each data type to store, ex. Profield Table for todo/task list, JSON or YAML for settings, etc. What do you think, some idea? Did your work with something like that before? Please PD: Due to the nature of the membership systems (users can in-out constantly) I suppose that is better a solution that can remove the user data from the system easily.
  7. A solution that I also thought was to send the generated image using base64 data in the response, but even though it served to display the result to the user, I need a fixed URL since the purpose of the tool is that once the image is the desired one, the user can import it into a third application using that URL, each image will be valid only for 24hr, after that it will be deleted from the server using cron jobs
  8. @MoritzLost Thanks for your comments. The first thing I tried was this ?v=XXXX technique, but do not works 100%, at least in chrome (several days testing that) not always reload the file. I don't know why, maybe chrome use more aggressive approach to save bandwidth or for speed.. "why force it to load it again?" .. because this is a tool that generate a picture to download, the customer can modify the tool paramaters and regenerate the picture again infinitely.. I don't want to create new pictures each time the user click the generate button (to save disk space at server), my approach is to create only one picture per user session, and use the token value as file name, so the tool overwrite it each time the picture is regenerate. I use ajax for that and with the response I change the src attribute in an image element to display the result.. this is the reason why I need that image must be forced to download each time when I change the src attribute.. Oh, this description looks a little complicated.. I explain correctly?
  9. That mod_rewrite route don't works.. but (for the records) the following trick works smoothly 🙂 <FilesMatch "^([a-zA-Z0-9]+)-([0-9]+)\.png$"> FileEtag None <ifModule mod_headers.c> Header Unset ETag Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" </ifModule> </FilesMatch>
  10. In order to deceive the browser images cache in a javascript image src update, I use this htaccess trick to force the browser to reload "new" image from the server, the number es a time() var. I want that Apache rewrite this request: /site/downloads/9VefFf6vstUR0q1ywzPgjXw4PfAgYqGp-1562618833.png to this: /site/downloads/9VefFf6vstUR0q1ywzPgjXw4PfAgYqGp.png and this is my declaration in htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^site/downloads/([a-zA-Z0-9]+)-([0-9]+)$ site/downloads/$1.png [R=302,NC,L] </IfModule> But I don't know if it well defined, or if the PW htaccess is in conflict with this configuration.. PW show me the 404 page and the server don't send the picture url back. Any idea?
  11. Oh! So easy? !!! .. I'll try it tomorrow at the office. THANK YOU!
×
×
  • Create New...