-
Posts
657 -
Joined
-
Last visited
-
Days Won
1
Everything posted by OrganizedFellow
-
Can I get some help with my terrible PHP logic? I am attempting to generate alternating CSS classes, even and odd. So I wrote this little function: function doAlt($n) { if ($n % 2) { echo('odd'); }else{ echo('even'); } } I figured how to output like this: for ($i = 0; $i <= 10; $i++) { echo doAlt($i).$i."<br>"; } Resulting HTML is this: even0 odd1 even2 odd3 even4 odd5 even6 odd7 even8 odd9 even10 So far, so good! Here is where I inserted it into my code: <section> <ul> <?php $blogpages = $pages->get("/blog/"); $children = $blogpages->children; $children->prepend($blogpages); foreach($children as $child) { // my function to print even or odd for alternating CSS classes for($i=0;$i<=10;$i++){ echo "<li>"; echo "<h3>{$child->title}</h3> \n"; echo doAlt($i).$i; echo "{$child->snippet} \n"; echo "</li> \n"; } } ?> </ul> </section> The resulting HTML is each blog entry repeating multiple times, in this case $i=<10, so ten times. I did it like that to see how it would print/echo out before I stuck it in my CSS. How can I give each entry a different CSS class?
-
Can I get some help with my terrible PHP logic? I am attempting to generate alternating CSS classes, even and odd. So I wrote this little function: function doAlt($n) { if ($n % 2) { echo('odd'); }else{ echo('even'); } } I figured how to output like this: for ($i = 0; $i <= 10; $i++) { echo doAlt($i).$i."<br>"; } Resulting HTML is this: even0 odd1 even2 odd3 even4 odd5 even6 odd7 even8 odd9 even10 So far, so good! Here is where I inserted it into my code: <section> <ul> <?php $blogpages = $pages->get("/blog/"); $children = $blogpages->children; $children->prepend($blogpages); foreach($children as $child) { // my function to print even or odd for alternating CSS classes for($i=0;$i<=10;$i++){ echo "<li>"; echo "<h3>{$child->title}</h3> \n"; echo doAlt($i).$i; echo "{$child->snippet} \n"; echo "</li> \n"; } } ?> </ul> </section> The resulting HTML is each blog entry repeating multiple times, in this case $i=<10, so ten times. I did it like that to see how it would print/echo out before I stuck it in my CSS. How can I give each entry a different CSS class?
-
Since Dropbox only syncs ONE folder (with its many subfolders). Does anyone use any file-sync utility to sync those folders with any path OUTSIDE of Dropbox (on Windows)? For example: My dropbox is here: C:/users/Dad/Dropbox/ But I want to sync the following with Dropbox: C:/www/testing/website.dev/
-
To give you some ideas, here is what I do. I append my site name to the end of every <title>, it helps with SEO, bookmarks, etc. OrganizedFellow.com To the left of that I prepend the category name, whether it be Blog/Article, Products, Contact Page, About, etc. Blog | OrganizedFellow.com To the left of that I prepend the title of the page itself. I took up jogging | Blog | OrganizedFellow.com Contact Me | organizedfellow.com Screws and Nails | Products | OrganizedFellow.com There is no ONE way. Feel free to do it how you like.
-
All projects, lists, tasks, etc. begin as handwritten notes. They end up in Trello. All collaboration between myself and client is done via Gmail. Google Calender for important dates. I used to have a very complicated process involving more apps (I cut back A LOT!) I use the username OrganizedFellow because I cope very well with my ADHD I use RescueTime to manage my productivity. When I reach 80%, I treat myself to a beer, lol
-
Now THAT'S ORGANIZED fellow!
-
ha, thanks Pete, but I'm sure it depends on the shit! As long as I know the subject matter, I can write up any analogy for it, lol.
-
For a number of decades, there was over 50% vehicle ownership of Ford automobiles. Were they the best? Nope, heck no, not by a long shot. Things changed at some point, and Chevy, Chrysler, AMG, and many others sprouted greater/better ideas. Muscle cars were born. Economy cars took reign. I'm not impressed with which sales are the highest, which has a higher user base, or which is wanted more *cough*iApple*cough*WordPress*cough* I am impressed when the underdog brings to the light the customization, the ingenuity, the talent, the speed ... that's impressive.
-
I came across this today https://www.openshift.com/blogs/4-reasons-paas-is-perfect-for-your-startup Now I am very interested in OpenShift.
-
I really like the way you advertise ProcessWire with the sticky logo. Very cool! On projects page, 3 of 4 posts contain screenshots. It kind of breaks the visual rhythm. I like the idea of the Table of Contents in each post. It makes reading long posts easy. Maybe bookmarkable URLs for tutorials or super long posts?
-
For fun, you should put in some Easter Egg after someone enters the Konami Code
-
I am accountable for 138 posts. You're welcome!
-
There's not much to learn. Well, for me, I have found it to be really quite easy to use and generate a quick layout.
-
what RSS web design/dev feeds do you follow?
OrganizedFellow replied to OrganizedFellow's topic in Pub
one word. FAWESOME! I used to be such a CMS whore back in the day. I was always on the search for the bigger better badder CMS to manage my/client websites. For many years, I was happy with ExpressionEngine (I used pMachine for a while, too), but I left it when I discovered ProcessWire last year. I will be using ProcessWire for many years to come. The fact that you chose ProcessWire over all the others CMSs that you've encountered speaks volumes about its strengths and adaptability. -
what RSS web design/dev feeds do you follow?
OrganizedFellow replied to OrganizedFellow's topic in Pub
I agree, I am really liking it also. Since I installed Tiny Tiny RSS and my friend recommended Feedly, I've used it all this week actually, hah! -
what RSS web design/dev feeds do you follow?
OrganizedFellow replied to OrganizedFellow's topic in Pub
ha yes, it was just a slip. I really wanted to just start over with my feeds. I have added it to my new collection. AH, Twitter, I had/have an account. I just may have to start another thread and get re-started on "Who To Follow" -
I used to be a long time user of Google Reader. Then sometime last year, I simply stopped using it. I stopped visiting the sites I relied on for so long for web dev and design news, tips/tricks, inspiration, etc. Now that Reader is dead, I decided to get back into RSS, so I downloaded/installed Tiny Tiny RSS. My question for you friends: what web design/development related blogs/feeds to you recommend? Of course I have some of the most popular ones: Noupe, CSS Tricks, Smashing Magazine. What else do you recommend? [Friend recommended Feedly, which I am really liking at the moment ]
-
Foundation4 by far been my favorite framework of choice. Sublime2 + Emmet plugin & Foundation4 = some pretty quick layouts.
-
Count me in as well. However it appears no one is commenting.
-
Upon launch, my SublimeText2 is very slow to load. Win7 64bit 4GB RAM. I've removed as many plugins (that I don't use) but loading times are around 15-20 seconds. Hopefully upgrading to version 3 takes care of that.
-
Here are some excellent GIT tutorials: GIT: 01. 02. http://git-scm.com/book 03. http://try.github.com/ 04. http://sixrevisions.com/resources/git-tutorials-beginners/ 05. http://overapi.com/git/
-
Using phpmyadmin: 1. mywebsite.com 2. go to mywebsite.com/phpmyadmin and select database and click export and click GO. DONE! Using php script: 1. mywebsite.com/securebackup DONE! NOTE: I've actually been using adminer (http://www.adminer.org/) instead of phpmyadmin. Super tiny script. Fast. Easy
-
Project Management for Developers: How you do it?
OrganizedFellow replied to Vineet Sawant's topic in Pub
That is what I have started to do locally. Anywhere I drive, I see a vehicle advertising some business. Sometimes they have a URL, sometimes not. I usually get a photo to remind myself later. I save the photo with some information to my Evernote account. I have over 40 photos in there right now, of local area businesses, address, phone numbers, etc. I have categorized most of those businesses into categories and plan on building several turnkey websites and sell them. Most are restaurants, landscaping, home maintenance & general repairs. When I lived in Fort Worth TX, I knew a fellow who was quite successful with this idea. He recently had some great luck with selling one for a bar/restaurant. Anytime he went out to eat, he took a few notes and implemented a new feature to the website. He spent a few months building it in his spare time. When it was ready, it was put online. Then he visited the bars and restaurants that did NOT have a website, and gave them the URL and his email address. It was a fun bidding war He didn't tell me exactly how much he made on that one sale, but did mention it was over $4,000. I was impressed! I agree with this. I'm not as good as my buddy in Fort Worth. I'm still learning PHP at a snails pace. My front-end skills are well rounded. I am having a tough time getting businesses around here to understand the value of advertising their business on the Internet. One gentleman was content with spending a few thousand dollars per year on print advertising. I can't understand his logic I do visit him from time to time, but he is a stubborn mule, lol. When in Fort Worth, I would regularly bill between $2,000-3,000 per site. Now I'm lucky to have someone agree to $1,000. It's quite a slap in the face I totally agree with totoff on this, don't tell others about the lower rates you've had to settle for. "Why are you charging me $2,000 when you charged him $1,000?" It's tough for customers/clients to understand they are paying for your experience, knowledge and skill set.