Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by pwired

  1. No .htaccess to make that work ?
  2. What is good practise for choosing the install location on the server ? Do you guys install processwire directly in /server/root/ or do you install in a subfolder /server/root/folder/ ? I usually install processwire in /server/root/folder/ so the processwire files and folders don't mix up with other files I keep in the root. I then put a .htaccess file in /server/root RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$ RewriteRule ^(/)?$ folder [L] But is this good practise ?
  3. Hi, Case study request: I need a processwire profile of a very simple webshop with only 1 page (home page) working with Apeisa's module for a webshop. The home page shows only 2 or 3 products vertically each with describing text, photo, name and price. The describing text needs to be in 3 languages so the language module is needed. On the top-right of the home page I need 3 little country flags where a visitor can click on to choose his language text. When you mouse click on a product photo or name, a second page comes up with a bigger photo of the product with more detailed text and the add to cart button. When the add to cart button is clicked a form comes up where the buyer can fill in his name, address, bank account, etc and email address. Mouse click on Send will the send the form to the sellers email address. Paypal or credit card is not needed here. What is important here is comments put with the code, css, etc. so I can study what the code and css is doing and so I can learn from it. As this is a Case Study request for me to learn from and not directly a job request I post this in the General Support channel, but maybe the moderators think differently about this. Anyone from inside this forum who wants to take on this request please let me know. I understand that making such a profile with explaining comments takes time and effort, and so I want to pay for this.
  4. That's what I am still struggling with. Having worked before with a lot of other cms'es and wysiwygets and then all of a sudden all the rules and walls fall away. You have to step over old thinking, habits and routines. There's also self coding and php that gets in what you need to learn.
  5. Not sure what you mean. I just put all my scripts inside /site/templates/scripts/
  6. In those cases where Tinymce doesn't work out: try ckeditor => http://modules.processwire.com/modules/inputfield-ckeditor/ or elRTE => http://elrte.org/
  7. http://foundation5.stonywebsites.co.uk/ Very nice work Joss.
  8. (mess up) Thanks Martijn. With all this I will certainly find out to make clickable buttons with sounds. (without the player) Can't wait until the week-end
  9. Thanks Radek, your code examples will give me something to work on.
  10. Thanks Radek, looks good on that site. How can you make the player invisible ?
  11. Thanks adrian, (shame on me that it's already there as a module) So I only have to make the player invisible and keep the sound audible.
  12. Hi Anything in processwire is a page and you can fill a field with text, image, or code, so I was thinking: is it possible to fill a field with a mp3 file and use it anywhere on your website ? Usage: A spoken info message (mp3) when a button is clicked. A sound when a button is clicked.
  13. I still have so much to learn
  14. Are you a member of the elite-coders club
  15. .styled-select{ background:rgba(256,256,256,0.7); } <select class="styled-select" onchange='window.location=$(this).val();'> doesn't work ! the letter combinations de and du are still not visible.
  16. Words fall short but big thanks Ryan.
  17. Helmut If you put this code in your template file: <select onchange='window.location=$(this).val();'> <?php foreach($languages as $language) { $selected = ''; // if this page isn't viewable (active) for the language, skip it if(!$page->viewable($language)) continue; // if language is current user's language, make it selected if($user->language->id == $language->id) $selected = " selected=selected"; // determine the "local" URL for this language $url = $page->localUrl($language); // output the option tag echo "<option$selected value='$url'>$language->title</option>"; } ?> </select> In the backend you can click on view page. Then you can easy click in the language selector on a letter combination de, du (deutsch, dutch) to change language of loaded text stored in a field. I have got that working now. The only thing is that only default is visible in the selector and de and du are invisible. Probably because de and du are in white color and the background is also in white color. So next step is to find out how to change the color of de and du not sure if that is the case. Or maybe I have to put a css background to the language selector.
  18. Can I put this code in head.inc ? <select onchange='window.location=$(this).val();'> <?php foreach($languages as $language) { $selected = ''; // if this page isn't viewable (active) for the language, skip it if(!$page->viewable($language)) continue; // if language is current user's language, make it selected if($user->language->id == $language->id) $selected = " selected=selected"; // determine the "local" URL for this language $url = $page->localUrl($language); // output the option tag echo "<option$selected value='$url'>$language->title</option>"; } ?> </select>
  19. Thanks Soma. Just went there and found this: As an alternative, lets say that you wanted a <select> box language switcher that showed the current language while enabling the user to select the page in another. Guess It's gonna be a busy week.
  20. How can I accomplish a simple language selector ? Like 3 little country flags (english, german, dutch) on top of each page. If a visitor clicks on a language flag, text changes into the chosen language. How would I link a language flag to the field that holds the text in that language ?
  21. Thanks for your reply Philipp So, When I go to home - Edit - Settings Then, under Name Any combination of letters (a-z), numbers (0-9), dashes or underscores (no spaces). Tabs, Default and de Under Tab de I enter de, and I see popping up: de/ I click on Save I guess this is what is meant by: Setup an URL for every language, e.g. en,de,ru,... . Looks like this: http://take.ms/34Tq5 However I don't see anything cryptic like http://take.ms/34Tq5
  22. I downloaded and installed version 2.4 this morning. What I noticed during install is: 1. enhanced default admin theme (more easy for the eyes) 2. you can now select 4 different color themes: classic - warm - modern - futura 3. http host names. You can enter different host names there e.g. http:// - www. - etc. This field is recommended but not required. You can set this later by editing the file /site/config.php (setting $config->httpHosts). But this is only at first glance, there are many more upgrades done. Version 2.4 is looking real good and has more modules in the core. The admin backend is a real pleasure to work with to build your websites with.
  23. Hi Philipp I have a problem with Step 5. Go to the root page (/) and look under "Settings" Setup an URL for every language, e.g. en,de,ru,... . Looks like this: http://take.ms/34Tq5 Home ?/.... What do you mean by the root page ? Do you mean the HOME page ? I went to the HOME page and looked for settings there: home edit settings Under Name I see there 2 Tabs: Default and de but I do not see there URL FOR EVERY LANGUAGE
  24. That's looking good. Did you do that by only changing css ?
  25. Ok step 1 and 2 in Philipps post were easy. After that I went back to Setup Languages Add New Any combination of letters (a-z), numbers (0-9), dashes or underscores (no spaces). I entered de (for deutsch) and clicked the Save button. Now under languages I have default and de If I click on de I see : Language Translation Files, Add files, json, zip Translate New File drag and drop files in here Save What are you supposed to do here ? Step4. from Philipps post I went to the body field and changed type from TextArea to TextAreaLanguagefield This message came up: Please note that changing the field type alters the database schema. If the new fieldtype is not compatible with the old, or if it contains a significantly different schema, it is possible for data loss to occur. As a result, you are advised to backup the database before completing a field type change. I checked Confirm field type change and clicked on Submit I went to a page that has a body field , Home, clicked on Edit, Under Body I see now 2 Tabs, Default and de This looks good. No time left for now, today my work starts at 10 - will try to find more time later on to continue.
×
×
  • Create New...