@kaiser ah :) it's so convoluted which level gets what in mod tools so mostly everyone gave up on trying to remember it. there are requests on global meta for "see as level X" for mods
I have a login form in plugin settings API. After submitting form I want validate the login credentials throw web service. But I don't how to add that action hook for this specific form submit. If authentication is true, I want save additional values to options table with login details. To add th...
@gowri Mate... We got a feed of all new questions in the upper left corner. The only goal that you'll reach with instantly pushing it in here is that we're annoyed like hell. Don't do that.
I've often considered a thought experiment of setting up a membership service where the subscription fees pay for the purchase of GPL themes (a single copy) and then makes the theme available to all members. I wonder what the reaction would be from the WordPress GPL crew if someone did that
@anu so late to the party :) people been poking this like years ago (more to be dicks than build much business). reaction is of course lectures on how wrong that is.
@anu Depends on how you pull it. If it wouldn't be too greasy ("we buy theme licenses together"-group), it could imho make lots of money. Would be funny to then spend the money on Envato shares :D
Yeah maybe - but I'd probably be tempted to join a service like that, so I'm surprised that someone hasn't done it. No legal issues, and being called an asshat by the WP community isn't the scariest thing in the world :)
@kaiser Yeah, it could be exactly like that - membership fees pay for communal purchase of 'premium" GPL themes that everyone in the 'community' can then use
Probably not - just another service that some would pay for and some would not - you can get most of the premium themes from Bittorrent or Rapidshare anyway (except you run a much bigger danger of downloading a theme with trojans/exploits etc)
And of course, the more negative publicity, the more subscribers :)
Hi Kaiser ! I've done everything you said, but still the same problem. But I've found something : when I try to go on one of the other 1à pages, I have a "Page not found" !!! The permalinks structure is /%postname%/ . When I change the permalinks structure to default (page ID), it works well :s ! Have you got an idea ? — Cédric Charles37 mins ago
Hate it when questions start with a vague problem, then switch over to another topic.
Noticed a strange behavior: I init the static instance method of a bootstrap class during plugins_loaded on priority 1. Then I load all the necessary file on the same filter with a priority of 5. The callback is a simple require_once $file. When I then do the add_action( current_filter(), array( 'Class_Name', 'init' ) ); on the default priority of 10 (argument not added), it fails. But it works on 20.
hmm any thoughts? WordPress install, no FTP/MySQL access, all I have is CPanel, running 3.4.2, upgrade to 3.5.1 fails, accessing the admin backend gives the upgrade database button, which when clicked takes a while then gives a wordpress logo and nothing else
all plugins disabled ( folder renamed ), disabled the theme similar method, so it should be running standard vanilla, htaccess cleared, WP_DEBUG turned on, no errors printed to frontend
@toscho Shouldn't it be something like that inside the if? Or just save it into a var and then echo it inside the if ( ! empty( $term_list ) AND ! is_wp_error( $term_list ) )?
I had answers on a question that got unaccepted, but I can't find the parent question url from statistics shown on my profile page (not listed). How can I find them so?
>_< I get everything working on 3.4.2 better than it was when I started and go to update some plugins and walk away for 1 minute. When I return the client has logged in and ran the autoupdater putting it all back on 3.5.1, with the broken upgrade database thing back
where can I find the database changes between WordPress versions?
@kaiser Thanks mate, another framework for me to learn :D Looks much easier to get head around than ember, although I am finally beginning to understand that. I think for simpler apps that backbone might be the way to go... I'll give this a run
Uncaught TypeError: Cannot call method 'map' of undefined
Somewhere in a JS source file on line XX. Now I tested the jQuery plugin in its demo page with the exact WP jQuery version 1.8.3 and it works. In WP I use it, register all styles and scripts with all dependencies and I get this error. How shall I go and debug this one?
@toscho Do the same but in Chrome. My problem is more of the topic: Why the heck doesn't it work if everything is loaded in the exact same order as I can see it working in the local demo? :P
Another annoying problem: pickadate.01.default.css gets registered and enqueued. Both work: dumped wp_style_is() successfully inside method, but nothing gets added to the screen. Scripts work and appear. No idea what can go wrong here. h...elp!
I need help..not just the Dr. Phil kind either. I was trying to switch something around in this function but im messing up. If I set the first line of the function to "true", it will return the user ID # as the slug. Im trying to get the user's nicename(nickname) as the slug instead.
If someone could kindly take a look at this function for me I would be ever so grateful :)
BuddyPress uses the Username(login name) as the member domain slug. (mysite.com/members/sarah)
I would like to filter the way BuddyPress handles this and set it to use the Nickname edit:or more preferably, a custom profile field instead.
Here is the code for returning the user's slug
function b...
> BuddyPress uses the Username(login name) as the member domain slug. (mysite.com/members/sarah) I would like to filter the way BuddyPress handles this and set it to use the Nickname edit:or more preferably, a custom profile field instead.
@Aliyah The login name is something that wont change. If you take something that can change, then you have a moving target. For e.g.: User has a bookmark, changes the nick name >> Bookmark stops working and says "My site is gone! Panic! Red alert!".
@Aliyah this is what we call providing context e.g. "and then it broke, I tried modifying this function, but it doesn't work, what do I do?" <- can you tell what I'm asking? I cant, so why would you?
@Tom - original problem: I used a function that removes the username from registration completely and user a hash generated from the email address as the username
Question: What happens when former Tom Nowell wants to now get called Tom J Nowell? Answer:example404.com/tom-nowell becomes a 404 as it doesn't exist anymore and .htaccess doesn't have this entry and the user page now is example404.com/tom-j-nowell.
Ok thats much friendlier. Perhaps I dont have the groundwork laid out for me. Did you learn php on your own or in a university somewhere? I would assume that you were once new to it and perhaps confused by it kinda like me
but you guys are talking php like its your first language
i know what it is. Im a girl. By default, I am deficient in this area. Php is not for ladies. Much like trying to understand football, php is a man's language
What is this discussion? Please @Aliyah, don't annoy the hell out of us. Go and take one of those online courses. You'll get around the basics in 2-4hours. Promise.
I have hundreds dollars worth of books bookmarked (tech primarily) :\ I will probably end up just deleting bookmarks rather than starting to buy and read all of this
@Rarst I have hundreds of dollars worth of books on my hard drive that I have never read, so take it from me, you're probably safe to delete those bookmarks.
A few times now (it is about to happen again), I have been trying to help a low rep user-- usually rep 1 or so-- with a problem and am getting nowhere in the comments. The comment form starts to complain about conversation in the comments and offers to move the discussion to chat. I'd love to do ...
"they will work, but all globals prior to that point will no longer be there as they'll have been unset"
no longer be there?
(i almost got it..im so close!)
im confusing myself. i was thinking that unsetting the thing would make it disappear from the rendered page o_o
i almost understood until you said 'no longer be there' sigh reminds me of my cat. she 'no longer be there' .. at my house because she prefers to run the streets :-(
@Aliyah why would it do that? Does your browser listen to the other end "using our psychic prowess we have determined that PHP is being used. We will now monitor all usage of unset in the remote server and censor the parts of the page that were generated using variables that unset has been applied to"
@Aliyah without surrounding code this question cannot be unanswered
once something is sent to the client, it has been sent
Thank you, some part of my code is not functioning accordingly and I am suspecting that it may be either changes in the WP core or (most likely) fault in the code. It is related to the fallback system, where the image size is sent to image_downsize() and then to image_get_intermediate_size()...
I want to display an image (defined by me) next to a user who meets a certain criteria. Should I make a custom field for this and then an if else statement?