« first day (1376 days earlier)      last day (3557 days later) » 

12:00 AM
@MichaelEcklund Yes
 
@StephenHarris I've sold SEO as a service when I was consulting with a former partner. I leveraged my experience gained with my own affiliate marketing, contextual ad sites to form a partnership that offered SEO to small to medium businesses, the occasional bigger client too. F**king hated it. I love SEO, well conversion optimization actually, but not when doing it as a "j.o.b". There were so many downsides to it don't know where to begin.
 
 
5 hours later…
5:17 AM
anyone online?
 
depends
 
 
2 hours later…
6:58 AM
kinda
 
@userabuser Like "Why am I not on the front page of Google?"? :)
 
7:45 AM
@StephenHarris on a good day you'd get that :)... on other days "why did my position slip from 8 to 9, omg I'm freaking out, I'm going to have a nervous breakdown, what have you bastards done don't you know my life depends on Google"
I still cringe thinking about that work...
 
I am currently doing a monthly stats of our Google rankings, which are reported to upper management, imagine the fun I am having.
Especially if Google is updating their search algorithms (PANDA)
 
Google Panda, Chimpanzee, Neanderthal... etc etc.
 
8:12 AM
@mebu83 that sounds very fun :) (no, seriously, I like reporting or rather automation of it)
 
8:24 AM
@Rarst I never thought about automating it, I could... maybe I should. Any pointers on where to start reading (Google Analytics, PPT)
 
I hadn't done it with GA (well, done related parts to GA too, just not implementing data retrieval itself), but there are tons of API stuff for it :)
 
8:43 AM
<div class="grid__item six-twelfths palm-one-whole"> ... real semantic
who wants to type that crap all day
 
then wrap it into semantic classes :) people like to whine so much about notsemanticboo of frameworks, but are too lazy to do it semantic ways those very frameworks give them :)
also as I've read once: "Because div and span are so fucking semantic."
 
no the whole framework is six-twelfths four-sixths bla bla bla... its very verbose
just strikes me as overly complex naming scheme
 
that doesn't matter how verbose it is. you just do your semantic classes (content/sidebar/whatever) and import framework's grid into them as necessary
is this Pure?
ah, no, something else...
 
(feeling silly for having googled 'verbose')
 
which is what I am going... but I have to modify a lot of the theme due to the theme authors on-crack customizations...
no its "rosa"
 
8:48 AM
well, WordPress, duh :)
 
...yeah another guy sells a theme for $50 that doesn't work at mobile properly :)
 
@userabuser I can't even google it. link?
 
if they just stick to simple naming conventions wouldnt have to do all this crazy shit
@Rarst Pixelgrade <- theme shop
 
ah, you mean rosa name of theme, I thought name of grid
 
ah, Inuit CSS I think
.lap-and-up-seven-eighths
um
.soft-half--right , .push--right , .full-bleed
two hyphens, one hyphen, two.. very inconsistent.
now I know to stay away from that framework then
 
8:54 AM
I don't think they even have stable version at the moment inuitcss.com
some major refactor or whatever
 
been like that for a while I think, I remember people talking about Inuit here in chat
 
someone was a fan. given it's pretty hipster that was probably kaiser
 
Each to their own I say, although they just made CSS overly complex... maybe to feel better about not learning a real language I don't know...
@Rarst lol
 
9:23 AM
am trying to make a custom template, so on index.php all I have is the while loop of posts, now how should I load posts on other page with specific category?
I mean obv I don't need any codes, I just need an idea how to achieve that..
 
9:49 AM
@Mr.Alien this would make more sense as question on main site :)
 
nah, will be too broad
All I have on index.php is
if (have_posts()) :
	while (have_posts()) :
		the_post();
	endwhile;
	the_content();
endif;
 
ok. I am not following the category part then?
 
so it fetches and shows static page but when I switch to post page, I need different layout and fetch specific category only
 
switch? what exactly are you setting and where? do you mean "front page displays" stuff?
 
I will go slow, first I am having index.php, header.php and footer.php only, am creating a template from scratch, now in the content wrapper am having the code I shared with you
now I wanted a static page, so I created a new page, went to settings -> reading, and selected the respective page to be static and all is well till here
now I want 3 pages with posts, each one with a specific category
thats all I need
 
9:54 AM
I setill have trouble making sense of this, but I hadn't had my tea yet. :) also totally a question for main site, really.
 
i feel its too broad for the site, so I will fiddle it my way, thanks though :)
I have my own cms but that is single user and I don't have time to modify the code so going with wp
 
please describe settings verbatim when you are talking about them. "selected this for that" is hard to understand. say it precisely, like "front page displays > static page > front page > page I created" for example
 
already done
huh, I think I just did it
 
10:08 AM
aha, done, need to create custom page templates
 
10:47 AM
@BenWainwright ... did you try the stuff with exit() to make sure the condition is triggered reliable?
 
