-
Posts
4,314 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
I love this one!!
-
Nice site Argen! Kerning on the Raleway font doesn't seem good though, I read OVER MU instead of OVER MIJ. I would give it some letter-spacing http://www.w3schools.com/cssref/playit.asp?filename=playcss_letter-spacing&preval=3px
-
it's great
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Does this help? http://processwire.com/talk/topic/1383-reciprocal-data/
-
Sorry Ryan, I understood how this works wrong.
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Why do you need that? can't you keep only the necessary info to build the array?
-
Two more things: Do you know the cheatsheet? It's an invaluable resourse, all these things are there http://processwire.com/api/cheatsheet/ Concerning your code, you can do the same like this: if(file_exists($latestNewsletter->filename)) { echo "<a href='{$latestNewsletter->url}'>text</a>"; } All depends on each one's style, and it's perfectly ok, but I think this one is cleaner.
-
I edited the previous answer, here goes again in case you didn't see $latestNewsletter->filename
-
What is $latestNewsletter exactly? edit: sorry, wrong informaton. try this instead: $latestNewsletter->filename
-
The url dosen't tell the server where the file is. You have to use path. Edit: I wasn't explicit. When I mean path, I'm talking about the path on the server. You can use $latestNewsletter->path, when $latestNewsletter refers to a file.
-
How bad can it be to sanitize all user input? It's a good habit anyway... And apparently, in CakePHP you also have to be aware of when the system is not protecting you http://stackoverflow...tion-in-cakephp
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
PW gives you the tools to prevent it, but it won't prevent it for you. Make sure you sanitize all user input http://processwire.com/api/variables/sanitizer/
- 9 replies
-
- sql
- injections
-
(and 1 more)
Tagged with:
-
Would be nice to have the number of people that are in the channel like on the ip.board chat, but I don't know if this module does that honestly...
-
As anyone used MooTools? I like jQuery but this looks very interesting: var Animal = new Class({ initialize: function(age){ this.age = age; } }); var Cat = new Class({ Extends: Animal, initialize: function(name, age){ this.parent(age); // calls initalize method of Animal class this.name = name; } }); var myCat = new Cat('Micia', 20); alert(myCat.name); // alerts 'Micia'. alert(myCat.age); // alerts 20.
-
Maybe the chat button on the forum could be replaced by the irc channel. See this http://community.invisionpower.com/files/file/4888-irc-chat-32/
-
Edit the old template, go to "advanced>alternate template file" and put the name of the new file there
-
Not tested, but you can put this the top of the template to test the domain $_SERVER['HTTP_HOST'] and serve a different template depending on it if($_SERVER['HTTP_HOST'] == m.domain.com) { // code for mobile }else{ // normal code }
-
Apeisa created a module for this kind of scenario http://modules.processwire.com/modules/multisite/
-
The links won't work without it. You would have only the homepage visible, and you also wouldn't be able to access the admin.
-
You have two options. 1. move all the files and the database to the server. You have instructions here http://processwire.com/talk/topic/27-moving-pw-between-staging-and-live-server/#entry63 2. create an installable copy of the website with the Site Profile Exporter module http://modules.processwire.com/modules/process-export-profile/
-
I agree that Scribus is not good for drawing, but what I mean is importing the SVG to Scribus and convert it to CMYK there.
-
Michel, you can do it with scribus. We should rime. A good tag would be "i admire processwire" Edit: one more, "processwire is on fire"
-
if($withThisCat->count() > 0) checks if the array of posts where the category page is present is not empty this is what happens: Find all categories and loop through them | | Design <-- are there more than 0 posts with this category? yes! -> print it | Development <-- are there more than 0 posts with this category? yes! -> print it | One more <-- are there more than 0 posts with this category? no! -> don't print it | Last one <-- are there more than 0 posts with this category? yes! -> print it | | Leave the loop.
-
This is a bit confusing because you have two pages called notes. Still, I will give it a try. Is this what you want? foreach ($pages->get("/category/")->children as $cat) { // find all pages with this category $withThisCat = $pages->get("/notes/")->find("note_category=$cat"); // if some pages have this category if($withThisCat->count() > 0){ // print the category link echo "<p><a href='{$cat->url}'>{$cat->title}</a></p>"; } } edit: added variables to make it more clear