« first day (678 days earlier)      last day (4565 days later) » 

00:20
0
Q: Advice for a Newbie Worpdress Web Designer/ Themes?

ErickI am digging into a freelance career and I would like to know what the best advice is out there when it comes to buying themes for clients? What is the best practice? Themeforest? Bundles? What should be my criteria when choosing themes to develop and offer to clients?

Is this a constructive question?
no it's too general
what kind of car should I buy?....
closed
The asker has accepted a (bad) answer anyway.
 
1 hour later…
01:37
In the WP function wp_new_comment(), it calls the action 'comment_post', passing the comment id and approval status - but what does the action then do?
01:57
anyone know how to force wp to save using jpg never png?
for thumbnails
@Alex there is a mimetype filter, you should ask in the question section
thx
thought it might be a quick thing.. I'll make a question thanks
 
8 hours later…
09:57
6
A: meta_query with meta values as serialize arrays

Tom J NowellNo, it is not possible. I strongly recommend you unserialise your data and modify your save routine. Something similar to this should convert your data to the new format: $args = array( 'post_type' => 'my-post-type', 'meta_key' => '_coordinates', 'posts_per_page' => -1 ); ...

I'm confused, I got the bounty, but my question is not marked as the answer =s
how does that work?
@TomJNowell bounty is not tied to accept
it's not even tied to OP, anyone can add a bounty to any question
@Rarst interesting, good to know
got New Relic on work VPS... shiiiiny
@Brady why mod room on last?
@Rarst because it was just aimed at you and ur the only one in the mod room
mod room for mod stuff as for me :)
10:06
thought better to say there other than infront of everyone here.
333ms last week average
what about it?
@Rarst well I'm diving into performance atm
And wanted to compare with what you are getting
But Ive been using pingdom for yonks now on our corporate website and I'm averaging 370ms. And thats without any optimization
same stuff at work, although I am in get-outta-here mode... as above - we got New Relic installed this morning, shiny
@Rarst What do you mean by get-outta-here mode?
going sabbatical
10:10
@Rarst from WPSE? on in general
from job
@Rarst where you going?
more of from than where, that's the point of sabbatical :)
Yes but with all the spare time what you plan on doing with it?
thats why I asked the WHERE as usually people go traveling
sleep, then personal backlog, then collab project backlog
summit (if I get visa) and whatever comes out of it
10:13
@Rarst sounds good.
you got your finances in order for your leave of work?
won't starve for a while if necessarry... of course summit would be a financial black hole :)
@Rarst get a "Send Rarst to WP Summit". I'd chip in.
@Brady would probably be huge pain in legal aspect... I applied for travel scholarship with summit (but I am low priority there, high cost and in the end I can pay for myself) will poke SE as well with more details... if I don't get visa it's all moot anyway
@Rarst How come you need a visa for a holiday?
visa for summit
10:18
@Rarst yeah but you aint staying for a long period are you?
doesn't matter, we need US visa for any visit
@Rarst is that just because of your country?
yep
A lot simpler going from UK
"perks" of poor countries...
 
1 hour later…
11:40
Hey all, quick question about redirecting
Can I have my WordPress site installed in one place and accessed at a url somewhere else?
I want to have WP installed on our blog server: distance.example.com/myblog
But when people access the site, I want them to access it via: example.com/faculty/myblog
Is this even possible?
why not just install it in /faculty/myblog then?
also see codex.wordpress.org/Giving_WordPress_Its_Own_Directory for generic case of core elsewhere
I'm at a university. We've got a large no. of blogs, all on a blog server of some kind
are you going to be using multisite then?
anu
anu
@saltcod - yes, it's called reverse proxying - search for proxypass
I want to use WordPress for my non-blog site, and have it at accessed at a different url
@anu interesting
@Rarst My site will just be another blog in the multisite
11:46
ask a question on main site. this is confusing and by no means "quick"
Right. Ok, I'll do that. Thanks Rarst and anu.
anu
anu
I don't think it's even a WP issue - if you need to, ask at serverfault or webmasters
11:57
@Rarst we need US visa too if we got an old passport (without chip).
@kaiser passports with chips are still not even legal here...
@Rarst ah. retina scans. nice.
@kaiser retina scans where?..
@Rarst ukraine?
probably not... :)
11:59
;)
@Rarst about this question: what would someone do with a page that's not accessible?
@kaiser it can be private stuff like analytics report
@Rarst So password check?
I think he just worded wanted restrictions poorly, asked for clarification
Thanks
 
