Jump to content

wbmnfktr

Members
  • Posts

    1,851
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by wbmnfktr

  1. You could edit the output in the template file and use the new $page->if() method. https://processwire.com/api/ref/page/if/ So there might be no real need in setting a real value. Add a note or description to tell and explain editors the field behaviour. You could define that default value somewhere in your config.php or even in a dedicated settings page to keep it editable - at least for superusers.
  2. Does a clone/copy of that page end in a 403 as well? Are there any hooks or if/else statement in your template that check for specific user roles? Can you find more details in the logs?
  3. In that tutorial - look at step 8. The Template File Step 8 – Outputting dynamic data in your template file While still in the page editor from step 7, click the "View" link to see your page. Note that it still says "Happy planet" for type (rather than "Terrestrial planet") and "Millions of years" rather than "4.54 billion years". That's because the page is still being rendered with just the static data in it. We need to update the template file so that it recognizes the fields we added and outputs the values of those fields. Edit /site/templates/planet.php and replace the static text in there with tags like this, replacing field_name with the name of the field:
  4. In addition to that I wrote this: https://copypaste.pw/howto/author-box/ Maybe it helps or at least gives you directions.
  5. If I remember correctly that has to be enabled in Mailchimp first. Allow someone to re-subscribe again.
  6. 301 are totally fine - for ProcessWire and Google. Nothing to worry about. Read next part - as you have almost nothing to do for this. ? The existing ProcessWire .htaccess file already has this in place. Uncomment two lines and you are ready to go. # ----------------------------------------------------------------------------------------------- # 13. OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] You can just add those fields to the user template - which can be found in Setup > Templates (after enabling showing system templates). And of course you have to create those fields first - if not already created. Setup > Fields There you can create all kinds of fields. Text, textarea, image, whatever... I recommend doing the tutorials available here: https://processwire.com/docs/tutorials/ They will help you to understand ProcessWire. It's absolutely not a waste of time. Even as someone who never worked with ProcessWire, but having some basic knowledge in terms of PHP, can learn ProcessWire within a weekend.
  7. One image is actually indexed... ? There are a few things you might want to change or at least take a closer look at. use only https:// and redirect to it choose prefered domain (see below) reduce page size drastically (~13MB is too large) and speed it up remove the preloader as it stays for hours fix your sitemap (as mentioned by @dragan) set up Google Search Console to figure out problems with your site add robots.txt (as mentioned above) and reference your sitemap and maybe add a nice favicon.ico Your site is available through 4 different addresses: http://lobo-taberna.de/ http://www.lobo-taberna.de/ https://lobo-taberna.de/ https://www.lobo-taberna.de/ Choose one. ? Reduce page size to ... way less than that.
  8. I might miss it but how do you add tags and categories to a page? If you are using a page field (PageReference) you could just find() them. foreach( $pages->find("tagFieldName=$tag") as $pageWithMyTag ) { // whatever you want }
  9. Imagine you have a nice conversation with someone and only a few hours afterwards you are knee-deep into a module and possibilities you never thought of. Thank you @bernhard for hijacking my plans for the weekend. ?
  10. The login to add/edit the profile as well. Redirects after login attempt to https://login/ .
  11. On Github is a .txt file, that correct. But its content should work just fine. NEVER delete a file you might need again. Especially while debugging. So as the new .htaccess doesn't as well... what were the last changes you made? Did you install or change files aside from .htaccess? Did you move folders? Did you enable anything in your hosting panel? It seems you tried to install SSL. How did you do that? Via hosting panel? Manual cert files or something similar? One change in the .htaccess can potentially break everything but it can always be reversed.
  12. Rename the old htaccess file and just add a fresh copy from the Github repository.
  13. Outgoing link tracking is possible with Google Analytics, Google Tag Manager and Piwik. You could also create masked links with the Jumplinks module. It counts clicks on each Jumplink. You could combine these two methods to track a much broader audience.
  14. I don't know if this hook causes the error. Test the registration without that hook to confirm it. Your modules seem to be fine - I guess. Unless you don't use a weird setup with nginx or frameworks of any kind (no, not materialize.css ?) I have no idea where this comes from.
  15. Do you have any custom code somewhere? Maybe in ready.php? Really can't tell where this comes from. What modules do you use? Which version of ProcessWire and PHP?
  16. You're welcome. ? I wouldn't create a fresh installation... just start taking things apart. Check your page reference field. Maybe there are no pages, maybe they are hidden, maybe your input type is wrong, maybe whatever. Check if you added the field to the user template and to the module settings. Try another browser, delete your cache... if there were any errors they should show up. Maybe you will find something in your dev console.
  17. Just installed Login/Register/Profile module, created a page reference field and a select options field to test, added both fields to the user template and the module settings, added the module code to a template and it worked. Maybe me screenshots help in some way.
  18. If the job needs to be done just download all files manually or try Site Profile Exporter. Some tipps and details on how to migrate manually can be found here: https://processwire.com/docs/security/migration/
  19. I love their idea of minimal code and uncluttered but yet customizable tools. I recently set up a machine with Linux again to find out if I could establish a more solid workflow than on Windows. After several tests I finally decided to go with Ubuntu 19.04 and the Gnome desktop. It works pretty well so far. On another way way older machine I run Manjaro with i3 and hopefully soon some suckless tools. It's amazing how well that old Thinkpad X201 performs with that kind of OS.
  20. Just in case: suckless.org > surf = http://surf.suckless.org/
  21. @louisstephens I just send you a message - attached to it the whole script.
  22. Maybe I don't really understand your problem here. The default language itself is english but as soon as you install a language pack to/into the default language it's (in your case) russian. Or french. Or finnish. From then on it's business as usual. Have you ever used ProcessWire before? What's the main issue you are facing right now? The overall functionality of ProcessWire maybe? My PWBRecipes profile has english as default, too. That won't help you.
  23. I don't know any video you could watch which explains that ProcessWire setup in that detail. But as you are working on a fresh installation you don't have to anything. Almost. You can just add pages, add content in russian language and you are done. There might be some parts in the frontend which need translation and those can either be changed in the template itself or within the language (default language: /yourProcessWireAdmin/setup/languages/edit/?id=1010). Depending on how much experience you have with ProcessWire and what kind of page you want to build you SHOULD read what I linked to above. You may even want to read the tutorials on how to work with the whole setup.
  24. Well... change the content in your pages, edit the template files (/site/templates/) if necessary and you are ready to go. You might want to take a closer look at this: https://processwire.com/docs/multi-language-support/ There you will find every detail you need and probably want to know. The most relevant parts are in your template files in the content pages itself. There is not much necessary here. Did you a fresh ProcessWire installation or are you updating an existing one?
  25. At this point it's quite easy. First of all import the language pack. As you have already done I guess. Second to that change labels/titles. As you have done already as well. Third and last part log out and log in again. That performs kind of a reset in your session and cache. The ProcessWire interface should be in russian then.
×
×
  • Create New...