Jump to content

Troost

Members
  • Content Count

    45
  • Joined

  • Last visited

Community Reputation

14 Good

About Troost

  • Rank
    Jr. Member

Recent Profile Visitors

1,575 profile views
  1. Thanksssss BitPoet, thanks! I had to use the jQuery file indeed, thanks alot!!
  2. Hiya PW's! I'm currently busy with a simple portfolio theme for a girlfriend. She asked me for a lightbox, but it won't work out the way as I wanted it... (ofcourse) I'm using the Lightbox by Lokesh Dhakar https://lokeshdhakar.com/projects/lightbox2/ The structure is: Home - Portfolio -- Item 1 -- Item 2 -- Item 3 The page echoes the 'werk' field on the item page. Which is one single image. I rendered the next string for text in the PW field. <a href='{url}' data-lightbox='image' data-title='{title}'><img src='{url}' alt='{description}' class='masonry-content image' /> <div class='hover-text'>$project->title</div> </a> Here's my code <div class="row portgallery animated fadeInUp margdown100"> <div class="masonry-wrapper"> <div class="masonry"> <?php $projects = $portfolio->children("template=portfolioitem, sort=-created"); foreach ($projects as $project) { if ($project->werk) { echo "<div class='masonry-item animated fadeInUp'>"; echo "$project->werk"; echo "</div>"; } } ?> </div> <!-- /masonry --> </div> <!-- /masonry wrapper --> <script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.js"></script> The images opens in a new windows instead of the lightbox, since I've read the documentation of the Lightbox I can't find where im going wrong. Also the div hover-text ain't echoing out the $project->title Can someone help me out? The goal is to open the images from the home/portfolio page in the lightbox. So that they can navigate trough the images. Here is a link of the project https://tinyurl.com/yxhg9xvs Thanks in advance, Hugo
  3. Ok, very strange. Even when I uploaded it back on my own server I'd got the same problem. For the solution... What I did, I uploaded a fresh install of PW, installed it, and than replaced the database... Works for now... @netcarver @BitPoet
  4. @Netcarver Thanks, I can't find any 40X errors... @BitPoet I will have a look, as far as my knowledge goes, thanks!
  5. @BitPoet Thanks for your reaction, I added a screenshot below with the errors... I somehow assumed it would be there since the dropdowns also didn't work (like on the profilename on the right top corner)
  6. Hi folks, I'm currently busy with a very simple website for a friend. I made it on my own VPS and everything works great. Now moving to a clients server. I had to uncomment the following lines to prevent the 500 error. # Options -Indexes # Options +FollowSymLinks # Options +SymLinksifOwnerMatch In the .htaccess file and everything works fine... atleast I tought. I logged in, everything seems to be fine (see first screenshot) But then I want to Edit the page, and there it seems to be a little buggy... (see second screenshot). I tried to download and upload again, but that didn't work out either. I can't find the solution, can someone help me out? Thanks in advance!
  7. @kongondo Thanks for your response! You've really helped me out with the string on that line, when my project is finished, I will show it over here! And I'm glad I found a bug so I could help a bit with this module!
  8. @wbmnfktr Thanks for your clear response! I will keep those things in mind working down my roadmap. I'm about to reorganize and restructure my workflow, so these tips can help me out, thanks a lot!
  9. @teppo @LostKobrakai Thanks for your responses! Concluding both your responses I assume that working by trust and the terms and conditions is the best (and in my opinion the most likely) way to 'prevent' this of happening. I'm not planning on going that big where I need to work with server validating licenses. Considering my potential customers, this should not be a problem.
  10. Hiya! For example, lets say, I've designed a template and connected this to ProcessWire. I sell it to my client, 1 license for €XXX,-. How can I be sure the template isn't going to be installed 20 times for 20 of his other clients? Is this a case of trusting his on his blue eyes. Or is there like something I can put in the install.php that notificates me each time the installation is complete? I am wondering how you guys manage those things? Thanks in advance, cheers!
  11. Thanks Kongondo for this great offer! I'm currently experimenting with it, I came to the point where I want to change a little bit in the positioning of the blog. Like placing the Date underneath the post instead of above. But I can't find where I can change those settings? Also, the option to show like 200 words and than the text 'view more'. I want to translate this to dutch, but I can neither find this one hehehe. Can u help me out? (Dont know what about this, but when i go to PW admin > blog > settings > I can change whatever I want, but it won't safe. It keeps saying the same text which comes by the installation) I've tested this in Chrome and Safari, same problem. I' on ProcessWire 3.0.132 © 2019
  12. I'm getting the same problem, the Chmodd 777 on the Site folder works over here... I'm on ProcessWire 3.0.123 © 2019
  13. Hi Guys, I've just installed Matomo on my portfolio website to track some visits and the behavior. But it doesn't work. I have it installed this way... hostname.com hostname.com/matomo (this works with the dashboard etc) hostname.com which echos PW, but the thing is, the PW site structure works with site/templates/home.php This is the Matomo code which I placed in the header.php <!-- Matomo --> <script type="text/javascript"> var _paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//hostname.com/matomo/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> So I guess its in the var u="//hostname.com/matomo/"; I'd tried to place the map in the templates folder and link it by <?php echo $config->urls->templates?>matomo/ But that didn't work either. I'd also tried to put in the full url of the map in the var u, but it all didn't work out. Does someone have a solution to connect Matomo to PW? Thanks in advance
  14. Solved! Thanks to @MoritzLost <?php $project_index = $pages->get(1015); $projects = $project_index->children("template=projectdetail"); foreach ($projects as $project) { echo '<div class="col-md-4 col-sm-4 col-xs-6 fh5co-project animate-box">'; echo '<a href="' . $project->url() . '">'; echo '<img src="' . $project->projectthumb->url() . '" alt="' . $project->projectthumb->description() . '" class="img-responsive" >'; echo '<h3>' . $project->title() . '</h3>'; echo '</a>'; echo '</div>'; } ?>
  15. @MoritzLost Thanks again for your response. I've figured it out with your lines of code. I've set some variables in my header.php. The variable from your example was later on editted in my post. I forgot to change that indeed. <?php $header = $pages->get(1018); ?> <?php $home = $pages->get(1); ?> <?php $footer = $pages->get(1019); ?> The only thing now is to get the H3 working, the rest is fine, thanks again for your support man!! 🤩
×
×
  • Create New...