Jump to content

tires

Members
  • Posts

    258
  • Joined

  • Last visited

Everything posted by tires

  1. Thanks for your answer! I checked the api docs and also tested the module configuration. In the api docs the following code is given: $numSent = wireMail($to, $from, $subject, $textBody); Is that right? Or do just have to write "wireMail(....);"? I think the arguments are ok (it works with the common php mail): $emailTo, "Webmail", $msg, "From: $form[email]"
  2. Thanks for your answer! Ok, i installed the module "Wire Mail SMTP" and fill in the smtp data. My template contains the following code to submit the mail: $numSent = wireMail($emailTo, "Webmail", $msg, "From: $form[email]"); Is that the right way? The mail didn't reached me.
  3. I read about problems with blacklistings of sharedhosting servers. Mails sendig via php mail function end up in the spam folder. To avoid this i want to use smtp to send the mails. What would be the easiest way to set up an smpt-mail-form? Thanks and regards.
  4. Hi! I am runnig the site-minimal-padloper-shop. Where do i have to create this second checkout page and where can i set the "setInvoiceMode" to "true"? Will there be two buttons? One with "Continue to checkout" and "Continue to checkout with invoice"? Is there a way to create a pdf-invoice? I need a pdf with a company-logo in the head. Thanks for your anwers and best regards!
  5. Yes i do! It seems to work well on 2.6.1.
  6. Hi Apeisa, great module! One question about the payment methods: I would like to provide (beside paypal) prepayment and invoice (ie "postpay"). Is there a way to set these methods in padloper? Thanks and Regards! BTW. How about a pdf invoice? Is this possible?
  7. YEAH!!! Thanks a lot. Now everythings works well! BTW. The second option didn't work. Perhaps because the lines above still redirect the non-www to the www url ... Thanks a lot and a nice day!
  8. Oh no ... there is another redirect issue i have to solve. There are two domains that should point on the same site. One of them should redirect with 301 to the main domain. I tried so add this code in the htaccess-file but without success: RewriteCond %{HTTP_HOST} !^http://www.myseconddomain\.de$ [NC] RewriteRule ^(.*)$ http://www.mymaindomain.de [R=301,L] i added this lines here: ... # ----------------------------------------------------------------------------------------------- # 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] RewriteCond %{HTTP_HOST} !^http://www.myseconddomain\.de$ [NC] RewriteRule ^(.*)$ http://www.mymaindomain.de [R=301,L] # ----------------------------------------------------------------------------------------------- # OPTIONAL: Send URLs with non name-format characters to 404 page # Remove this section if it interferes with URLs of any other software you may be running. # ----------------------------------------------------------------------------------------------- ...
  9. Ok. Perhaps that info should be mentioned somewhere ... Now that i know these issue i can either use a subdomain for developing or do the redirects later on the live server. So no problem! Thanks for your help and the great module!!!
  10. Thanks a lot for your fix!!! In the meantime i possibly found where the problem is. My installation is not in the root but in the www.mydomain.de/the/path/to/my/dev I think i should have to put this path in the source an destination (/the/path/to/my/dev/{id|pages}/) field. Is that right? When the site is in the root unter www.mydomain.de everything works as i should!!!
  11. Thanks for your answers!!! Of course i entered the url without a leading slash!!! {id|pages}/ In the overview it is displayed correct. If i open the settings once again, the error is displayed an there is the leading slash! Should i try to change the code in the module anyway? Here is a screenshot of the overview page:
  12. Hi! The version is 2.5.3. The displayed error is (translated form german): "destinationUriUrl: Error found - please check if the url is valid." The error is only displayed if i open the jumplink settings once again. There was no error displayed when is saved it ... Here are the screenshots:
  13. Thank you Mike for your detailed answer!!! I tried your proposed configuration but without success. Here is what i entered: Jumplink Source: index.php?id={id} URI/URL: {id|pages} outputs an "destinationUriUrl" error than i entered: http://www.mydomain.de/mypath/to/processwire/{id|pages} Mapping Collections (collection name "pages") Mapping Data: 33=products 36=contact 37=imprint ... Can you find the error? Thanks!!!
  14. Thanks for your answers!!! I tried both modules (redirects and jumplinks) but they don't work for me. And for SEO reasons i would like to have 301 redirects. So i think the best place for the redirects is the htaccess file. How do you handle this?
  15. Hi! I just redesigned a website and switched from another cms to processwire. Now i want to redirect the old urls to the new pages ones using 301 redirects and htaccess. I read a few posts an tried a few things but it doesn't work. My htccess file looks like that: ... # If any conditions above match, isssue a 403 forbidden RewriteRule ^.*$ - [F,L] RewriteRule ^index.php?id=33$ /products/ [R=301,L] RewriteRule ^index.php?id=36$ /contact/ [R=301,L] RewriteRule ^index.php?id=37$ /imprint/ [R=301,L] # ----------------------------------------------------------------------------------------------- # Ensure that the URL follows the name-format specification required by ProcessWire # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" ... For example: The old product page url was "index.php?id=33" and i want to redirect this to the new "/products" page. But that doesn't work? Can you tell me where is my error? Thanks and regards!
  16. Thanks once again!!!
  17. Thanks for your answers! Ok, i see this is a little complicated and not intended to do for fields in pw. I hoped that there is a possibility to set this preset text/code/file in the fieldsetting (or in the template field settings). Is there a reason not to implement this feature in pw?
  18. Thanks for your detailed anwers! If i understand you right, the system is pretty save. And i have to be careful with my template code and where userinput (comments, search etc.) happens. Right? As i just read here https://processwire.com/talk/topic/9565-upgrade-from-2524-to-2525-broke-the-site/ updates may cause problems with modules. Or is that a rare exception?
  19. Thanks for your answers! I am not an htaccess expert, but i also considered this way. Did you have some experience wiith this? I don't understand this part. I see the urlSegments output the parts of the url. Should i set the image path as base url? Do i have to output the image path via urlSegments? Could you explain this approach? Thanks a lot and best regards!
  20. Good evening. Is there a way to preset a value for a field (textarea). This value shold be printet if there isn't anything entered in the field? Thanks an regards!
  21. Thank you for your detailed answer!!! Is there a way to just change the url in the imagetag without changing the real filepath? Also for SEO reasons i would like to have it a bit like this: <img src="images/holiday/locations/newyork.jpg" />
  22. Ok, so to make the template path to "www.domain.com/tpl" i have to write something like: $config->urls->templates = "/tpl"; Is that right? Where do i have to insert this code? Concerning the imagepath, i know that i don't have to write the path on my own. But i want the img-tag to look like this: <img src="images/myimage.jpg" /> Is this possible? Many thanks and best regards!
  23. Yes! Hanna is exactly what i am looking for! The str_replace is also pretty cool! I think the default templating way don't work in this special case. Because i have a pretty long text that comes from a textarea an i want to add words in there. For example: everytime the word "ball" is mentioned i want to have a placeholder befor this word that adds the headline ("red" or "blue" or "yellow") field. So on the page the word is displayed as "red ball". Thank you!!!
  24. Hello once again! I wonder if i can change the path (or folder) to the image/file directory? So that the url of my uploaded image in the sourcecode is not the default "site/assets/files/1234/myimage.jpg" but something like ""myprettyshortpath/myimage.jpg". And how about the path to the template directory? Can i change this for example from the dafault "site/templates/styles/style.css" to "styles/style.css"? Many thanks and best regards!!!
  25. @horst: Thanks! Good to know. But when i want to update (because of bugfixes or new features) do i have to fear from uncompatibility to some older modules? What are your experience? @cstevensjr: Ok, but all the coding i do in PW is "echo" fields and some "for each" an "if". So i think that should be pretty save!? The question is, if PW is pretty save also?
×
×
  • Create New...