MilenKo

Members
  • Content Count

    328
  • Joined

  • Last visited

Community Reputation

88 Excellent

About MilenKo

  • Rank
    Sr. Member
  • Birthday September 17

Contact Methods

  • ICQ
    99982787
  • Skype
    mikemastercorp

Profile Information

  • Gender
    Male
  • Location
    Montreal, Canada
  • Interests
    Web development, coding, Network infrastructures, Linux, BSD, Windows, Cisco, Photography, Cooking

Recent Profile Visitors

1,350 profile views
  1. MilenKo

    OK, it seems like Ampps is working fine for linux (atleast I've tested it with Ubuntu 18.04LTS and Linux MInt 19 which are my preffered choice for now), however there is a glitch in the app that does not edit the hosts file (/etc/hosts) so everytime you add a parked domain, you should just add the record for it in the hosts file, like: 127.0.0.1 blablabla.com (where blablabla.com has been added in Ampps). I know it is not the perfect world, however starting to work on a project does not take a minute or so so it is OK if one has to add the domain for now and use it for a week, month etc. I got in touch with the technical support and proved that it is not an issue of permissions by changing the permissions to /etc/hosts to 777 as well as running the app as super user, so they should look into this issue and have it fixed, however as of now (5 days later as of my last reply) there was nothing pinpointing the issue and an eventual fix, so just decided to share the experience so far with the rest of you. Hope it helps someone in his choice of preferred stack as I really liked Ampps for Windows and Mac, but not so much on Linux yet...
  2. MilenKo

    @FrancisChung Maybe I did not express myself correctly but under Ubuntu, I was able to install AMPPS but it shows empty screen on the AMPPS Admin. I passed through the empty screen by adding some strings to /etc folder and have the ability to start/stop services and see the apache fired up promptly. The only issue left is that it still does not add the parked domains to /etc/hosts and I have to manually add it so I am in touch with the support to have this fixed somehow. If I achieve a fully working state, I will provide a little installation howto for anyone that is looking forward trying it. It is very good for local development (even though I am not comparing the performance as I am working on a computer with tons of ram and cpu power) and what is most important - works under Windows, Mac and Linux (for now hosts file needs to be edited manually even if the app is started as SU) It is not a big deal, but is a glitch that I would like to learn how to have fixed and do everything from the admin panel
  3. MilenKo

    Hello Francis. To be honest, I was trying to find an easy to work with platform that would be OS independent - that is why I tried to use AMPPS. The issue I mentioned earlier was nicely pointed out during the Processwire Installer - mod_rewrite was not enabled by default, so after enabling it and restarting AMPPS - it is all working just fine. So if anyone is trying to use AMPPS for MAC OS - at least under High Sierra 13.6 it is working perfectly fine. One of the things I liked about AMPPS was that through the web admin I could just type my desired domain and it would add automatically all the info to the hosts file as well as all configurations of Apache, PHP etc. For sure I could use a simple MySQL, Apache and PHP installers and configure them manually, however it is just nice and easy to "install" ampps to Applications folder and even backup the hosts/domains easily. It is true, that I had issues with the virtual hosts being added under Linux in the past and I remember contacting the support for that, but I should test it now to confirm if that issue still exists. For now I am sticking with macOS HS and AMPPS. Thanks for the feedback. P.S. As far as I've been working with Ubuntu for quite some years, I will fire up my Linux box and try to install the Devilbox to see where the issue might be and how to recover it. I've just never heard/used that stack so it would be nice to try it and make it run (eventually).
  4. MilenKo

    Hello all. I just got into this topic while searching if someone else had issues using AMPPS with PW, where I can import the DB, pull up the admin but it is not logging. Funny enough, the reason for me using AMPPS is because I am playing with a MAC to see how good is the performance over Linux. So far it is all good and I know AMPPS is for LINUX, WINDOWS, MAC but with Linux I had an issue with the parked domains where the records of the domain were not added automatically to the hosts file. In other words it works fine for web dev on the three major OS'es and I will give a try to devilbox, but bear in mind that you might loose the ability to login to admin (at least under macOS High Sierra). I am testing now with a fresh install of ProcessWire as the first attempt was to import an existing project I am working on under Win with another server and see its portability.
  5. MilenKo

    Well I've tried to check for the template earlier and it worked, but it was rendering the menu if any page had that template. After you brought this, I thought to re-create the query and this way just add it in the get statement: // Check if the menu has an id of 1234 or has a title equal to my_menu_name // If no match for the ID but a match for the page title, then stil the menu would be rendered // If no condition match, the error page would not be shown on any user and the menu would simpy not render if($pages->get(1234)->title || $pages->get('template=menus, title=my_menu_name') !=''){ echo $footer_menu->render(1047, $options); } So we are adding an extra check to make sure that a similarity with another custom added page would be minimized. For sure it could happen, but there are already 3 criteria to match and I believe this would be enough. Thanks very much, @kongondo for the perfect module and the shared knowledge (as usual)
  6. MilenKo

    Hi @kongondo I almost guessed the check on my first attempt, however the result came the same - I got a whole new "red page" while being logged on as SuperUser and the menu was not rendered if logged out (I did not yet add a non-SuperUser yet). The thing is that once I hand out the profile, it wont be only me the person to hold the SuperUser but an IT team as well. So if someone gets the "red screen" and is not aware of MenuBuilder rendering way, they will report the issue as a profile failure. I found out though, that if I treat the menu as a page and check for existence of a title, than it does not matter whether you are a SU or not - if the page does not exist, nothing would happen and that is it (that is what I need as if someone reports to me, that the menu is not rendered, then I would simply advise to make sure that the menu ID or name is added with the links needed). Following the initial logic, I reworked a bit my check up as to add an OR statement that besides the ID would also look for the menu name (page->title): // Check if the menu has an id of 1234 or has a title equal to my_menu_name // If no match for the ID but a match for the page title, then stil the menu would be rendered // If no condition match, the error page would not be shown on any user and the menu would simpy not render if($pages->get(1234)->title || $pages->get('title=my_menu_name') !=''){ echo $footer_menu->render(1047, $options); } In a real world scenario, the check would work, but in a case where the page title matches another page being added with the same name outside of MenuBuilder, than it would force the menu to be rendered, but I can live with it for now, as the profile would already have the page added and it would be too much for someone to delete and recreate the menu (which would change the ID), then add another page with the same name as my original menu title and then test for rendering. This way I avoid any error page for all users and the only result would be that the menu would not render
  7. MilenKo

    Hello community. For a new project of my company I would like to implement a checck if a menu exist (by ID, name etc.) and only if yes, to render it. So far I was googling and reading the pages here, but could not find a way to implement that. Could you kindly assist me in that? So far what I've tried and obviously it did not work was this: if ($menu->render(1234)!='') { echo $menu->render(1234, $options); } It might be useful to have this check added to the MenuBuilder instructions as I always like to have a check for existence with any field/template so the menu would not differ. It sort of prevents the "danger screen" during website setup or if a typo in a call was made P.S. As far as every menu added is a page, I found a way to check for the page existence and it work, however I am not sure if that is the simplest and most elegant way to achieve the needed: if($pages->get(1234)->title){ echo $header_menu->render(1234, $options); }
  8. Joshuag, from the videos I can tell that the work of your team is a masterpiece. It would be great to test the functionality in real whenever you are ready for a release. Keep up the good work. That is why I signed up for ProcessWire - because of its super creative and extremely supportive community. If you need some testers, you can count on me. I am just starting a new project and a module like yours would help me get more efficient while at the same time I would make sure to report any issues spotted or share ideas of improvement (if any ofcourse )
  9. MilenKo

    Hey guys, I was reading the news of the latest dev branch this morning and noticed the profiles discussion here. As far as I like checking up the profiles as I am not a Pro developer (yet ) but I also like the simplicity in things, to have the PW installer with a single profile (let’s say blank) and provide within a step of the installer to use another profile? Let’s say I am installing PW and after asking for credentials etc. it notifies me that by default I am using blank profile so if I would like to use another one, to select from the list where all default profiles are listed. Doing this I would still end up with my favorite profile, but I won’t have to download extra files just so that I delete them. The only issue I see here is if a developer wants to have a copy of PW and install it locally while being offline (working from remote locations with no Internet access) however if this is happening, most likely we would be talking about a person who knows his things around PW and most likely would have his own profile to use already.
  10. Well I do use Bootstrap and I thought that JS could cause the issue and removed all calls from the code but still am experiencing the issue. WIll try with the CSS as I did not realize it could cause some issues as well if some styles overlap. Anyway I decided that changing the logo from the frontend is too much to provide considering the fact that the profile is not meant to be fully operated within the frontend, however let me remove the css and js calls and test it without them at leasr for the sake of the knowledge. Thanks @wbmnfktr for sharing thoughts
  11. Well the saga continues. I did setup a clean multilingual profile, removed the delayed output logic (_main.php is not appended in config.php) and also cleaned any unused templates. Decided to add my html markup for the home page only and added a single image field called: image_single Frontend editing module has been installed and I submitted the default settings. To call the image on the spot of the logo space, I used the following code: <!-- Website Logo --> <a href="index.html" title="Knowledge Sharing Profile"> <div edit="1021.image_single"> <img src="<?php echo $pages->get(1021)->image_single->httpUrl; ?>" alt="<?php echo $pages->get(1021)->image_single->description; ?>"> </div> </a> where 1021 id is the one of my Settings page that has the image_single assigned. Browsing the page shows every bit of the markup correctly, however as soon as I doulble click on the logo - it shows the modal window again for a blink and closes up. When I tried to insert the logo in the default profile withoug changing the home.php file - it all worked fine, but as soon as I put my markup and it fails to keep it open until I close it up. To try the functionality of non-image field, I added a simple text field and assigned it again to Settings page. As far as it is a text field, I got more options to pick from (A-D) in the input tab. Tried with A : <?php echo $pages->get(1021)->edit('text_box'); ?> And it worked like a charm allowing me to change the text inline. Enabled all the errors in Tracy to be logged and I do not see any reported issue neither in the java console nor in the assets/logs/tracy/ folder. Any other hints to try? I know it is silly that I am stubborn with the logo where one would not be tempted to change the logo from the frontend, however it is just to find the issue and avoid having it in the next projects.
  12. Hey @wbmnfktr, to make sure it is not a glitch of the system, I decided to test the functionality on the default multilingual profile. To simulate a similar scenario, I grabbed the title and placed it in /includes/header.php. Added to the file a simple image and inserted the edit tags from the other profile. To simulate the location of the logo, I also created a settings template and assigned it to Settings page. Adding an image_single to Settings page and attaching a test image allowed me to edit it on the frontend by double clicking. As it appears, it is not the issue with my server nor with Processwire (in the default setup). I will try to rebuild my profile step by step hoping to figure out where is the glitch as to make sure to avoid it from happening in the future.
  13. Well I did check but there are no indications of something missing. Btw, I have the description of the image multilingual so thought it might be related to that one. Even Tracy does not show anything strange as a hint...
  14. Hello guys. I've decided to get brave and start my first delayed output profile for a remake of my knowledge sharing profile. It went all.good so far but I decided to make it multilingual as to fit the users needs. For starters, added a field named: image_single and limited the input to one image as this would be used for the logo. Added.the markup to allow the front end editing (method D or direct edit tag to the <img>. After double clicking on the image, I see the pop-up showing up for a second and then closes. As far as there are no errors in the logs, I am a bit stuck to find the reason. I've read earlier that some users had issues with multilingual fields but could not find anything to point me to the right direction. Any ideas or suggestions?
  15. MilenKo

    As always a fast and efficient reply. I never thought of looking for a release notes module, but it is a great addition. Thanks guys!