Josh Nankivel
Forum Replies Created
-
The use of pluggable.php is what’s doing it, but I can’t say if it’s a problem with wpDirAuth or the other plugins.
This is where the conflict is coming from with WordPress Twitter Boostrap CSS:
// Handle any upgrades as necessary (only go near this if it's the admin area) if ( is_admin() ) { require_once( ABSPATH . 'wp-includes/pluggable.php' ); if ( current_user_can( 'manage_options' ) ) { $this->updateHandler(); } }
FYI, same issue occurred with the latest version of WordPress Twitter Bootstrap CSS and wpDirAuth
FYI, ran into the same error with wpDirAuth and the latest release of WordPress Twitter Bootstrap CSS:
Forum: Plugins
In reply to: [Smallerik File Browser] You are not allowed to edit these settingsI discovered it defaults to having user id = 1 as the only one with any admin rights on the plugin settings. So in /plugins/wpfib/includes/options.php line 263 – change the return to false temporarily, add your admin username to the permissions and then change it back.
I fixed the problem, had to remove all of the references from function calls and put them in the functions themselves. So I took all the ampersands in front of the variables in the calls and moved those ampersands to the functions themselves.
Then I discovered the image links used a ‘wpfib’ directory name instead of what came by default when I unzipped it, so I renamed the directory.
Then I discovered it defaults to having user id = 1 as the only one with any admin rights on the plugin settings. So in /plugins/wpfib/includes/options.php line 263 – change the return to false temporarily, add your admin username to the permissions and then change it back.
I had the same issue.
I’m not too good with php, but I can see that getID3 doesn’t support PDFs at the moment. I haven’t been able to find where to modify the plugin code, but I know this is due to my lack of php knowledge.
I know this is a band-aid, but since I’m a database guy, I’ve confirmed this is happening with PDFs from all sources, and all I care about are PDF files, for now I’ve just created triggers on the table to convert the file_date back to PDT:
CREATE TRIGGER BeforeInsertUtcToPdt
BEFORE INSERT ON wp_wpfb_files
FOR EACH ROW
SET NEW.file_date = CONVERT_TZ(NEW.file_date,’+00:00′,’-7:00′);CREATE TRIGGER BeforeUpdateUtcToPdt
BEFORE UPDATE ON wp_wpfb_files
FOR EACH ROW
SET NEW.file_date = CONVERT_TZ(NEW.file_date,’+00:00′,’-7:00′);Update: I have a dev sandbox running on my laptop and just confirmed the same behavior happens there as well.
So if the file’s actual creation time is 15:00 for example (in the metadata of the file itself), it shows up as 22:00.
I started to dig around and when I use a text editor to view a sample PDF file, I can see that the UTC value is in the PDF metadata itself:
(D:20130321215958Z00’00’)
The 2159 there is 21:59, when the date created shown everywhere else (Adobe Reader, on the file server, etc.) shows 14:59. And I just created this PDF myself, so I know I actually created it at 14:59 local time.
This leads me to believe that the standard for PDF is for this piece of metadata to be converted to UTC upon file save.
WP-Filebase is *likely* pulling file_date from this metadata field for PDF files, since the dates I’m seeing in Filebase are all UTC.
Perhaps for PDF files, WP-Filebase should be pulling file_date from another field in the metadata?
Forum: Plugins
In reply to: [WP-Filebase Download Manager] how to set a cron jobExcellent, thank you so much!
Forum: Plugins
In reply to: [WP-Filebase Download Manager] how to set a cron jobgbj, can you elaborate on how to schedule the cron to synch wp-filebase more frequently than once an hour?
Forum: Plugins
In reply to: Allow readers to subscibe to specific category/tag combosThanks esmi, but I’m looking for something different. I don’t want a feed for a single category. I’m looking for a way for users to create their own custom feed (email notification preferably) using a combination of categories. So out of say, 4 main category types, users can select any combination to create their custom feed.
Thanks!
Create a new text file and name it php.ini
Add the following line to the file
upload_max_filesize = 32M
Upload this php.ini file to your /wp-admin directory where your blog is hosted.
Note: be careful that a PC doesn’t create the file as php.ini.txt. This can happen since by default, windows doesn’t show you file extensions for known file types. When you save the text document using notepad, drop down the “save as type” field and choose “all files” then specify the name as “php.ini”.
Josh Nankivel
pmStudent.comForum: Fixing WordPress
In reply to: Authors ordered by post count?How about allowing for a sort by the authors’ recent posts? This query should do it. I’m good at writing queries, but not so much with PHP. If this was an option in list authors plus, it would rock!
SELECT display_name FROM wp_users JOIN (wp_posts) ON ( wp_users.ID = wp_posts.post_author ) GROUP BY display_name ORDER BY MAX( post_date ) DESC