-
Posts
466 -
Joined
-
Last visited
Everything posted by MilenKo
-
@adrian Is it happening for you with 2.0.14? As with me it just started doing the same issue as you've reported, however with 2.0.14 it works fine. And as I said, what is even stranger, if I remove the class for hidden items in developers mode and put it back, it starts working, so it is only on the page loading that it happens. I know I should not say that, but it is a bit of a relief as it is not local on my side and I am not going crazy. Go figure ? P.S. Somehow it seems like I was wrong with the assumption about 2.0.14 as well as the admin was showing properly, but I forgot that I've disabled the show ID option. So it is not working with both unfortunately and I guess until it is clear what is causing, I could just live without showing the ID beside the page.
-
So, I've tried this morning to remove all the modules but the AOS and the hidden items still were hidden unless I move the mouse over them, but then after a page reload, they "hide" again. I did test it in Incognito on both computers and still see the same thing. After replacing the AOS 2.0.15 version with the 2.0.14 - it is all working fine so there must be something that is happening with the new version, but what and where is not clear yet. At least it is not related to my browser, computer and even the local server prior to the fact that it worked like a charm under 2.0.14 and it still does. P.S. After an upgrade from 2.0.14 to 2.0.15 - the hidden pages get "hidden" again.
-
Well, I tested the admin with the following browsers: Opera - Version:58.0.3135.107 Chrome - Version 73.0.3683.86 (Official Build) (64-bit) Here is the markup of one of the hidden pages 404 Not found: Here is a preview of all the rows to compare classes: I checked a few classes and if I change the opacity from 0.6 to any number and back - it shows properly: .PageList .PageListStatusHidden>a.PageListPage { opacity: .5; } Not sure why, but will test to remove all other modules to make sure that the issue is not caused by one of them. P.S. To be sure it is not a local OS (Server 2016) or Browser issue, tested on another PC with Windows 10 and the result is still the same. As far as it is quite late now here, I will try to get an earlier version of the AOS and see if the issue would appear as well. Will keep you updated and thanks for checking it up.
-
Hey there. This morning I upgraded AOS for a project to latest version 2.0.15 and started noticing some issue viewing the hidden/unpublished pages in the admin. Tried to uninstall the module and grabbed a fresh copy, however the same issue appeared. If I move my mouse over those that are not showing but only ID's are listed, they all appear fine: Started disabling options of AOS in order to check which one would be causing the issue and it appeared that it is the PageList tweaks and more specifically: Show page IDs (SuperUser only) . I did not set any other options, however if I remove this one, the list shows properly. The issue seems to appear on both themes - default and uikit. Any ideas how could I keep the page ID's showing but keeping the hidden pages visible? Is this a feature/option I've missed or else?
-
FieldType Comments Up/Down votes and Reply button question
MilenKo posted a topic in General Support
Good day fellas. I was working on a theme that required me to setup a comment system with star rating and votes and it is all completed markup wise, however I noticed something strange during the test - if the field option is set to use Up/Down votes a user can do both simultaneously. My question is, would it be possible to allow ONLY up or down-vote to be used at a single time as presently I could click that I like a page and at the same time dislike it. Logically, if I would click to like the page and then click to dislike it, it would diminish my previous vote and only allow to either like or not a page. Also, when in the field settings I set a reply depth, I would like to have the Reply button still showing instead of disappearing. It is much more functional to have the reply button showing even after the depth limit is reached which would allow the user to reply quickly if a lot of comments are shown on the page. Instead of scrolling down to the comment adding form, the reply button would still show it under the chosen comment, however the indent would stop changing. Any ideas how to allow only one voting at the time and keep the reply button after the depth limit is reached would be really appreciated. I am attaching an image to better demonstrate the need... -
Looking at the code of the FieldtypeComments module, I found the following short codes that could be used to render the comments: {votes} - shows the up/down votes as per the options set in the comments field (Details tab) {stars} - shows the rating stars if the rating is allowed within the Details tab {url} - inserts the URL link to the comment
-
Hello @OLSA Could you please explain where should I put the CommentStars::setDefault('star', '<i class="fa fa-star"></i>'); //<= star item using fontawesome icon as this is my first time needing to replace the default stars with some FA icons and it would be a great addition to my learning curve ? I see the same info in the comments field details tab, however am not sure how to insert it properly to have the stars changed to else.
-
Never mind, I was able to find the answers: // Rating // Note, that the result comes as a number so you might need to modify the markup to make the stars appear $rating = $comment->stars; // Upvotes $upvotes = $comment->upvotes; // Downvotes $downvotes = $comment->downvotes; The only thing I was not able to come up with was how to check if a comment is an reply to apply the proper tags (div, ul, ol etc.) If anyone has a way to achieve that, it would be great...
-
Hello gents. I know this topic is an year old now, however, could you please share with me how would I insert the comments rating, vote and nesting in a custom build form where I do not just modify FieldtypeComments and put a copy in /site/modules but rather use the method described by Ryan in the description of the module & API (section of Generating your own output)? So far I was able to get the cite, email, website and text to show but it seems like using $coment->rating (or ->vote) does not do the trick. It would be great if one could share a comment form that would have the all the fields + vote, rating and be styled for comment replies...
-
Hello there. I am not sure if the issue I experience is a bug of AOS or there is some weird setting I have, but I noticed that on a PW latest version with just AOS installed, when I select the Sticky header option and scroll down the page a bit, the submenu's are not showing until I scroll back up where they are dropped originally. Any ideas on how to have that fixed as it is not that convenient to have the sticky header if you are not seeing your menu and still need to scroll back up to make it appear?
-
Show content of an InputfieldFile field on frontend
MilenKo replied to MilenKo's topic in General Support
Hello @Soma I might be too sleepy today as I was there and looking at the file->parameter and would believe I've tried with the $file->description but anyway, thanks for pushing me to the right direction it all worked like a charm and the description was the one I've needed for now. -
Hello all. Could someone refresh my memory or point me where to look for the parameters/options that can be used to input the content of an InputFieldFile field with some files uploaded from the admin? I know I could do: echo $page->field_name and that would show me the file name attached (if a single file is uploaded), however, I can't really remember how to show the file description or the name that is added under the file attachment? I've searched in google and this forum, as well as in the cheatsheet, however, am having bad luck finding the params...
-
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...
-
@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 ?
-
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).
-
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.
-
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) ?
-
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 ?
-
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); }
-
Designme - Visually Layout Your Edit Screens - Preview
MilenKo replied to joshuag's topic in Modules/Plugins
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 ? ) -
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.
-
Front-end edit of single image field on multilingual profile
MilenKo replied to MilenKo's topic in General Support
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- 7 replies
-
- 1
-
-
- editor
- single image
-
(and 1 more)
Tagged with:
-
Front-end edit of single image field on multilingual profile
MilenKo replied to MilenKo's topic in General Support
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.- 7 replies
-
- editor
- single image
-
(and 1 more)
Tagged with:
-
Front-end edit of single image field on multilingual profile
MilenKo replied to MilenKo's topic in General Support
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.- 7 replies
-
- editor
- single image
-
(and 1 more)
Tagged with:
-
Front-end edit of single image field on multilingual profile
MilenKo replied to MilenKo's topic in General Support
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...- 7 replies
-
- editor
- single image
-
(and 1 more)
Tagged with: