nano_mike
Forum Replies Created
-
Forum: Plugins
In reply to: [Team Rosters] CSV Import FailureSo it appears that this *bug* is back in v. 3.0.1 and that the import functionality is handled differently (or at least has moved since it is no longer found in the same file at the same location).
Would you be so kind as to point me in the direction of the csv import stuff. I really prefer that the plugin doesn’t add a new player that already exists, simply update the existing information.
Thanks!
Forum: Plugins
In reply to: [Team Rosters] CSV Import Failurehaha.. yes, yes I believe there may be a blogger or two out there *still* using a MAC. I’m actually surprised this hasn’t come up before..
In any event, while poking around a bit I made a small change that may be useful (I may make some more and pass them along)
I modified the CSV import so that it checks if a given player already exists (based on the slug) and if so, don’t bother adding them again, just add them to the team we’re importing.
in mstw-team-rosters-admin.php around line 1363
// mph - Test for the existance of this player first! echo '<p>Checking Player: ' . $temp_title . ' <br/> Slug: ' . $temp_slug ; $search = array( 'post_type' => $type, 'name' => $temp_slug, 'post_status' => 'publish', 'numberposts' => 1 ); if ( $player_exists = get_posts( $search ) ){ echo '<br/>Looks like they already exist in our system, adding them to this team... </p>'; $term = get_term_by( 'id', $opt_cat, 'teams' ); wp_set_object_terms( $player_exists[0]->ID, $term->slug, 'teams'); echo '<br/>Updating their info... </p>'; $this->create_custom_fields( $player_exists[0]->ID, $data ); return false; } echo '<br/>Nobody Found, Creating new player... </p>'; // - end mphI commented out the rest of the echos since I’m not sure they mean much to anyone unless their debugging
Forum: Plugins
In reply to: [Team Rosters] CSV Import FailureFYI: It’s the line endings.
Classic MAC (CR only) isn’t sufficient. Must use CRLF for this to work.
Forum: Plugins
In reply to: [Team Rosters] CSV Import FailureOk, I take it back – the sample files work if you don’t let excel touch them. :o)
Seems to have to do with the quotes around certain fields.
Forum: Plugins
In reply to: [Download Monitor] [Plugin: WordPress Download Monitor] [Download not Found]Ok, I found the problem.
I am using some custom page templates that open a connection to a completely different DB. At the point where Download Monitor queries for the download, I happened to have changed the current DB to something else, so of course no results were returned.
A case of user error. No fault of Download monitor..
(I just don’t understand why it worked before?!?! )Thanks again for a great plugin!
Forum: Plugins
In reply to: [Download Monitor] [Plugin: WordPress Download Monitor] [Download not Found]I should add my output format is :
<a href="{url}" title="{title}">{title}</a>Forum: Plugins
In reply to: [Plugin: WP Download Monitor] Changing to a new host = broken URLsYou can do something like (in mySQL):
UPDATE [YOUR_TABLE_PREFIX]_download_monitor_files SET filename = replace(filename, 'http://your.old.domain', 'http://your.new.domain');Forum: Installing WordPress
In reply to: Windows Permalinks Fixed!I am running Apache/2.2.6 (Unix) PHP/5.2.4 and mySQL 5.0.51. WP 2.7.1.
When I switch to permalinks (tried all kids of combinations) it works fine in Firefox but not in IE browsers. Using IE (6,7,8) the page will start to render, but then spits out a 404 error (after you can see the proper page for a split second).
The server error logs don’t show any problems.
I don’t believe it’s a server problem since Firefox works fine.
I’ve tried the category / tag base naming (which seems like it is an IIS fix more than anything) without any luck.
I’m definitely not an expert in server configurations, but I can’t understand this behavior…
Has anybody seen anything like this, or have any suggestions???
help….. please.
Forum: Plugins
In reply to: Pass variable from page to included PHPslow day, not enough coffee, in case anyone else is looking:
function my_query_vars ($vars) { $vars[] = "VAR1"; $vars[] = "VAR2"; $vars[] = "VAR3"; $vars[] = "VAR4"; $vars[] = "VAR5"; /* .... etc .... */ return $vars; } add_filter('query_vars', 'my_query_vars');Forum: Plugins
In reply to: Pass variable from page to included PHPQuestion, what would the structure be for multiple variables? Would I need a different parsing function for each? I found something like this:
function my_query_vars ($vars) { foreach( (array) $vars as $k => $v ){ $a[] = $v ; } return $a; }but it doesn’t seem to do it for me….
any shove in the right direction would be great..ps. god bless word press. :oD