11:09 AM
Where you see term Wordpress ? Why you ask this ? — user1620882 6 mins ago
 
 
3 hours later…
2:05 PM
is there a filter or trick to limit revisions per day (like one per day)
 
2:36 PM
@Wyck Highly doubt there is a filter to limit revisions, though there are filters for revisions, shouldn't be too hard to whip something up?
If it's one per day per user you can store the IDs of the user and post objects in a transient compare, or if its globally one revision per object per day regardless of user then even easier...
 
ya think so
 
@userabuser may I pick your brain for a short moment?
 
@mebu83 sounds painful, but ok shoot
 
@userabuser I hope it stays a painless as possible, but alas there's still my english that might abuse you. No it is a followup question to a short conversation thread we had. You told me to build something premium if I wanted to do make money with this thing while learning. TL;DR: Do you think it is ethically ok to publish something premium when it was a project to learn?
 
Absolutely.
That's the short answer.
 
2:52 PM
I am fine with the short answer, don't want to waste your time.
 
The long answer is that no one has the right to say that your conduct is unethical because you chose to developer a premium product to both learn and profit simultaneously. If anyone did, they're bloody nuts and not worth the time of day.
Go forth.... create.
 
Thanks :)
 
 
1 hour later…
4:01 PM
... I know the pros hang out here :-)
http://wordpress.stackexchange.com/questions/155556/good-methodology-for-upgrading-a-large-complex-sites
 
make a local copy and click update and you might get lucky
if shit breaks then you need a process, try just update wordpress first, then each plugin one by one
 
@Wyck ... yeah, that's obvious ... but how to be sure that I'm really lucky, without spending a week trying everything? :(
Customer is too important to just upgrade and look 5 minutes if nothing obvious is broken then upload to live ...
 
if a post is working it safe to assume other posts are working, unless the site is poorly structured
in that case nothing beats someone clicking stuff and testing it, like a bug wrangler / keyboard masher
 
track rate of PHP errors (NewRelic can do it) and web loads/transactions (Pingdom can do it). if something is wrong with update one of the two will explode and alert.
 
@Rarst Sure, but that means I will only discover after the upgrade is live (when traffic starts to hit the page) ...
 
4:07 PM
then don't update live site?.. update staging and test
 
Sure I will upgrade at staging, it's all about the "test" part. The things that have to be tested, are just too many IMHO.

Imagine:
10 x network sites,
30 x plugins (not all are activated on each site),
10 x CPTs which have own templates/features,
20 x custom page-templates.

This just adds up to like +1000 possible situations/variations that have to be tested.
 
as above — errors and transactions?.. that's about only thing you can test more or less generically
 
anu
you're not going to get an easy solution, you can script plugin activations with wp-cli, use something like httrack.com to systematically visit all the pages, check error logs to see what explodes?
 
Thought of a tool diffing the html output before/afterwards or something
 
do what everyone else does, use a bug tester, automating this will take longer that just diving in and clicking stuff
a test isn't going to show you css/html issues, tracking error pages is easy
 
4:19 PM
@s1lv3r how many times do I need to say "transaction monitoring"? :) pingdom.com/transactionmonitor
 
you can try seleniumhq.org as well but like I said it will take a long time
 
@Rarst I like the idea, but I'm not sure not every failure/bug will end in resulting a PHP error. Sometimes stuff just disappears ...
 
@s1lv3r click the damn link and read? :)
 
@Wyck @Rarst ... seems to be exactly what I was hoping to find. Thank's. :)
 
finally :)
you meant pingdom, selenium, or both? :)
 
4:35 PM
I will have a look at both of them, but on the project sites it reads like both of them will do the job.
 
this stuff is hilarious when integrated with work chat too... "ok, let me upload this small change real quiCRITICAL ERROR RATE UP 73.5%"
 
hrhr That's crazy ... - I'm already getting enough push notifications on my phone from NewRelic. ;)
 
I get nothing on my phone, in front of computer too much anyway
 
5:04 PM
people are still really, really fast for checking bugs
 
5:57 PM
@s1lv3r Yes
 
@BenWainwright ... problem still not resolved? :P
 
@s1lv3r No :(
When I dump $COOKIES to the screen, from my custom page, I can't see the Wordpress authentication cookie, even though I know it is there because I can see it using Chrome developer tools.
So I assume it is something to do with that
Sorry $_COOKIE
 
hmmm ... did you have a look at the headers already send errors in detail?
 
There wasn't any
And it is not that I am getting NO cookies, just not that one
 
puh, ... but the user is in fact logged in?
 
6:01 PM
can you try to disable output buffering on your dev machine?
 
Yup. If I go to (url)/wp-admin/ It works fine
@ungestaltbar Sorry, you've lost me there. I am not a professional
 
That's strange ... any caching plugin activated? You are directly connecting to the webserver or any reverse proxy between you and the webserver?
 
@s1lv3r Directly connected. No caching afaik, though I've noticed lately that changes I make to the site seem to take 20 seconds or so to take effect
 
@BenWainwright open your php.ini, search for output_buffering and set it to 0
or does the problem not exist on your dev machine, sorry, wasn't following the whole conversation
 
@ungestaltbar It is not a dev machine. I am running both live and dev on the same virtual host, rsyncing one to the other when I am happy with changes I have made. I guess try it on localhost, just haven't gotten around to that. Where might I find the php.ini in a virtual host?
 
6:08 PM
@BenWainwright afaik? ... What does the plugin list tell you? ;-)
 
