• Content Count

  • Joined

  • Last visited

Community Reputation

10 Good

About LAPS

  • Rank
    Full Member

Recent Profile Visitors

262 profile views
  1. Hi all, in my site I would like to list the favorite pages of a logged in user (I'm using the PW LoginRegister module). To make that, I thought about adding a button on every page of the site so that the logged in user can click it (running a AJAX function) and save somehow his favorite pages (e.g. storing the pages ID to the database). My question are: what is the PW "approach" and how to make something like that?
  2. LAPS

    Hi @Soma, thanks for the module! See UPDATEs below. I'm using ProcessWire 3.0.98 and the CSS styling seems not to work even if the CSS classes are added to the HTML source code. That is, I get the following: However, in the module configuration page, the preview looks good: UPDATE - By inspecting the CSS code I just discovered unwanted style properties added to the page (note: the CSS that the MSSB module would add is still not loaded): I don't know why it happens and probably it's not directly related to MSSB, but it would be great if anyone can help. SOLVED - I just discovered I should had been including the theme.css file present in the MSSB theme folder to my site. That is, to use: <link rel="stylesheet" type="text/css" href="path/to/theme.css" /> Alternatively, I should had been adding the CSS statements in my website CSS file.
  3. LAPS

    @Macrura, I do not understand how to configure the assets from within my file in my templates folder and how to add a init js file that would init the inputfield. Can you provide some more detailed guidelines to use ChosenSelect in FormBuilder to use pages? BTW/Note: I'm using ProcessWire 3.0.98
  4. Thanks for the replies. @BitPoet your code works. It'd be correct if the check_access=0 handles/supports access to files too. What do you think about? Could it be an inbuilt PW feature? @ryan
  5. How can I make that (even though I think it's not the best solution since the check_access=0 should work also for accessing files )?
  6. @Tom. certainly! Here it is when rendering one image: somewords<br> <img src="/site/assets/files/1258/image.jpg" alt="img description"> The problem is that the image is not accessible probably because it is protected by PW even if I use check_access=0. Note: I edited the original post adding the check_access=0 in the selector for finding protected pages.
  7. @Tom. it works the same by using and not using '{' and '}' in the img tag. As you guessed, the problem still remains. Thanks anyway.
  8. I've set the template protected-pages so that only certain, non-guest user roles have access to view pages. I've also set $config->pagefileSecure = true in the config.php file so to prevents http access to file assets of access protected pages. In the protected-pages template file I use the following sample code (note use of check_access=0): $protected_pages = $pages->find("template=protected-pages, check_access=0, title~=somewords"); foreach($protected_pages as $protected_page) { echo $protected_page->title . "<br>"; echo "<img src='$protected_page->image->url' alt='$protected_page->image->description' />"; } The above code shows to guests the page title (as expected) but not the image. I would like to allow guests to access not only page titles but also image files of protected pages, and just for this occasion. Is it possible (maybe just switching pagefileSecure settings on/off at runtime)? If so, how can I make that?
  9. Hi @teppo, thank you. It works. However, I had to edit and re-save the page.
  10. Hi, I have a page for which I manage access so that guest users can not view it. This page has attached an image. Of course, the basic page access settings works as expected for guests by denying them to view the page. However, when I, as a guest user, access directly the attached image via its URL then I can view the image! How can I deny access also to the image?
  11. LAPS

    HI @adrian, I would like to try your PageProtector module but I have to know whether I can set the login (username-password pair) per page? If I understand it correctly, the username-password pair can be set globally and not for every single page.
  12. @BitPoet, now it works but only when using, not http://localhost:8888/.
  13. I am using ProcessWire 3.0.62 and I do not have languages active. I installed the latest version of ProcessMention, but I continue to get the '301 Moved Permanently' from http://localhost:8888/ADMIN-PATH/mention. However, if I use, it seems to work a little more: I get a 200 OK response but the "list of mentions" is not populated because the response code is an entire HTML page (including css, js, etc.).
  14. @BitPoet, thank you for your effort. I tried your ProcessMention module, and it does not work (see below). However, ... ... I could suggest: In the file > Installation, you can add the step "Copy ProcessMention.css and ProcessMention.module from the module folder to the site/modules/InputfieldCKEditor directory. ... I have to say: Rather than querying the server every time via Ajax to get mentions, you could cache the mentions client-side (in a hidden HTML element, local storage or JS config) - credit Of course, the output (e.g. fix positioning of selection list in plugin.js) is important. Regarding my issue with the ProcessMention module, when I type the e.g. @Sca text then the Ajax-HTTP request is fired but I get the following Network Headers: Note: In the image, the gray-covered areas are the path to access the admin of my PW installation. P.S.: I read the code and I would help someway, but I have to learn a little more about github and the languages.
  15. The browser cache was the problem. After clearing the cache, in the Edit Page view the Styles menu lists items that I set for it: CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Inline Code', element: 'code' }, { name: 'Inline Quotation', element: 'q' }, { name: 'Blockquote', element: 'blockquote', attributes: { 'class': 'blockquote' } }, { name: 'Small', element: 'small' }, { name: 'Deleted Text', element: 'del' }, { name: 'Cited Work', element: 'cite' } ] ); However, in order to make the <blockquote> to have the class="blockquote" I have to make more actions that it could be needed: Click the "Block Quote" button in the CKEditor menu. Focus on the "block quoted" text and select the "Object Styles > Blockquote" item from the Styles menu. Is there a way to add <blockquote class="blockquote"> within the CKEditor content avoiding the second action?