• Content Count

  • Joined

  • Last visited

Community Reputation

6 Neutral

About Hajosch

  • Rank

Profile Information

  • Gender
  • Location
  • Interests
    Anarchy, Nature, Literature
  1. Hajosch

    Hi OLSA, thanks. Also your solution to call the Comments css and js files is working fine - and the result looks good! I'm becoming more and more a real fan of ProcessWire and its helpful user community. Hajosch
  2. Hajosch

    Hello, Zeka, thank you, that was the right assumption. Being a PHP dilettante, I didn't know how to get the stylesheet for the comments module correctly. I finally tried the following code: <!-- Anfang Kommentar- und Page-Rating-Formular --> <link rel="stylesheet" href="/wire/modules/Fieldtype/FieldtypeComments/comments.css"> <?php echo $page->comments->renderAll(); ?> <!-- Ende Kommentar- und Page-Rating-Formular --> And now the star rating function works as it should (see screenshot in the attachment). Thank you and best greetings to Kiev! Hajosch
  3. Hajosch

    Hi encho and Zeka and everybody else who reads my posting. I have the same problem like encho: The comments function works well, but If you include custom code {stars}, stars are displayed but not correctly. It shows 5 star only regardless of the rating. I am using this code: <?php echo $page->comments->render(array( 'headline' => '<h3>Comments</h3>', 'commentHeader' => 'Posted by {cite} on {created}{stars}{votes}', 'dateFormat' => 'd.m.Y H:i:s', 'encoding' => 'UTF-8', 'admin' => false, // shows unapproved comments if true )); In the attached screenshot you can see the result. Does anyone have any idea how to get the Star Rating function to work correctly?
  4. Hello Soma and everyone else who helped me to solve my problem. SOMA: Thanks for your suggestion, which also works well and which I took as standard because of the shorter code. It's amazing how many different solutions Processwire has to offer. I've learned a lot. Thanks again to everyone and best regards Hajosh
  5. Wow. This is an incredible feedback and an amazingly friendly forum. I thank everyone who took the time to offer me a solution to my problem. I have now started with the first solution of teppo (the implode() method of the WireArray class), and it worked immediately. Thank you, thank you and thank you again! I will now have another thorough look at the other solutions proposed by Dragan, AndZyk and OLSA and then give you a feedback that may also help other users who stumble across the same problem. Thank you very much and have a nice day! Hajosch
  6. Hello everyone! I am an absolute ProcessWire novice and unfortunately I don't have too good PHP knowledge. Nevertheless, I have made good progress with the development of our ProcessWire website thanks to this helpful forum. But now I have a problem with the formatting of field queries, where I still haven't found a solution after 2 days of searching. I have a field "authors", which is created as type: PageReference / MultiplePages. I would now like to query all authors of this field who are saved for a single book title. This works well with the following query: <!-- Query of the authors --> <?php if (count($page->authors)) { echo "<u>AUTOR/EN</u>:&nbsp"; foreach($page->authors as $authors) { echo "<a href='{$authors->url}'>{$authors->title}</a>;&nbsp"; } } ?> Starting with the first author, each of the following authors is inserted a semicolon to separate the names of the individual authors. That works correctly. But I would like to have a dot after the last author, not a semicolon. So I want to get a result like this: Author-1; Author-2; Author-3. In the meantime I found out on this forum that the command 'implode' can be used for this. But I simply can't implement this solution in my specific case due to lack of PHP knowledge and I haven't found any patterns that I can use for my type of field query. So I would be very grateful for support. Where do I have to insert the command 'implode' with which additional parameters in my code? It would be great if someone could help me by showing me how to change the code of my previous field query. Thank you and best regards Hajosch, Potsdam/Germany