Jump to content

arjen

Members
  • Posts

    1,222
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by arjen

  1. Hi Marc, I ran into this issue with non super users, user template and pagetables a while ago as well. Other can't seem to reproduce. We got a work-around, but that's more of a hack than a serious solution.
  2. Hey Alxndre', It's possible. Just add the options to the supported fieldtypes array.
  3. You could do something like Gayan did.
  4. Hi, no problem. Could you give an example of a quick mock-up how this should look? I'm not exactly sure what you mean.
  5. Have you tried using another embed option? Does the localization works in the backend (i.e. form builder preview)? Could you provide us with a little more info, because it's really hard debugging/helping without the right information. Perhaps you could make a screencap of what you are doing.
  6. Hi iNoize, Checkout this example used by Ryan to view tags in his blog profile: <?php /** * Generate a list of tags A-Z * * Used by the /site/templats/tags.php template file. * * VARIABLES: * ========== * $tags PageArray of tags * * Each of the tags has a numPosts property containing the number of posts used by the tag. * */ $lastLetter = ''; $out = ''; $letters = array(); foreach($tags as $tag) { $letter = strtoupper(substr($tag->title, 0, 1)); if($letter != $lastLetter) { if($lastLetter) $out .= "</ul>"; $out .= "<h3 id='letter_$letter'>$letter</h3>"; $out .= "<ul class='tags posts-group'>"; $letters[] = $letter; } $lastLetter = $letter; $numPosts = sprintf(_n('%d post', '%d posts', $tag->numPosts), $tag->numPosts); $out .= "<li><a href='{$tag->url}'>{$tag->title}</a> <span class='num-posts'>$numPosts</span></li>"; } $out .= "</ul>"; echo "<p class='jumplinks'>"; foreach($letters as $letter) { echo "<a href='./#letter_$letter'>$letter</a> "; } echo "</p>"; echo $out;
  7. Languages Try this in a template: <?php setlocale(LC_TIME, 'NL_nl'); echo strftime('%e %B %Y om %H:%M', time()); The function time() creates a timestamp. If you formatted the date you might want to get the date unformatted like: <?php $page->getUnformatted('FIELDNAMEHERE'); So: <?php setlocale(LC_TIME, 'NL_nl'); echo strftime('%e %B %Y om %H:%M', $page->getUnformatted('FIELDNAMEHERE')); Should produce the time in the Dutch language. Place it at the top of your file. You can also get the current locale with: <?php echo locale_get_default();
  8. Hey suntrop, have you checked out the offical docs on HTML Purifier? You can set stuff like: $purifier->set('Core.Encoding', 'ISO-8859-1'); Also check out Ryans docs on the ProcessWire module.
  9. Hi jon9china, Martijn wrote a great tutorial about a setup which works great. I use the same configuration with a few minor tweaks, but it has been running smooth for more than a year. When running a newer version of Mac OSX you might want to tweak some stuff since Apache has been updated to 2.4.
  10. You need to save the new Page first (so the directory will be created based on the Page ID) and attach the files after. See lines 32 and 39 in the example you posted.
  11. Hi Luis, Sorry to hear about your personal situation. Hopefully you got things worked out and are enjoying your life as Product Manager. All the best Luis. Personally I would really enjoy looking at your app again. Back in the day I've tested some stuff, but I lost of the beta files. I learned quite a few new tricks from your app. So if you want to put it somewhere on Github, I'm definitely interested. Just put up a small readme.md with info that you won't support it and release it under the WTFPL license .
  12. Hi matjazp, this is possible with the Pages Web Sevice. You can do anything with this web service that you would do with a $pages->find() call. This module essentially provides a safe front-end to the AJAX API provided in the ProcessPageSearch module, enabling that capability to be used outside of the admin.
  13. Thanks for posting back itsberni. I often redirect all traffic through .htaccess (to either www or non-www).
  14. Exactly my point LostKobrakai. I have experience with a hosting provider which had a similar setup to itsberni's hosting provider. You had to point the domain to folder in the public_html. Therefore I had to rewrite the root url to / instead of letting ProcessWire determine the root url.
  15. So you are pointing a domain to a subfolder through your hostingpanel? I would contact them since I suspect there might be something off they way the forward the traffic. Are other websites running well with this configuration?
  16. If you don't mind getting your hands dirty -> PicoFeed is all you need. It's pretty easy to get and parse multiple RSS feeds. You can then get the stuff you want from the individual feeds and show them as one gallery. Checkout their GitHub account for documentation and examples.
  17. I've experienced similar stuff on shared hosting environments where sometimes the path isn't what you except if you run ProcessWire in a folder. The solution I use is to rewrite the root url (see original post here with more details).
  18. Good to hear you are not giving up! One thing to note: we migrated our sites with the workaround. After our discovery we created the new image fields. So a one-on-one migration might not work out of the box. There are a lot of variables at stake so it's really hard to debug. It could be serverside, MySQL versions, something corrupt in the database...
  19. You're welcome. I feel ya, I really do. That's the thing with this open source stuff we all like. I've have some outstanding issues (1, 2) as well. But we've created workarounds. When a solution pops up we fix it for good. Using open source software is an risk to be assessed, but than again I have never ever used software which didn't have it's bugs/complications. Even commercial software has its quirks or bugs which might not be a top priority to the company which owns the software. addition #1: I have to state here that I've never ever had any business critical trouble with ProcessWire that didn't was solvable in one way or another. I've build shops, imported or exported all kinds of stuff, connected ProcessWire through all kinds of API's, made websites which generated massive income either direct of through lead generating. They are all up and running and performing really good. That being not a real web developer says a lot about the system. Therefore I accept a few quirks here and there. In the end they are likely to be solved or we outgrown into another solution based on ProcessWire.
  20. Regardless of your setup I would use a managed layer. Whether it's ServerPilot or some other tool. I don't really like spending to much time doing this sysadmin work. They also got a free plan which only allows one user. Keep in mind that it is good practice to separate your installs with different users since they don't share their files and databases. I really see it as a convenience. With some tutorials you could fairly easy manage it from the command line. Just try it out for 30 minutes.
  21. Hey OviS, Sorry to hear you are running into this weird issue. I hadn't noticed the thread before, otherwise I would've responded earlier. At my previous company we had exactly the same issue. I never could really reproduce it. But when we migrated our servers the issue went away. We came from a rather old MySQL version (5.0.x.x) to a new one (5.6.x.x). I didn't noticed at once because we were using a temporary solution. We created a repeater with an Image field and a Text field per row. In the Image field setting we set the row to 0 so the description didn't show. Not really nice, but workable and our clients didn't really bother after a while. After the migration I did some work for a smaller client with images. I tried to see if the issue had been resolved. After a few edits and some time, it kept working. We took the plunge and converted them all back. No problems since. I don't know your setup and the way you guys work, but I would say a full site convert seems a lot more work then to create a temporary workable solution. Also you could try to reproduce with another MySQL version.
  22. It handles all the sysadmin stuff. You want another application/website? Login > Create new user > Create new application > Enter name > Save > Done. No other steps really. Works like a charm and very responsive support too (even in Amsterdam timezone).
  23. Good to hear celfred. We should pin messages like these on the door
×
×
  • Create New...