@s1lv3r As far as I know
 
@BenWainwright No W3 Totalcache / WP Super Cache plugin installed?
 
No, lol.
I tried them but decided they were unnecessary
I don't like having too many plugins installed
 
hmmm ok ...
You have browser cache disabled?
This is the very basic, but nevertheless: Did you already try to force reload of the page using Ctrl + F5?
 
I think so. But lemme try again
Yep. No difference
@ungestaltbar It seems that output buffering was already off
 
6:16 PM
Can you do the var_dump($_COOKIE); in the first line of the root index.php of wordpress? Does it show the same?
 
Will try
One sec
On the main page it shows the cookie, but on the subdir it doesn't
Is the cookie not valid here or something?
I g2g have dinner. Be back in a bit
 
@BenWainwright ... can you look at the path value of the cookies in your browsers developer toolbar? This tells in what subfolders a cookie is valid.
 
6:44 PM
I am confused about something, what is better add to your custom post type metabox via register_meta_box_cb => my_cpt_metabox_register_function or creating a function and go add_action( 'add_meta_boxes', 'my_cpt_metabox_register_function' );
 
@s1lv3r It says '/'
:(
 
@BenWainwright erm, but the domain is the same? It's not like it is one time with www. and the other link is without it (main page vs. subdir)?
 
@s1lv3r the domain is the development subdomain
it seems correct
 
Sorry maybe I should post this as question
 
I swear this problem is going to give me a hernia
 
6:50 PM
@mebu83 I don't think it matters other than you can use add_meta_box in register_meta_box_cb
in other words register_meta_box_cb just uses add_meta_box
 
Puh, that doesn't really make any sense so far.
 
@Wyck Well I am glad, because it could have meant that I didn't get basic principle.. phew
 
So you have var_dump($_COOKIES); in your index.php and on the front-page it shows something, and what is exactly outputted on the subdir?
 
@mebu83 when in doubt just look at the core, github.com/WordPress/WordPress/blob/3.9.1/wp-includes/…
 
The auth cookie is visible
On the var_dump
But not in the subdir
 
6:55 PM
No output at all in the subdir (as if it doesn't go through index.php)? Or what exactly?
 
No, the var_dump still runs
 
well, that solves what-would-gravatar-app-do...
 
But only the google tracker cookies and some others I don't recognise
 
And the path on the auth cookie is really / ?
 
6:58 PM
Yes
Yup. Just checked it again
 
TBH. I'm out of ideas.
 
:/ :/
What would you do at this point if you were me
Other than break something
Should I ask my hosting provider?
 
Are you able to share the dev domain and create a dummie user? It's best to let some one else try to make sure it's not something weird with your environment/browser.
If you post that here I would have a quick look.
 
Possibly. Not tonight though, I have to get some forms into a letting agent. You seem to be around here a lot though?
Can do it tomorrow night?
 
yeah, np. I think I'll be here tomorrow.
 
7:08 PM
Cool, thanks. I really appreciate the help
I think I should probably set it up on localhost too
 
yeah, sure if you are able to do it it's easiest to debug it there.
 
7:32 PM
Anyone else actively using the PHPStorm EAP version?
 
7:47 PM
Is there an action that fires when a custom post is deleted? add_action('before_delete_mycpt', 'func');???
 
8:01 PM
@Seth cpts use the same action as posts so it's probably before_delete_post
 
@ungestaltbar jup
 
Shog9 on July 23, 2014

As Stack Exchange continues to expand to serve new audiences, we’re constantly on the lookout for folks who can take the principles and practices we all hold dear and communicate them effectively to the folks who would otherwise find them strange and difficult. I’m happy to announce we’ve found another of these rare specimens in the form of Joshua Maciel:

Josh joins us remotely from beautiful Kansai Japan, where youthful ignorance brought him for a two-year stay (maximum!) to teach English. Eleven years later he still hasn’t left, having found gainful employment doing internat …

 
@Wyck I've tried before_delete_post, but no cigar
@Wyck is it possible to debug that action? print something to verify it's working?
 
@Seth yes of course but ask on the site
are you checking for your post type in the function that fires it
 
8:26 PM
Yes
I am checking for the post type
 
8:48 PM
@Seth On hooks which you can't output... Save info into option. Then dump the option after...
That's what I do anyways
 

« first day (1376 days earlier)      last day (3557 days later) »