Jump to content

bernhard

Members
  • Posts

    6,221
  • Joined

  • Last visited

  • Days Won

    308

Everything posted by bernhard

  1. hi bwakad, this thread could be interesting for you: https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/ is there a reason why you don't sanitize the password input here? i googled a little bit and found the link above with ryan's example code. he also didn't sanitize $input->post->password so that should be good but in the api docs it says: sorry for being a bit offtopic
  2. hi ivan, thanks for the link! i think you can achieve that with this module: https://processwire.com/talk/topic/1395-page-list-image-label/
  3. hi ivan, very good request! what about a showcase thread or sub-forum for backend modifications? i would also be interested in soma's video you were talking about. do you have a link for that please?
  4. you can get a free ssl certificate here: https://www.startssl.com/?app=1 i have no experience with them (not even with ssl), but a friend of mine has and is happy with it. https://worseg-concept.com/ has this certificate in use - at least i don't get a warning message with chrome...
  5. thank you all for your feedback! thank you teppo for clarifying the learning curve pwired, that's quite funny because i had to record the sound with my mobile phone and then put it all together afterwards because i'm on vacation in the mountains and nobody here had a headset to borrow that's why i also had to cut down quality of the videos... internet here is even slower than me talking english ^^ teppo, you're right! for some reason (can't remember why exactly right now) i had to put 3 files in the root directory of processwire: download.php, ortssuche.php and proxy.php and i forgot to put them in the geowire zip file (and the demo). now at least this part works fine and throws an ajax-request to google geocoding service. when you click on the result, it sets the marker to this location and centers the map. hehe. thank you. the intention was to build something similar to google maps but with your own maps and data (you can easyly setup your own mapserver (eg http://geoserver.org/)). for the time it is capable of the features you see in the demo like measuring distances, coordinate conversions, displaying different overlays over different basemaps and grouping them all together in one layertree. as i said above this was all static HTML/JS (ExtJS) and it would have been a pain to create and manage different map constellations! you would have had to copy+paste lots of code to lots of different files/places and if you had to change something "global" (eg support telephone number), you would have had to change it in every single map. because of that i switched it to processwire (and of course to try PW and learn it's concepts ) and it was really a breeze! so the benefit of processwire in that case is managing your maps (copying, adapting all by drag+drop and a few clicks) and extending functionality in a plug-in like way (either to put the code directly in the appropriate field in the pagetree or including a file with that code for global code snippets). of course that's a very specific field of use - but i thought for that very reason it could be interesting for some of the PW community ...you could use it for example for organisations like ambulance, firebrigade or military in case of any desaster. they could create custom maps of their missions, make them available over internet, secured via password or similar and share all the relevant data with all people involved (eg actual water levels in floods, avalance risk during winter and so on...
  6. hi guys, i'm happy to show you my first project realised with processwire and to say hi the first time here in the forum, although i have been reading, following, learning and liking around here for some weeks now the reason why i did not post any questions is quite simple: all answers for my questions have already been posted (and answered) in the forum/wiki/docs - really great! let me also say thanks to gebeer, who forced me to take a second look to processwire (coming from joomla/seblod and thinking processwire is not worth the effort of changing from a well known system - i was so wrong ^^) So what is "GeoWire"? (http://www.geowire.org) GeoWire is a web mapping tool for creating and sharing web-maps. It's a bit similar to google maps, but you can put your own maps (also all the google layers) and overlays into it and create your own functionality with javascript. First it was a "static" HTML/JS project but within the weeks of development gebeer told me about processwire. So in the end i had my HTML/JS web map viewer ready and thought how great it would be to manage all the code snippets directly on the server with processwire as GUI - you could easily copy your map collocations, drag and drop layers in the layer tree, drag&drop buttons in the toolbar and so on... 2 days later i had the first working prototype ready!!! PW is just wonderful, thank you Ryan+Team! Today i - finally - finished the video tutorials for GeoWire which i published as an open source web mapping tool. Oh man, that sounds so arrogant for me - i'm not a professional developer and i know it is far from perfect, but at least i wanted to give it a try . I would have also put it to GitHub, but i have no experience with it till now and so it was too complicated for me. I hope I am not violating PW by providing GeoWire for download on my website geowire.org? I don't even know if anybody is interested in geowire at all, but maybe it can at least serve as starting point for any other similar projects... any feedback is appreciated. Here is the demo: http://www.geowire.org/demo Maybe you're interested in the videos: The Backend: http://www.youtube.com/watch?v=8sgq8GPYDYo How it works: http://www.youtube.com/watch?v=vxMtAQsKESY How it works in short by an example: The mapPanelToolbar makes this out of that using that code snippet, /* ######################################## ######## mapPanelToolbar.js ######################################## */ Ext.onReady(function() { mapPanelToolbar = Ext.create('Ext.toolbar.Toolbar', { dock: 'top', items: [<?php foreach($page->children as $child) { if($child->include_file) { include('GeoWire/include/'.$child->include_file); echo ','; } echo $child->include_direct.','; } ?>] }); }); that is recursively loaded by the processwire template // create javascript app file from all included code snippets ob_start("makefile"); // include all children of current page foreach ($page->children as $child) { include_file($child); } ob_end_flush(); function makefile($buffer) { if(!wire('config')->dev) { include('GeoWire/JSMin.php'); $buffer = JSMin::minify($buffer); } // take first map if it is homepage $pageid = (wire('page')->id == 1) ? wire('page')->child->id : wire('page')->id; file_put_contents("GeoWire/app".$pageid.".js", $buffer); } happy processwiring and good night Edit: Do you think something like this would be possible or even better put into a module? I know my first version of geowire will soon be outdated as it uses PW2.4 as core, but for the time it was the best way to go and to be honest, i don't know when/if i have the time/motivation to develop this project in future...
×
×
  • Create New...