Jump to content

danielholanda

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by danielholanda

  1. Thank you for the replies! What do you mean with "create with the same collation". I do not understand collation in this context.
  2. I did a big beginner mistake. I've deleted MAMP PRO to use XAMPP and in the process of the uninstalation of MAMP PRO I deleted all my databases... Fortunately my projects are already live so I have a working copy on the FTP of my client. I would like to have all this data as it is online so it works local on my computer. This is working with a processwire CMS, the url is http://www.fem-k.com/ if in need... Please let me know how to solve this problem so I can go on playing with processwire on my computer. Thank you very much!!!
  3. Exact! Its exactly was I was searching for!!!! the client will only have to insert "mailto:" which isn't a great drama!
  4. Thanks for the answer... I see that if you use TinyMCE you can edit directly in the text box. My client isn't the biggest genius with that and would like to avoid her placing codes herself. If I have this text for the contact field: Rozenstraat 158hs Postbus 15372 1001 MJ Amsterdam t: +31 (0)20 77 24 258 e: info@provisionevents.nl w: www.provisionevents.nl Can I place it as an email field? Will this detect the emails inside the text? I suppose not... If I placed TinyMCE she would have to write this herself for example, right?: Rozenstraat 158hs Postbus 15372 1001 MJ Amsterdam t: +31 (0)20 77 24 258 e: <a href="mailto:info@provisionevents.nl">info@provisionevents.nl</a> w: www.provisionevents.nl
  5. Hello everybody! I've actually created already a web that works perfectly with processwire. There only some dumb questions which I do not figure out by myself. This is one of them... I have a field called "contact" where obviously the client will insert her contact details. The client wants that if she inserts and email it will be a hyperlink. She doesn't need a form or anything too fancy. She would be ok with a mailto applied to it. The field is in this moment applied as a textarea. The details she has "Newlines to XHTML Line Breaks" applied. Is there a special way so I can apple a simple html link with a hyperlink with mailto bla bla bla. I would like the most simple workout as possible. Really thanks!!! Once this is finished and some other details I will show to the team!
  6. Hello, Very simple question. PW lets you add the title field which will appear in the title tab once the web is open. I would like to insert an image/icon on the left side as many other webs. Is there a way to place this via CMS or should I hardcode it? Please let me know how I can do this. Thank you very much!
  7. thank you for the answer, I will check out this method of uploading directly. Should I erase the actual installation? If so, is there a special way or I just delete with FTP? Thank you very much for the help!
  8. I used the new module profile exporter. I love the idea! I followed the instructions correctly and detailed. I used processwire 2.1 to design and link the front end with the back end. All this was done with MAMP, it worked perfectly. So once I put it in the hosting I had to install processwire 2.2 as the instructions say. After this I just viewed it online and some things did not work visually. Some mistakes may be because of the hosting server, and other issues I dont know, and thats why I ask as maybe somebody had the same issue. These are some problems: 1. Random background image "home": I have a random image which is covering the whole home background. I'm using a javascript which selects an image from an array randomly. These images have the url assigned correctly as it works in my MAMP server with processwire. I do not know why this javascript wouldnt work. 2. PHP form: I have a php form which has its own url also. It gave me problems as I discovered it only works if its out of the folder of templates. Now it just does not work... 3. Extremely slow: I dont know if this is processwire, but maybe you can help me to know what could I do to solve this. 4. Shockwave crashes: I use soundcloud for the songs which are uploaded. So the widget is created with flash. I dont understand why it would crash, it only crashes when its online and not in the MAMP server. If you need to see the source and it helps this is the website at this moment: http://www.fem-k.com/ Thank you very much everybody, without you this wouldn't be possible! Dani
  9. thank you, already sending them an email. They always take some time. So... is it really not recommended to install with mod_rewrite not enabled? Should I wait? I have the client knocking the door for the website to be online today... maybe I have to wait until Monday...
  10. Hello, thanks!!! I'm first trying out with the site profile exporter module. Lets see if that works. I followed all the steps and once I'm installing the new processwire into my online hosting I get this alert before installation: Apache mod_rewrite does not appear to be installed and is required by ProcessWire. The hosting is of a client of mine. How can I install this before the installation? As its the hosting I have no idea how I should do this. Please let me know, thank you!
  11. Quick question! I have everything prepared. I created the web locally with my MAMP. So I have a web working perfectly with CMS processwire, locally. I want to upload this to a hosting server. I suppose I have to install again processwire in this server, or not?. UPloading all these files via FTP to the online server will be enough? Or if I upload via FTP all my files I will still have to create all the fileds again in the online hosting? Or will thee settings be automatic? Pleas let me know what I would have to do? Thank you very much! Dani
  12. Hey I've been trying and I read the documentation but I still dont understand it 100%... I undesrtand that the code you've uploaded me is the play with the url of processwire and activate any page which is in the tree of my template and activate the picture uploaded in that page. I hope this makes sense... otherwise I'm very lost hehe. The code in comment is the code which is selecting the way to display video or photos depending of its content. The problem as I said is that I want the client to be able to add a new gallery of pictures/videos and this then to be displayed in a row under. This is the code I have in this moment and the page I created but I don;t get any effect. Could you please guide me? <?php /* foreach($page->photo as $image) { $description = $image->description; $img = $image->url; $thumb = "<img src='{$image->getThumb('thumbnail')}' width='50' height='50' alt='DJFemke photo/video'>"; if(strpos($description, '@') !== false) { list($description, $link) = explode('@', $description); } else { $link = ''; } if($link) $out = "<div class='single'><a href='$link' rel='prettyPhoto[gal1]' title='$description'>$thumb</a></div>"; if(!$link) $out = "<div class='single'><a href='$img' rel='prettyPhoto[gal1]' title='$description'>$thumb</a></div>"; echo $out; } */ foreach ($page->children as $child){ foreach($child->images as $image){ $img = $image->url; $description = $image->description; $thumb = "<img src='{$image->getThumb('thumbnail')}' width='50' height='50' alt='DJFemke photo/video'>"; if(strpos($description, '@') !== false) { list($description, $link) = explode('@', $description); } else { $link = ''; } if($link) $out = "<div class='single'><a href='$link' rel='gallery_name' title='$description'>$thumb</a></div>"; if(!$link) $out = "<div class='single'><a href='$img' rel='gallery_name' title='$description'>$thumb</a></div>"; echo $out; } } ?> Under is the image of what I have displayed in the front end with the code thats is within comments in the code above. The effect I wish is that if the clients requieres to add a new gallery of pictures/video it will appear in a row under. This is done with CSS of course, but I need to make a CSS property which will create a div with these properties. I also put a picture of where the new page I created "party1" is. I hope it helps. How should I proceed? Really thanks guys... If I have this done, processwire is done for this website... After I will go on with processwire because it has a lot of potential. I think I understand it but I miss the last part...
  13. I write here to let you know I found an answer to my problem so if anybody has something similar look here. First of all you don't need to add any prefix inside a path inside a php created by you. It works as the path written by you. So adding {$config->urls->templates}. before the path doesnt make any difference. My problem was the following... I learnt that a php process cannot occur inside the templates folder. Basically what you need to do is to put the folder with the process, so in my case folder _php containing all the relevant data, outside this folder. For example as I did inside /site/. Redirect the path and everything should work. Dani P.D. Really thanks to everybody who helped. Especially the cheatsheet you sent. All that is very valuable data.
  14. Hello Pete, You were 100% right. It seems no PHP scripts can run inside processwire. If you put the file in /site/ it will work. Thank you very much!
  15. Hello, I have a form in my html which sends an email with this result. This works perfectly on my html/css... but the moment I use this with processwire I get the following screen with: Forbidden You don't have permission to access /djfemke/_cms_processwire/site/templates/_php/form-to-email.php on this server. So I thought... maybe there are some permissions which I have activated or something like that. This form after goes to a file which manages the form. This is inside my url structure as you can see in the picture. Do you have any idea how to change this to make it work? Under you have the url structure and my code of my form just in case. REALLY THANK YOU : <form name="form1" action="<?php echo $config->urls->templates?>_php/form-to-email.php" method="post"> <div id="form_box" class="gradient"> <div id="center_box"> <h3>WANT TO BOOK ME?</h3> <div id="form_data"> <table> <tr> <td><input type="text" value="Company name" class="gradient" name="company" /></td> <td class="tdright"><input type="text" value="Name" class="gradient" name="name" /></td> </tr> <tr> <td><input type="text" value="Telephone" class="gradient" name="telephone" /></td> <td class="tdright"><input type="text" value="Email" class="gradient" name="email" /></td> </tr> <tr> <td> <input type="text" id="dateField" /> </td> </tr> </table> </div>
  16. Maybe it helps but I just observed that at the begginingn of the html I have this code to initialize calendar: <?php require_once('_php/calendar/classes/tc_calendar.php'); ?> I;ve tried to put {$config->urls->templates} in all cases and it still does not work correctly. Therefore there are three url inside a php which are giving me problems. I thought that I didnt had to do anything with the url as its inside the php I dont need to redirect it with {$config->urls->templates}. i really dont know how to follow up... Thanks if somebody can help me.
  17. Hello, Yes you guys were assuming correctly. I had the textarea without tinyMCE. Thank you the new module works smoothly. Regarding the post of Sinnut. I have to begin asking these questions and learning via forums. This is how I learn any other program. At the begginng there are a lot of things to learn so you are forced to ask a lot of small details. Knowing this I learn everytime a bit more so I can also help others in a future. I think this is normal. For example this post is already converted into a manual, next time somebody has this same problem they will find this post. Which documentation should I read to have known this answer to this question for example? I'm open to suggestions or kind of bibles I need to know. I like a lot processwire. Greetings, Dani
  18. Hello Teppo and Apeisa, Yes, the calendar I'm using is not part of processwire. I have this file in the inner html (I dont know how you call this honestly) so I will place a picture of my path. I already tried the code you told me: <td> <?php $myCalendar = new tc_calendar("date3", true, false); $myCalendar->setIcon("{$config->urls->templates}_php/calendar/images/iconCalendar.png"); $myCalendar->setPath("{$config->urls->templates}_php/calendar/"); $myCalendar->setYearInterval(2012, 2022); $myCalendar->dateAllow('2012-08-30', '2022-08-31'); $myCalendar->setDateFormat('j F Y'); $myCalendar->writeScript(); ?> </td> I will upload two pictures. One with the result I have once I put this code and the desired effect. Form.calender is how I have it working with the same path on my html/css. Form.code is the result after placing your code+ I will upload two pictures. One with the result I have once I put this code and the desired effect. Form.calender is how I have it working with the same path on my html/css. Form.code is the result after placing the same code into the CMS and placing the code above. I just dont understand why it doesnt work if on my html/css and seen with MAMP its perfect and once applying it into processwire it doesnt work. Its a php file which has nothing to do with processwire... Really, thank you for the help!
  19. I have this form in my html which works perfectly locally. Once I had this as a template my form doesnt work well. This has a calendar button available and here is the problem. I already had this php applied: <?php $myCalendar = new tc_calendar("date3", true, false); $myCalendar->setIcon("_php/calendar/images/iconCalendar.png"); $myCalendar->setPath("_php/calendar/"); $myCalendar->setYearInterval(2012, 2022); $myCalendar->dateAllow('2012-08-30', '2022-08-31'); $myCalendar->setDateFormat('j F Y'); $myCalendar->writeScript(); ?> This means that I would have to paste this code which I have applied to any inner url I have in the html such as this example: <input type="image" src="<?php echo $config->urls->templates?>_img/submit_button.png" id="input_img" name="submit" /> I've tried inserting only echo $config->urls->templates?. This way: <?php $myCalendar = new tc_calendar("date3", true, false); $myCalendar->setIcon("$config->urls->templates_php/calendar/images/iconCalendar.png"); $myCalendar->setPath("$config->urls->templates_php/calendar/"); $myCalendar->setYearInterval(2012, 2022); $myCalendar->dateAllow('2012-08-30', '2022-08-31'); $myCalendar->setDateFormat('j F Y'); $myCalendar->writeScript(); ?> If I wanted the url to work how should I do it with processwire?
  20. Well, I thought there could be a solution as such... but I wouldnt like to say to the client she needs to write <br> to make a paragraph separation. I would like she is free to create paragraphs pressing the usual ENTER keyboard. This should be easy to create. I dont know if I explained myself correctly. With processwire you can create text fields. This is to give the service via CMS to write text in it. The client would like a text as this for example: Maecenas venenatis pellentesque luctus. Vestibulum nunc dolor, cursus in tempor quis, aliquet at massa. Vivamus varius dapibus egestas. Maecenas nec suscipit sapien. Nam et nibh velit. Aliquam semper dui eu ipsum tristique mollis. Integer et nibh eu magna iaculis adipiscing nec eu odio. Nullam pulvinar viverra gravida. Curabitur id vehicula diam. Maecenas consectetur aliquet quam sit amet dictum. Duis molestie vestibulum turpis at varius. Curabitur sodales laoreet dui egestas rhoncus. Cras elit risus, ullamcorper et vulputate vitae, placerat vitae purus. Cras at posuere risus. Morbi consequat eleifend libero vel ultricies. Morbi venenatis mattis arcu, et sagittis massa posuere a. Maecenas neque odio, hendrerit sit amet v Clients can be quite picky with what they want. Most surely she wants to display the text look like this. So I would like that when the client writes text in the textfield it displays exactly what they have written. I put an image of the field I mean, as the chines say... better one image than 1000 words. open to solutions
  21. I found this problem which I dont know how to solve. I created a field which is a textarea. The client will place her information inside and that will be echoed into the web. Simple and clear. The only thing is that the client has long text so he will create paragraphs. In the box of the textarea in the CMS PW you can create text and with the keyboard ENTER you can make paragraphs. Once saved it still remains with paragraph format as the spaces are respected in processwire. But... In the web you only see one block of text. What method has to be done so the client can create spaces between the text? Thanks Dani
  22. Hello again Ryan, First, thanks for the support. The code is a bit longer and for sure it can be done a bit nicer, nice try! The issue with your code is that it works with video but not with the images. The images path is not working. That why in my code I did the following: Insert variable $img: [color=#000000]$img [/color][color=#666600]=[/color][color=#000000] $image[/color][color=#666600]->[/color][color=#000000]url[/color][color=#666600];[/color] Give to options, one if it video and one if its a photo [color=#000088][font=monospace][size=2][background=rgb(248, 248, 248)]if[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)]([/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)]$link[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)])[/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)] $out [/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)]=[/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)] [/background][/size][/font][/color][color=#008800][font=monospace][size=2][background=rgb(248, 248, 248)]"<div class='single'><a href='$link' rel='prettyPhoto[gal1]' title='$description'>$thumb</a></div>"[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)];[/background][/size][/font][/color][color=#282828][font=monospace][size=2][background=rgb(248, 248, 248)] [/background][/size][/font][/color][color=#000088][font=monospace][size=2][background=rgb(248, 248, 248)]if[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)](![/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)]$link[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)])[/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)] $out [/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)]=[/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)] [/background][/size][/font][/color][color=#008800][font=monospace][size=2][background=rgb(248, 248, 248)]"<div class='single'><a href='$img' rel='prettyPhoto[gal1]' title='$description'>$thumb</a></div>"[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)];[/background][/size][/font][/color][color=#282828][font=monospace][size=2][background=rgb(248, 248, 248)] [/background][/size][/font][/color][color=#000000][font=monospace][size=2][background=rgb(248, 248, 248)]echo $out[/background][/size][/font][/color][color=#666600][font=monospace][size=2][background=rgb(248, 248, 248)];[/background][/size][/font][/color] I also find my code a bit not elegant. I was asking for a code which has the two possibilities, if a video or if a picture and displayed in a more elegant way. If you have any suggestions please let me know. Thanks
  23. Thanks for the clarification. With this info I can follow on. random_images was the field name I had placed. My file works but this is another way which it also works. Quite interesting this processwire... Ryan, I'm a beginner in all fields so I have one question. What kind of language is all what you have written in this code? i understand this is how processwire works but... is it php, javascript... I dont know how to call this. How can you get more documentation of this language?! This way I can get a bit better.
  24. Hello, I've really tried to understand it but I'm still a beginner... It seems very easy what you want me to do but its not working. I have already created a field of image in the field called random_images. Here I have 3 images which I would like them to randomize. You want me to apply the background+random with the code that is in the default template of processwire and after apply the cover via CSS. What am I doing wrong? This is the exact code I was trying by observing head.inc from the original template: <?php if(count($random_images->images)) { $image = $random_images->images->getRandom(); echo "style='background: url({$image->url});'"; } ?> This is my last code I tried: <div id="home" class="item" <?php if(count($random_images->images)) { $image = $random_images->images->getRandom(); echo "style='background: url({$image->url});'"; } ?>> <a name="home"></a> <div class="content" id="content_home"> <nav id="nav_home"> <ul> <li><a href="#home" class="panel">HOME</a></li> <li><a href="#about_me" class="panel">ABOUT ME</a></li> <li><a href="#booking" class="panel">BOOKING</a></li> <li><a href="#photo_video" class="panel">PHOTO\VIDEO</a></li> <li><a href="#music" class="panel">MUSIC</a></li> <li><a href="#contact" class="panel">CONTACT</a></li> </ul> </nav> <div id="home_intro"> <p><?php echo $page->introduction_text; ?></p> <a href="#about_me">Read more >></a> </div> <div id="news"> <a href="">NEWS</a> <p><?php echo $page->news_text; ?></p> </div> <aside id="social_home"> <a href=""><img src="<?php echo $config->urls->templates?>_img/social_butt/twitter.jpg" alt="" /></a><a href="" class="right"><img src="<?php echo $config->urls->templates?>_img/social_butt/facebook.jpg" alt="" /></a><a href="" class="right"><img src="<?php echo $config->urls->templates?>_img/social_butt/email.jpg" alt="" /></a> </aside> <address> <p><a href="">Buro</a></p> <p><a href="">Dani</a></p> </address> </div> </div>
×
×
  • Create New...