Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Peter last won the day on October 23 2019

Peter had the most liked content!

Profile Information

  • Gender
    Not Telling
  • Location
    Lisbon, Portugal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Peter's Achievements

Jr. Member

Jr. Member (3/6)



  1. @LostKobrakai I thought .htaccess was needed for rewrites to work as well? I found your gist. Is this code compatible with PW 3.0? Maybe you could indicate where to put the code? I'm using UpCloud with RunCloud. Below contents of /etc/nginx-rc/: conf.d extra.d fastcgi_params koi-win mime.types.default proxy.conf uwsgi_params default_server.conf fastcgi.conf fastcgi_params.default main-extra.conf nginx.conf scgi_params uwsgi_params.default dhparam.pem fastcgi.conf.default koi-utf mime.types nginx.conf.default scgi_params.default win-utf
  2. Hi. Am I missing something here? I seem to get a test site running on native Nginx (upcloud.com). No .htaccess-file and no htaccess to nginx rules - it just works. It also throws 403's where I shouldn't have access. See my test site here: https://racemanager.net
  3. Brilliant job kongondo. Thank you so much.
  4. Thanks, but using JSON how can I pass the information that the inner ul should have a class "sub-menu"? <?php $json = $pages->get(1022)->menu_items; $items = json_decode($json, true); if( count($items) > 0 ){ $out .= '<ul class="class="main-menu cf">'; foreach($items as $item){ $url = ($item['url']) ? $item['url'] : $pages->get($item['pages_id'])->url; $target = (1 == $item['newtab']) ? 'target="_blank"':''; $out .= '<li class="list-item"><a href="' . $url . '" class="list-item-link" ' . $target . '>' . $item['title'] . '</a></li>'; } $out .= '</ul>'; } ?> <nav id="mainMenu"> <label for='tm' id='toggle-menu' onclick>Navigation <span class='drop-icon'>▼</span></label> <input id='tm' type='checkbox'> <?php echo $out;?> </nav>
  5. Has anyone been able to make this work with kongondo's MenuBuilder? With MarkupSimpleNavigation it works like a charm but I want the client to have more control of the menu from the admin.
  6. Hi, I get the following errors when trying to configure Lister Pro: ProcessPageListerPro.js?v=101-1452724320:40 Uncaught TypeError: Cannot read property 'on' of nullProcessListerPro.init @ ProcessPageListerPro.js?v=101-1452724320:40(anonymous function) @ ProcessPageListerPro.js?v=101-1452724320:209l @ JqueryCore.js?v=1452713217:2c.fireWith @ JqueryCore.js?v=1452713217:2v.extend.ready @ JqueryCore.js?v=1452713217:2A @ JqueryCore.js?v=1452713217:2 The browser (Chrome, Safari and Opera on the Mac) complains about this function in ProcessPageListerPro.js: ProcessLister.results.on('loaded', function() { ProcessListerPro.pageClick(); // refresh counters }); This renders the Lister Pro configuration unusable. Doesn´t allow deleting or adding filters or change any other setting. I can comment out the function and it kind of works, but then it does not list all of templates/fields available to Lister Pro. I have the same experience locally (vagrant) and on the server (tested on PW 2.7.3 and 3.0.3) Anyone experiencing the same? Any ideas how to fix this? PS. I no longer have access to the Lister Pro VIP forum, thats why i'm posting here. - Peter
  7. I need project.project_progress to output as integer for the progress bar: <script> app.controller('projects', function ($scope) { $scope.projects = []; $scope.projects = <?=$page->getChildren('template=project')?>; $scope.sortType = 'title'; $scope.sortReverse = false; $scope.searchProject = ''; }); </script> ... <tbody> <tr ng-repeat="project in projects | orderBy:sortType:sortReverse | filter:searchProject"> <td><strong>{{project.title}}</strong></td> <td>{{project.project_start_date}}</td> <td>{{project.project_due_date}}</td> <td> <div class='progress-bar-indication'> <span class='meter' style='width: {{project.project_progress}}%'> <p>{{project.project_progress}}%</p> </span> </div> </td> <td><a href="{{project.id}}"><i class="fa fa-eye"></i></a></td> </tr> </tbody>
  8. Hi Manol, How can I access the page url using your module? I am bulding an Intranet solution and I want to use Angular on in the table views of projects, clients etc. and then link to a detail page for a specifc project, client etc. Also, JSON returns id as integer but every other field as string. How can I use/(convert?) a specific field as integer? Thanks for the module. Peter PS. To get the module installed I had to add an is_array check in the getChildren function of your module. EDIT: I used this module for the urls: ProcessRedirectIds
  9. Thanks, I´m running PHP Version 5.4.40. It works now, but the module seems to output the parameters in text too: <section id='video'>yt_autoplayyt_hlyt_relyt_startyt_autoplayyt_hlyt_relyt_start<div class='TextformatterVideoEmbed'... I'm using your module in addition to TextformatterVideoEmbed and I have added it after that one. Another question: Do you know how to mute the sound or set a low volume level when using the autoplay parameter? I know this is not possible using parameters in the url, but there must be way Regards, Peter
  10. Sorry, but I still get errors with the latest version: Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' (line 49 of /var/lib/openshift/xxxxxxxxxxxxxxxxxxxxx/app-root/runtime/repo/site/modules/TextformatterVideoEmbedOptions/TextformatterVideoEmbedOptions.module)
  11. Hi, I get a parse error when trying to install this module: Parse Error: syntax error, unexpected '.1' (T_DNUMBER), expecting ')' (line 27 of /var/lib/openshift/xxxxxxxxxxxxxxxxxxxxx/app-root/runtime/repo/site/modules/TextformatterVideoEmbedOptions/TextformatterVideoEmbedOptions.module)
  12. I don´t think there are files missing. I tried it with various fresh installs.
  13. Adding a new language in pw 2.5.14 throws this error: Error: Call to a member function setIsDefaultLanguage() on boolean (line 144 of /Users/user/Sites/domains/blog/htdocs/wire/modules/LanguageSupport/LanguageSupport.module) Works in 2.5.3 and 2.5.5
  14. Thanks Martijn, I went with http://example.yourdomain.com, but you can also run your own ngrok server for that purpose if you want. My dev environment is coming nicely together
  15. Thanks Martijn - works great on my Mac Mini! I am not on a fixed IP, so I wonder what's the best way to share a local dev site with a client? I found https://forwardhq.com/ (paid service), but can' get it running on my mac (seems like it doesn't support Ruby versions above 1.9.3...) How du you guys solve this? DynDNS or similar? Any feedback on this is welcome. Thanks.
  • Create New...