cojennin
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Document Revisions] You are not authorized to access that fileWeird. Just a few quick questions: Do you have any other plugins installed? What version of WordPress are you using? And are you using the most recent version of WP Document Revisions?
Forum: Plugins
In reply to: [WP Document Revisions] file.xlsx changes to file.xlsx.xlsVery strange. I would say this might be a permalinks related issue, but the fact that you can download files that end in .doc but not .docx seems a bit odd…
Sorry for all the questions, but the more info the better chance there is of figuring this out. Do you have the most recent version of WP Document Revisions? Are you using the WP Document Revisions ‘document_extension’ filter in any way? Did you change the WP permalinks recently? Do you have any other plugins (seo especially) installed?
Forum: Plugins
In reply to: [WP Document Revisions] file.xlsx changes to file.xlsx.xlsWould you be able to post back here with what version of WordPress, WP Document Revisions and browser you we’re using when it happened (and if possible, what sort of stack you’re on)? It would be very helpful in trying to figure out what’s going on.
Forum: Plugins
In reply to: [WP Document Revisions] file.xlsx changes to file.xlsx.xlsI have been unable to recreate this issue in the following scenarios, using Google Chrome, Firefox, Safari, IE9, IE8, and Google Docs (to create and save files in .xlsx and .docx), WP 3.5.1, :
Scenario 1:
1. Create and save a document (file.docx) in Google Docs in .docx format
2. In WordPress, create a new document
3. Upload file.docx to WordPress
4. Download file.docx from the backend by clicking the “download” link
5. Download file.docx after being inserted in a published post
6. File correctly displays the .docx file format without the addition of .docScenario 2:
1. Create and save a document (file.xlsx) in Google Docs in .xlsx format
2. In WordPress, create a new document
3. Upload file.xlsx to WordPress
4. Download file.xlsx from the backend by clicking the “download” link
5. Download file.xlsx after being inserted in a published post
6. File correctly displays the .xlsx file format without the addition of .xlsMaybe IE 7 is the issue? If anyone is still encountering this issue and could give some more information on what version of WordPress, WP Document Revisions, and what browser they’re using, that would great.
Forum: Plugins
In reply to: [WP Document Revisions] force attachment downloadsI would check out the following filter:
https://github.com/benbalter/WP-Document-Revisions/blob/master/wp-document-revisions.php#L749If you return false, it should force a “save-as” instead of opening in the browser.
Forum: Plugins
In reply to: [WP Document Revisions] Echoing File Type on Front EndTry using the global $wpdr class.
So let’s say I did:
$posts = get_posts ( array( 'post_type' => 'document' ) );And it returned an array with one document in it, I could do:
$wpdr->get_file_type( $posts[0] );And that would return the file type of that post. Feel free to post back here if you’re still having issues implementing it.
Forum: Plugins
In reply to: [WP Document Revisions] File name changes on upload & 404 errorHaving some difficulty recreating this. I’ve done the following, in order:
- Uploaded a document.
- Published the document
- Create a new post
- Added [documents] to the post
- Published the post
- Checked out the post on the front end
- Clicked a document listed in the post body
- The document then downloaded
Is there something you’re doing differently?
Forum: Plugins
In reply to: [WP Document Revisions] Pathing still broken in WAMP. Cannot Upload FilesI don’t have a WAMP environment set up at the moment, but I can do so in a few. Do you have anymore information on this issue before I get around to it? Is it giving you any sort of error? Do you have an odd WAMP setup (something very non-standard, etc.)?
Forum: Plugins
In reply to: [WP Document Revisions] Can't restore revisionsHowdy,
I opened an issue on GitHub to help fix this: https://github.com/benbalter/WP-Document-Revisions/issues/55I don’t have a ton of CoffeeScript knowledge, but I’ll work on trying to fix this issue asap.
Forum: Plugins
In reply to: [Edit Flow] custom statuses filter list problemThere might be an easier way to do this that Daniel could point to, but off the top of my head I would probably start with the following:
add_filter('views_edit-post', 'add_custom_post_types'); function add_custom_post_types($views) { $views['assigned'] = '<a href="?post_status=assigned&post_type=post">test</a>'; return $views; }Mind you, this is nowhere near complete. You’ll need to add some more code to have it show how many posts there are of that post type, to show as selected, etc. But ‘views_edit-post’ should be the filter you need to take advantage of.
If you need anymore help with the code, just post back here.
Forum: Plugins
In reply to: [Liveblog] I want to sort the live updates in opposite orderIf I were to hack hack hack this plugin to make it work, I would probably start with modify the following two lines:
- On this line, I would switch ‘DESC’ to ‘ASC’
- On this line, I would switch ‘prependTo’ to ‘appendTo’.
Mind you, these are all hacks hacks hacks, and I wouldn’t condone implementing this until the core code does (if you did, you wouldn’t be able to update!). And I haven’t tested this out, so it could cause more problems than it solves.
Daniel might have a better suggestion with a filter or action you could take advantage of that would make this less janky.
Forum: Plugins
In reply to: [Edit Flow] [Plugin: Edit Flow] Editorial Calendar Conflict since updateYea, there’s an issue with changing this, and I’ll point you to the original reason for why this filter was created. Here’s the original issue a user was encountering. Given that you use the Editorial Calendar you might no end up running into this issue very often, in order to see this problem in action do the following:
1) Make a post on todays date from Editorial Calendar
2) Give it a time before the current time
3) Edit that post
4) Publish itYou might notice that when you publish it, the “published time” doesn’t update to the current time. That’s the problem that EditFlow tries to navigate around with this filter. Nonetheless, I’ll continue to look into this to see if there’s anything that can be done.
Forum: Plugins
In reply to: [Edit Flow] [Plugin: Edit Flow] Editorial Calendar Conflict since updateOkay, took me a little bit to track this one down, but I think I figured out the problem. This filter is resetting the post_date_gmt which the Editorial Calendar relies on. I’ll take a look at how this could be fixed after I get back from class.
Peace,
CJForum: Plugins
In reply to: [Edit Flow] Post Publication StatusIf you made “Syndicated” a custom post status, I believe then that yes, it would be the case that you could have posts continue to show up on the site. Just make sure to alter your loops to include it.
This is the line you probably want to base the changes to your loop(s) off of:
$query = new WP_Query( array( ‘post_status’ => array( ‘pending’, ‘draft’, ‘future’ ) ) );
Forum: Plugins
In reply to: [Zone Manager (Zoninator)] Dividing zones into "child-zones"No worries. This is something I could definitely use so I’ll get started it on asap.