-
Posts
2,318 -
Joined
-
Last visited
-
Days Won
2
Everything posted by pwired
-
Does anyone know why the skeleton grid was chosen for the processwire blog profile ?
-
Hi Mosravo and welcome, Processwire is different from other cms'es in that it gives you all the freedom to do whatever you want. That can be a bit confusing in the beginning. Have a walk through here: https://processwire.com/talk/topic/4173-grouped-forum-posts-links-articles-tutorials-code-snippets/
-
Setup a ProcessWire environment on a fresh MacOS X install
pwired replied to Martijn Geerts's topic in Tutorials
dyndns charges 25 € per year for managing 30 ip's. They are reliable and think it´s a good deal. Many IP-Cams I installed come standard with dyndns setup, another reason to go for dyndns. -
Hi Raymond, what you write makes a lot of sense, thanks. I have to play around more with skeleton to work it out.
-
Hi, I am setting up a blog with Ryan's blog profile and am digging the skeleton framework. Some confusion here. On the skeleton grid example it shows 12 columns, http://www.getskeleton.com/#grid but if you click underneath on the code example link it shows 16 columns <!-- Give column value in word form (one, two..., twelve) --> <div class="sixteen columns"> <h1>Full Width Column</h1> </div> Looks like skeleton is a 16 columns grid and not 12 as shown in the example. Also can someone tell me in easy words what they mean with alpha and omega in skeleton ?
-
No broken link here, page opens normally.
-
Hi, I installed latest processwire blog and have multilanguage working. Now I want to have 2 language flags pictures right next to the site title in the top. The language flag pictures should link to home/en/ and home/es/ I also need a logo to show up left from the site title. I looked inside /site/templates/main.inc and found there the output for site title and site Tagline. It is here where I have to insert code to have the language flag pictures to show up: <div id="site-headline" class="twelve columns alpha"> <?php echo "<a href='{$config->urls->root}'><h1>{$homepage->headline}</h1></a>"; ?> <?php if($homepage->summary) echo "<h5>{$homepage->summary}</h5>"; ?> </div> <div id="site-search" class="four columns omega"> <?php $searchPage = wire('pages')->get('template=search'); $searchQuery = htmlentities(wire('input')->whitelist('q'), ENT_QUOTES, "UTF-8"); ?> <form id='site-search-form' class='clearfix' action='<?php echo $searchPage->url; ?>' method='get'> <input type='text' name='q' value='<?php echo $searchQuery; ?>' placeholder='<?php echo $searchPage->title; ?>'> </form> </div> No matter what I tried to enter <a href="link to home/en/"><img src="flag.jpg" alt="bla" width="x" height="y"></a> before, after or inside: <?php echo "<a href='{$config->urls->root}'><h1>{$homepage->headline}</h1></a>"; ?> I just don´t get it right for the language flag pictures show up right next to the site title. The language picture flags just stay either on top or on the bottom but not right next to the site title as I showed in the example snapshot above. Where exactly do I have to insert <a href="link to home/en/"><img src="flag.jpg" alt="blabla" width="x" height="y"></a> I saw that processwire blog works with the skeleton css grid and I am unfamiliar with it but maybe the trick is to use another omega or alpha that is part of the skeleton grid ?
-
Old school PHP, say what ? Then why is PHP powering so much of the internet? http://www.phphosts.org/blog/overview-of-the-php-programming-language/ quote: Modern versions of PHP are object oriented just as modern versions of C/C++ are. In fact, PHPs relationship with the C programming language is so close now that it is possible for developers to write extensions in C to add additional functionality to the PHP language. Edit: How many node.js programmers are wanted compared to php programmers
-
Will single pw members get special vip access to your dating site ?
-
Hi, Something to share. I always wondered how those cool sites made it work with 2 different background pictures, one on the left and a second one on the right side of their webshop. It´s a cool way to show new products, slogans, or eyecatchers. I found this code working for me: background-image: url(../image/bg_left.jpg), url(../image/bg_right.jpg); background-repeat: no-repeat; background-position: left top, right top; background-attachment: fixed; I found all the good code here where you can even see more examples to use more than 2 pictures on different background positions: http://www.css3.info/preview/multiple-backgrounds/ Have fun.
-
This subject is already been discussed so many times before and still has repeat = on. Don´t try to bring pw to the level where you want to use it. Instead bring your self to the level of pw and do what you want. Processwire is designed that way and maybe Ryan should put that somewhere clear during a pw install to set repeat = off.
-
Processwire and mvc https://processwire.com/talk/topic/4892-an-almost-mvc-approach-to-using-templates/ https://github.com/fixate/pw-mvc-boilerplate/blob/master/README.md In that case you really should not do a project like that alone. http://www.getsymphony.com/discuss/thread/79645/
-
Imagine what would happen if PW should change into an out of the box cms with shiny templates, plug and play, 1 click add-on's, etc. etc. Everything would start to degrade right away even the forum. The inner architecture of pw is one of the clear reasons why this forum is filled with talented coders, people who know what they are doing and people who want to learn. A great side effect of working with pw and being on this forum is that it pushes less talented coders to upgrade their coding skills. This is many times the preferred way. If people need shiny templates, banners, slideshows or other things then tutorials on how to do this with pw would be the best way I think.
-
Processwire: used by people who were looking for something better and used by talented coders who recognized pw´s internal core. Processwire is chosen and not followed. For some hard to swallow.
-
Hi I am about to make 7 to 8 landing pages for each having it´s own domain without further any webpages, so just the landing pages. I don´t want to setup 8 servers and 8 pw installations. Apeisa made a multisite module to do this with only 1 pw installation/database. Question: I was wondering does such a multi site setup have any influence on seo for each of the landing pages ? Does this also work with web redirect from landing page domain to the domain of the host where this processwire is installed ? In Apeisa´s multisite module settings it says: IMPORTANT: create homepage for each of these domains right on the root. Name should be exactly same as the domain you use here. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Creating a homepage for each of these domains right on the root means right under HOME inside processwire doesn´t it ? Because I can not go any higher as HOME in processwire. The home pages I enter there show up in the top menu bar of processwire. I don´t think that is as it should be ? ===================================================== Also during a processwire installation following comes along: HTTP Host Names What host names will this installation run on now and in the future? Please enter one host per line. You may also choose to leave this blank to auto-detect on each request, but we recommend using this whitelist for the best security in production environments. This field is recommended but not required. You can set this later by editing the file /site/config.php (setting $config->httpHosts). ----------------------------------------------------------------------- Do I have to enter here something special for my case ?
-
Hi, An easy way to embed youtube video clips is in TinyMCE or CKEditor, go to source and then put there an iframe like this: <iframe width="220" height="157" src="//www.youtube.com/embed/vLDJLVM4eOA" frameborder="0" allowfullscreen></iframe> It works but my questions is, is this safe to do or is this opening doors to bad guys injecting code ?
-
: https://processwire.com/talk/topic/1284-best-practice-for-staging-to-live-database-synchronization/ http://www.sitepoint.com/one-click-app-deployment-server-side-git-hooks/ https://github.com/netcarver/new-git-deployment https://processwire.com/talk/topic/5417-using-git-with-a-cms-for-version-control-and-deployment-on-multiple-machines/#entry53567 (I also use heidi-sql portable with great success)
-
Yup this has been discussed a lot in the forum, just look for it. Not easy to accomplish because as you said online database changes all the time. If you find anything interesting, please post back as this is something wanted by many of us.
-
https://processwire.com/talk/topic/2505-templates-structure-functions-best-practices/ https://processwire.com/talk/topic/1139-some-generalbest-practices-questions/ https://processwire.com/talk/topic/4507-pw-best-practices-application-structure-form-handling/ https://processwire.com/talk/topic/740-a-different-way-of-using-templates-delegate-approach/
-
Thanks Matthew for sharing this wake-up call. Even Servint does not match with shiny coding shoes. Six things here: 1. I am sure Servint has it somewhere in it's small letters that they can not be hold responsible for it's clients (read your) financial, business and good name damage if Servint services fail. 2. We have to be sure we have this also somewhere in our small letters with our clients. 3. I re-edited following post. Instead of waiting for dns propagation, use url forwarding! It works instantly and visitors won't even see the new host url if configured properly. https://processwire.com/talk/topic/6792-servint-major-fail/#entry66411 4. Remember this post ? I re-edited the post away because it was not considered an option and even a dangerous thing to do. But now in this case new light is shining upon it. (See also point 5.) This was my post before I re-edited it away: Why not subscribe for a 100/50 Mb glassfibre internet connection and use a fanless zero maintenance computer as a server and then have home managed service with remote access. 5. And then Davo came up with his post: https://processwire.com/talk/topic/6792-servint-major-fail/#entry66466 6. Monday morning I am going to have a word with someone how to setup point 4 and 5 to have a fall back for the time a host fails. We simply can use the internet connection we already have.
-
Thanks Pete for posting back on this. I removed 777 and re-edited point 10 in the list.
-
Thanks for sharing this with added comments to learn from. It will help me to make my own "count down to event" module.
-
about point 10 in my list, post what would be better than 777 and I upgrade my list. Very good, I like it. There is also that you can move important files and directories one level above your site root on the server so the bad guys will have a much harder time to access it. Edited and added this to the list in point 14.
-
@Teppo: I think the points you mentioned there are a good guide to use with a review process. You are right about that. I think that for the rest of my post I correctly referred to lazy webmasters, and not to processwire. Reducing hacks and exploits is not only about getting your code right, but significantly also about webmasters doing their job right at the root.
-
For processwire: what about a review process for approving new modules ? Or a module that scans for vulnerabilities and inform when it finds vulnarable code ? ============================================= It is not just the number of available plugins going around but certainly also about lazy webmasters. There is a lot that webmasters can do to reduce hacks and plugin exploits 1. Change a default table prefix into something like bhsug479_ and it will make sql injection less easy. 2. prevent script injection, and unwanted modification of _request and or globals: # protect from sql injection Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) RewriteRule ^(.*)$ index.php [F,L] 3. Reduce ip access to the admin to a static ip or a limited ip range # deny access to admin order deny,allow allow from xx.xx.xx.xx # static IP or limited IP range deny from all 4. Limit Access to important directories Order deny,allow Deny from all <Files ~ “.(xml|css|jpeg|png|gif|js)$”> Allow from all </Files> 5. Protect config.php files # protect config.php <files config.php> Order deny,allow Deny from all </files> 6. # disable directory browsing Options All -Indexes use empty index.html files Hide a plugin folder with an empty index.html 7. # protect your .htacces files <Files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all satisfy all </Files> 8. Prevent the admin section from being indexed. 9. Set a .htaccess password on the admin directory 10. Choose safe chmod permissions depending on the user-id of the running server and your hosting type. http://phpsec.org/projects/guide/ 11. Change the admin url into something cryptic and prevent it from being site browsable 12. Create a new administrator account with a name that is hard to guess Then delete the default administrator account 13. Restrict the number of failed logins in a limited time window. Do not echo wrong login error messages as this is feedback to a hacker 14. Move important files and directories one level above your site root on the server.