Jump to content

LeiHa

Members
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by LeiHa

  1. Thanks, adrian. I've looked through those two posts. I think they are great for the visit counter. However, in my case, I need to find different solution. Those two posts are increase view count no matter what situation. This means it increase every time a page loads. My goal is to stop increasing view count once an user visit and load a page after second time. But, it will increase once page has been modified some how. Thank you.
  2. Hi guys. This time, I'm trying to make a view count in my custom forum page. Goal for my custom view counter is: 1. View count value increase once a registered user load this page at the first time. 2. View count value doesn't change if a same registered user loads a same page. 3. View count value dose change if a same page is modified even though a user visited before. What I've got from search through internet, there are so many way of creating it. Cookie, I think, doesn't work I guess because it either expires or deleted by user or browser. Session might not work. I'm just guessing. So, I'm trying to make some kind of a holder for the view count value. I'm trying to create a field using API. Then that field is attached either page or user template. If it is in a page template, this field holds user IDs who loads this page. This field should hold many other users IDs(thinking of an array datatype) Once a same user loads a page and that user id is in the field of a page, view count doesn't change. If a page has been modified, id of an user id is removed. So that whenever a user loads modified page, it can change view count value. This is my plan. Now that I've found some problem or I'm still not know how to solve it, yet. I can't find any field that can hold array datatype. If any of you know how to do this or have different solution, I would really appreciate it. Thank you.
  3. Okay. I guess I have to find out different way of doing it. Thank you, all of you.
  4. Hi guys. I've been having a good time learning php code and Processwire API. Now that I got a problem which I have no idea to solve. Using everything written in English works fine. However I can't figure out to put non-alphabetic page name. On the description, page name has to be like this. Any combination of letters (a-z), numbers (0-9), dashes or underscores (no spaces). This means I can't put any letter other than those above. I'm using Asian letter. Asian letter has 2 byte in stead of 1 byte. Maybe that's the problem or not. If anyone of you can answer, that would be sweet. Thank you always. LeiHa
  5. Thanks, Soma and ryan!!!!! These are big help to me. Sorry for not enough detailed questions. (I'm a second English speaker.) And I'm a designer, so there should be a lot of code unfriendly words around. And just started php code. (oh well, took the long way to achieve a goal) It's great to hear that ver2.3 is coming with html5 input field patterns validation. About the unique data type, I'll try what you guys say. Sorry about the related fields. It could be combing one field, calling related field as needed, putting into a field as a group, and so on. But Soma and ryan gave me enough solutions. Thank you so much. About the automatically filling field type questions, it came out of my mind because of my lack of coding experience. It will be great experience to figure out all of these, fun possibility just like ryan said. Thanks again guys. You guys are fantastic.
  6. I've been trying to achieve user profile set up just like other CMS doing. For example, Drupal has various fields available and add lots of feature on it. A field has validation set up like only allowed some other formatting and make it as unique so that no duplicate values are allowed. Some other field are related to each other. and so on. Now, are these field settings achievable in PW? 1. More complex validation can be done without fixing PHP code? (something like only alphabetical text allowed before the dot and only numbers are allowed after the dot) 2. Make the field set as unique so that no duplication values are not allowed? 3. two or more fields are related to each other and make them as one field? 4. A field can be filled automatically such as 'last logged in time', 'user index number', 'posting numbers', and so on. Sorry but I got a lot of questions because I'm so excited about new CMS/CMF, ProcessWire concept and design.
  7. Thanks Wanze. I didn't noticed I can actually see system template and fields.
  8. First of all, thank you all who made great CMS/CMF like this. I've been trying to remake my community site and searched new CMS tools. Now that I've found ProcessWire. Even though I'm not quite good at PHP coding as a Designer, I'd like to learn about using ProcessWire. Great concept, fascinating design, and fast. So, here is my question. I've been looked through some of tutorials and followed some of them. By following these, I can see how easy is making portfolio, blog site. so far. Now, I need to move onto the creating community site. How do I add some custom user fields? Not only showing these fields on the front-end site, but also showing the back-end admin pages. I can't edit the admin template pages in order to add custom fields without coding PHP(I guess). If there is the way I don't know of, I'd love to hear them all. Basically I have a lot of questions coming.(making custom registration. maybe)
×
×
  • Create New...