1 hour later…
13:31
Grabbing WordPress versions in a Google Spreadsheet
http://www.tomjn.com/131/tracking-wordpress-site-updates-install-in-google-docs/
@TomJNowell so is Google Docs local or private hosted? :)
@Rarst heh, it's hosted somewhere only I can see rather than having to trust a rival company with our list of clients
that and we can do stats and charts based on the data pulled in
Though the method of grabbing the version is quite basic, I'm sure there are better ways of doing it
we had a question about that from Jeff, how to detect WP install in lightweight way
hm, although not version...
@Rarst Jeff?
know your gods
13
Q: Detecting a WordPress URL without doing a full HTTP GET?

Jeff AtwoodI'm trying to write a oneboxing routine that gives WordPress blog entries special treatment. So given a simple, unadorned URL in content, such as http://blog.stackoverflow.com/2011/03/a-new-name-for-stack-overflow-with-surprise-ending/ How would I detect that this is a WordPress installatio...

13:36
readme.html is usually a pretty clear indicator
Attwood?
ah
anyone have a link to the "correct" way to document PHP code?
@MichaelEcklund PHPDocs tends to be the way to document methods functions and classes
though inside functions is another thing
ideally code should be self documenting, aka it should be glaringly obvious what a function does from its name and parameters
@TomJNowell Well I have found this article: devtopics.com/13-tips-to-comment-your-code But am Unsure of how to properly document a file, class, and class method.
@MichaelEcklund any decent IDE should be able to generate boilerplate for you from code
Even DreamWeaver? Yes I know, you all hate DreamWeaver in here.
13:43
I said "decent" :)
@MichaelEcklund why dreamweaver? Its expensive and bested by many free alternatives
also see en.wikipedia.org/wiki/Phpdoc it has quite good overview and examples
@Rarst Okay thanks. Will do.
A lot of IDEs will auto generate boilerplate for you just by typing /** followed by a return on the line above a function or class
13:44
@TomJNowell My friend got it for free through his school. He gave me a copy.
@MichaelEcklund At a previous job we used Dreamweaver, it has uses but nothing others can't do. It was clunky too and the File pane was annoying
better off with something like sublime or Komodo
I just like how simple it is to use. It color codes nicely. Uploads on save. (Since I don't know how to use SVN or GIT)
though @Rarst will advocate PHPStorm
yep
Isn't PHPStorm pricy?
13:46
git isnt hard if you have only basic requirements, there are plenty of tools that make adding files, committing changes, and pushing easy
I also hear NetBeans got better in recent major versions
Netbeans had numerous things that were quite nice
showed promise but when I used to use it, it was far to slow and unstable in parts
NeatBeans == free? nice.
their installer could do with work too, always insisted on glassfish etc
their java UI creator was nice though
@TomJNowell You can change your window pane in DW.
13:48
@TomJNowell same experience, that's why I mentioned that I heard it got better lately
@MichaelEcklund how do you mean?
@TomJNowell Well Maybe I'm not understanding you correctly. But you can customize what you want displayed and what you don't want displayed.
@MichaelEcklund Oh I know that, I used to undock the files pane and put it in a window on my second monitor, it was still a pain though
SublimeText and Komodo are that much faster though, and they've far, far more extensions and plugins
and uploading on save is dangerous
you should always develop locally
then commit/upload when something is complete
that way you can keep working when the net is down, and there's next to no latency on testing and uploading as everything's local
you can also do pretty silly stupid things without worrying a client or a colleague is going to see
one of the tweeps was complaining yesterday that work makes him develop in production multisite without debug :)
@TomJNowell since I don't know how to use any sort of version control. I just clone the client site, bring it to my local server. Make my modifications. Send them a development link to approve the changes. Then overwrite their live website with the approved changes.
I never edit live.
13:52
@MichaelEcklund we're using svn at work here mostly
do a checkout, make some changes, commit them, then do an svn update on the live server when we want to deploy
version control doesnt have to be hard
hrm, how do i print Debug plugin output. everything i try only gets the visible part of the page and nothing that goes underneath scrollbars.
@lkraav rephrase?
@TomJNowell meh just use a plugin that emails you when there are updates that need doing
@Brady "needs" and "can happen" are not the same with some people :\
Oh look my plugin does that
13:54
@Brady which exactly was this in reply to
@TomJNowell: you know Debug plugin right, i need to somehow save the Queries output it has
@TomJNowell click the reply button and it will take you to it
i guess copy paste is an option
but decent formatting would be nice
@Brady yes but emails can get lost and forgotten or buried under a mound. I was going to write a plugin like that myself but saw you beat me to it
@TomJNowell Well, the company I was working for that used GIT, had no clue what they were doing. I honestly just think they had their server setup incorrectly. I would initially clone. Otherwise I would just pull for updated files. I would make changes. Then commit the files. Then push. And I ALWAYS received an error. Something about the remote hungup unexpectedly or something.
13:55
@Brady aha didn't know that
@TomJNowell I send my update emails to a label in my account so never forgotten.
but yes emails can fail... but ive never had that issue yet
@MichaelEcklund heh certainly sounds that way. It sounds as if someone had a non bare repo that they were using as their personal working copy
@lkraav There're debug plugins by automatic in the repo - also extensions for queries
Yeah, I tried explaining to them what you told me the other day. Although, they didn't seem to understand me. (I might have not explained it correctly.)
@Brady the main issue here is I'd like other people in my company to see it too, I cant ask them all to setup labels or monitor emails. Having charts too kind of stresses the importance of updating, I can say only 30% of our sites are on the latest version! we must update!! Sound the alarms!!
13:58
@TomJNowell agreed
It was just a suggestion
@Brady that and it also provides a nifty list of all our WP sites. I do agree emails are useful though
maybe someone should make a plugin that provides wp-remote on your own website
@Brady infinite thing, I answered when @TomJNowell asked but don't know if he tried it
@MichaelEcklund when doing git with multiple people, you put a bare repo 'a master copy' on the server, then you make copies for your own personal use. When you've made some changes you want to share, you push them to the 'master copy'. You can only push to 'master copies', you cant push to 'personal/working copies'
@Rarst yeah I saw but it wasn't really what I wanted, I'd still need to trust a rival company with our stuff. I know it's kind of the same but with Google but they already have our emails etc
@TomJNowell I would praise you, if you made a blog post explaining how to use version control for newbies.
I'm quite sure that post would rank well too.
14:01
@MichaelEcklund why I've been looking for ideas for blogposts actually, perhaps I shall indulge you, though you may be waiting a week or two
@TomJNowell server is self hosted, but I haven't look deep in how they manage add-ons, etc
@TomJNowell Absolutely no rush. I'm not going anywhere.
@Rarst If I cover svn and git, would you do Mercurial? Seems unfair to leave it out
@TomJNowell maybe, poke me later... I need to get rid of last bits of work which is like hydra
Wikipedia has a big blatant banner across the top of their site asking for $5 donations.
14:03
I blink and there are five open tickets again...
anu
anu
14:36
@MichaelEcklund what's wrong with the thousands of blog posts and tutorials out there already?
@anu we don't like their wheel curvature
:)
anu
anu
@rarst :O
obviously our wheel will be better :)
anu
anu
square corners?
btw! if I am on sabbatical and will get to our blog that would make good non-site content for it - how WP relates to different version control and such
14:39
@anu superior spokes
15:29
Hm. WP (private) AJAX call. $_REQUEST/$_GET haven't set the nonce (it is set during localize script) and check_admin_referer() fails with undefined index. Where to start? Can't get around it...
15:42
apparently New Relic is one of those things that make me go "people with money have it niiiiice..."
starts to hate nonces ... again
@Rarst what cool things you done so far with it?
@Brady none really, just got installed this morning... but so much pretty graphs... plugs into everything: linux, php, front-end...
@kaiser I hate nonces too. But not the kind you are referring to.
@All Maybe someone got an idea, why this €@!?# is failing/"undefined index": pastebin.
This one is driving me crazy...
16:05
faaaaancy... site exploded on botched deploy and New Relic like "Error rate crossed critical level!" right in HipChat :)
16:21
Just started reading my new book. Think I'll get through it by the end of the weekend? http://t.co/w5U6XfgT
I thought it was time I tune up my JS skills
So @kaiser I'll be able to help you even more :)
@Brady NO way! :)
@kaiser NO way! what?
finished this weekend
I wont get through it this week?
ah ok
Guess the only thing that will happen with this book this weekend is that your girl slaps you with it ;)
16:23
Its got a nice start to the book. I'm basically getting a history lesson :)
@kaiser she is working this weekend so i have the whole weekend to myself
Aha!
Plus it is a bank holiday on Monday! So got three days to myself
Back to topic A) any idea on the nonce issue?
But tomorrow I'm painting and decorating.
Oh. Moved?
16:25
@kaiser no
hm...
there is now a spare room in the flat share Im in
the ex-tennant use to smoke in there
the room smells and a yellow tinge
so repainting and filling in all the cracks in the walls
Basically doing it FOC for the landlord but she is paying for the materials
Paint it yellow.
no it needs painting matt white
Paint it black.
16:27
not my room... so why would I paint it black or yellow?
because you can
Oh, yea. @toscho is right. Black. Nothing else.
@all you guys know if you can bypass wp_install by just entering the data right into the db?
@Wyck you didn't? :P
I want to skip install.php
16:29
@Wyck You could even do this while driving your car.
snapshot vanilla install and copy in?
@kaiser ha we need that around here, police now auto scan plates
0
Q: Looking for the perfect poll

javipasI have some sites that are managed through PHPlist in order to manage membership to some newsletters. This Open Source software is great, but it lacks some really important features that I'd like to add to this kind of service. In fact, I'd like to combine polls with memberships. This way I cou...

Close as polling question?
@Rarst basically I have a script that downloads/install wp/themes/plugins and the db in one shot, but I still want to automate the install.php
without using php
@toscho yes
16:34
whitehouse on github, and it's drupal
For now, I will leave both decisions for the community.
Close voted as "non constructive" on both.
@Wyck Colleague told me about it two weeks ago - some PhD student killed the whole DB (in austria?) some years ago with something like that, but I can't confirm that this one's a true story.
@kaiser ha, did you see the guy the wrote it on his vote ballot (Sweden I think)
@Wyck No! Thanks for the link - one more reason against digital voting.
lol Script src=hittepa.webs.com/x.txt) in the ballot too
obligatory: xkcd.com/327
16:41
Seen that :)
17:29
> If you’re going to make it to the top, then you need to spend at least one hour each workday focused on reading and learning more about WordPress — outside of any development work
In numbers: 1
17:49
brain melted: What's the easiest way to get CPTs by ID?
Ah, brain back to work... post__in...
@toscho why grinning? :) quite decent post as for me...
18:13
@Rarst look at his profile on here
so what? not like he claims to be suped-duper-top developer himself...
@Rarst wpcandy?
@toscho wpcandy what?
> Find and follow the best blogs about WordPress. Subscribe to their feeds. Read them regularly and give feedback to the authors. A few of my favorite blogs are WordPress on Smashing Magazine, WP Tuts+, and WP Candy.
@toscho Mr Immel still hasn't fixed the bug in the top squares regarding middle and right clicking
18:25
@TomJNowell what are you talking about?
I know don't tend to come with middle mouse buttons, but at least testing right click and middle click for those that do, nevermind linux/windows/netbsd/etc
@toscho see the featured news on the homepage? middle click on them, the page opens int he current window because javascript trickery was used and the modifier key wasn't checked
ctrl+click doesn't work either
@TomJNowell Smashing Mag?
@toscho wpcandy
Oh that. Who cares?
@toscho I do, it's very annoying
18:29
My advice for how to become a top WP developer: Bring your Avatar on this page. Done.
OMG IT'S ME!!!!!
@toscho WP Candy is news/chatter, some people need more of social aspect
wpcandy is a marketing platform just like smashing magazine
So it is for people with not enough reputation or knowledge to use this fine chat room?
@Wyck they could at least do their code right when the issue is raised
18:33
@TomJNowell ya shrug, I told them about some security issues they had a while back and they fixed them pronto
@toscho this chatroom should come with a courtesy marble frame for your monitor, to pull in the sense of true grandeur it deserves
@Wyck at least they're upto date wpcandy.com/readme.html
 
2 hours later…
20:13
is there some quick hierarchy builder function in core yet?
like have bunch of objects with parent field and need to do stuff
@Rarst wp-includes/class-wp-walker.php
@toscho I know... not that crazy... anyway reusing my functions from another answer
 
1 hour later…
21:45
@toscho can I get your insight on this wordpress.stackexchange.com/questions/62720/… ? Im stuck on why this works on my index page and not my single post.
or anyone else if you have a sec.
@PolluxKhafra What happens if you use another variable than $wp_query to store your query results?
@toscho I get an error
I don’t believe that.
betafod.fameordie.com/videos/stalley-f-rick-ross-hells-angels you'll see a widget on the left with a search tab. Click that and search "Stalley". You'll see the error using $search_query.
using anything but $wp_query disables wordpress functions.
can someone help me on http://wordpress.stackexchange.com/questions/62967/why-activate-plugin-is-not-working-in-register-activation-hook
i will give 50 reputation reward, just i cant activate it yet and dont want to wait 2 days :S
22:02
heh, what’s going on here? :)
@toscho with?
two people in such a short time span asking for help
I try to recreate the ajax search now, may take a while.
@toscho heads hadn't rolled and blood hadn't sprayed in a while... :)
Summer of love!
the price of being experts. ur both on my x-mas list though. Im gettin Rarst a Romanian girl.
anu
anu
22:08
I wonder what happened to janochen and Mike B
@anu shush, plausible deniability, over.
I wonder if SE ever implements hellban after all... that would be nice...
@Rarst what's that? you gonna hellban me lol?
anu
anu
I'm torn on the merits of hellbanning, having been hellbanned from HN a couple of months ago
Took me a while to realise - which I suppose is entirely the point
well, some users (not present company) are so bad that we have no viable option to deal with... toscho was battling one through days and many accounts
22:12
I am still checking his account each week …
anu
anu
Did SE ever implement a question : answer ratio limiter?
Im afraid to answer anyone's question.
@PolluxKhafra You should really give more back.
@toscho Until I know enough about what I'm doing I honestly feel I'm giving back by documenting questions that I couldn't find an answer to on the net. I look at alot of the questions and it's just over my head. So what's a rookie to do?
I'm not exactly askin questions so i can complete a job for someone else either. I'm a one man operation working on my own site.
22:23
@PolluxKhafra Since you have created your account we had more than 7000 questions. And could answer … just 8? I don’t believe that. :)
I answered 8??? I think you're over shooting lol. One thing I struggle with is the coding language so I feel dumb trying to explain things. I really couldn't have gotten where I have with my development without this site so yeah I'll work on it and try to play a better role.
Anyone know of an Android app that deletes all texts in your inbox containing a partial or exact phrase?
anu
anu
22:47
Apple have just crushed Samsung.
23:20
@PolluxKhafra It works with 'category_name'. But 'cat' seems to act … strange.
@toscho Using $wp_query it still returns all results under the category and post types instead of just the results for search value. The search value isn't passing. Passes on the index with exact same setup.
Stop using $wp_query for this. It is not needed.
I just have written a basic AJAX search plugin. I have used get_posts() and it is working fine.
ahhh ok Im gonna try that
@PolluxKhafra Here is my code. The files search.js and t5-ajax-search.php belong together in one directory.
Sorry for the typos …
You have to replace my function render_search_results() with your own code.
23:40
@toscho yup that def does the trick for me too! pretty cool toscho. thx for working that out. You gonna post it as an answer on that question or you want me too?
will do

« first day (678 days earlier)      last day (4565 days later) »