Giter VIP home page Giter VIP logo

codepress / admin-columns Goto Github PK

View Code? Open in Web Editor NEW
67.0 10.0 25.0 27.53 MB

Admin Columns allows you to manage and organize columns in the posts, users, comments, and media lists tables in the WordPress admin panel. Transform the WordPress admin screens into beautiful, clear overviews.

Home Page: http://www.admincolumns.com

License: GNU General Public License v3.0

PHP 60.19% JavaScript 18.29% Shell 0.07% TypeScript 9.62% SCSS 8.98% Nunjucks 0.07% Svelte 2.70% CSS 0.08%
php wordpress wp-admin columns

admin-columns's Introduction

Admin Columns WordPress WordPress WordPress WordPress

Contributing to this project

Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.

Following these guidelines will help us get back to you more quickly, and will show that you care about making Admin Columns better just like we do. In return, we'll do our best to respond to your issue or pull request as soon as possible with the same respect.

Use the issue tracker

The issue tracker is the preferred channel for bug reports and features requests, but please respect the following restrictions:

  • Support issues or usage questions that are not bugs should be posted on the Plugin Support Forum.
  • Please do not derail or troll issues. Keep the discussion on topic and respect the opinions of others.
  • Make sure to read all the labels below to avoid confusion on status of each issue

Labels on issue tracker

There is an idea behind this naming convetion, and we will stick to it because it's faily important to keep thing tidy if we want to move forward fast and clean.

We will split the labels in two pieces, groups of labels and a label name, following the pattern below:

<label-group>:<label-name>

Below you will find a list of fixed ones and it's explanations and what variables we might have:

Group: "Type"

  • type:addon
  • type:bug
  • type:enhancement
  • type:feature
  • type:invalid
  • type:refactor

Group: "Status"

  • status:feedback
  • status:in_progress
  • status:on_hold
  • status:rejected
  • status:wontfix

Bug reports

A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports with complete error messages, environment details and screenshots are extremely helpful — thank you!

Guidelines for bug reports:

  1. Use the GitHub issue search or Admin Columns Forum — Someone might already know about it, so please check if the issue has already been reported.

  2. Isolate the problem — The better you can determine exactly what behavior(s) cause the issue, the faster and more effectively it can be resolved. “I’m getting an error message.” is not a good bug report. A good bug report shouldn't leave others needing to contact you for more information.

Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) experience the problem? What outcome did you expect, and how did it differ from what you actually saw? All these details will help people to fix any potential bugs.

Example:

Short and descriptive example bug report title

A summary of the issue and the environment/browser in which it occurs. If suitable, include the steps required to reproduce the bug.

  1. This is the first step
  2. This is the second step
  3. Further steps, etc.

Any other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, and potential solutions (and your opinions on their merits).

Note: In an effort to keep open issues to a manageable number, we will close any issues that do not provide enough information for us to be able to work on a solution. You will be encouraged to provide the necessary details, after which we will reopen the issue.

Feature requests

Feature requests are very welcome! But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.

Building something great means choosing features carefully especially because it is much, much easier to add features than it is to take them away. Additions to Admin Columns will be evaluated on a combination of scope (how well it fits into the project), maintenance burden and general usefulness to users.

admin-columns's People

Contributors

davidmosterd avatar dgstefan avatar engelen avatar fmarier avatar matzeeable avatar pedro-mendonca avatar tobiasschutter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admin-columns's Issues

Undefined variable in pro addon filter module

Hi, just purchased & installed admin columns pro-addon in my site.

So I turned filtering for several columns and for each filter element in the current admin page shows an "undefined variable error in line 109 in file cac-addon-pro/classes/filtering/classes/model.php. I look it and that undefined variable is $name. Because it gets used before defining it the line after:

$current = isset( $_GET['cpac_filter'] ) && isset( $_GET['cpac_filter'][ $name ] ) ? $_GET['cpac_filter'][ $name ] : '';

$name           = $column->properties->name;
$view_all_label = $column->options->label;

If I put the definition before the error dissapears.

PD. Maybe you have to enable WP_DEBUG to see the error, I'm not sure about that.

Thanks.

Sort by user_meta in Multisite (patch included)

When runing a multisite installation the plugins does not return any results when tryng to sort users by a user_meta value. This is a bug in the Codepress Admin Columns Pro add-on.

In Wordpress, user meta is stored in the wp_users table and not in wp_xx_users table. On line 206 and 207 of the file cac-addon-pro\classes\sortable\classes\user.php:

$wpdb->prefix should be changed to $wpdb->base_prefix

Patch:

Replace line 206 and 207 with
$user_query->query_where .= " AND {$wpdb->base_prefix}users.ID IN ({$column_names})";
$user_query->query_orderby = "ORDER BY FIELD({$wpdb->base_prefix}users.ID,{$column_names})";

Sorting by hidden custom field (ex: _wpcf_belongs_app_id) returns no posts

I've purchased the pro add on and am attempting to add a column for my custom field "_wpcf_belongs_app_id" as well as the ability to sort it. When viewing the posts list and clicking "sort" for that column, no posts return.
image

Prior to selecting sort for this column.
image

After sort is selected for this column:
image

Taxonomy support for Media

Add taxonomy column support for Media (attachment object) and make them sort.

register_taxonomy_for_object_type( 'post_tag', 'attachment' )

reference: transmitstudio

PHP Warnings when performing WordPress AJAX requests

Hi, I love your plugin but I believe I found a bug with the latest version.

When making an AJAX request in WordPress ( following the method recommended in the codex at http://codex.wordpress.org/AJAX_in_Plugins ) as a logged out user I'm seeing PHP warnings in the output.

Warning: array_merge(): Argument #2 is not an array in /Applications/MAMP/htdocs/gm-newsroom/wp-content/plugins/codepress-admin-columns/classes/storage_model/post.php on line 97

Warning: array_filter() expects parameter 1 to be array, null given in /Applications/MAMP/htdocs/gm-newsroom/wp-content/plugins/codepress-admin-columns/classes/storage_model/post.php on line 97

Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/gm-newsroom/wp-content/plugins/codepress-admin-columns/classes/storage_model.php on line 290

I believe this is because you are initializing the plugin in the admin and performing queries that assume the user is logged in. However during an AJAX request is_admin always returns true ( even on the front end ) but the user may not logged in. I could be wrong about that - just my two cents.

I've applied a temporary patch which works for my needs but may have some unintended consequences that I am not aware of.

if( defined('DOING_AJAX') && DOING_AJAX ) return false;

I've placed this at the top of the init method in your main plugin file.

Output Buffering Fails

Codepress admin columns causing output buffering error:

Fatal error: ob_end_flush() [ref.outcontrol]: Cannot use output buffering in output buffering display handlers in /home/sitename/public_html/wp-includes/functions.php on line 2736

Add counter column

New Field Type (for Custom Fields mainly) called counter, which count how many elements are set for the given post meta.
For instance, I use the tag custom field 3 times : in the table view, I would get ‘3’ rather than the list of the 3 values.

Add sort and/or filter by custom taxonomy?

I would love to be able to sort by my custom taxonomy columns like we can already do with the default categories and tags. Is this possible? I know there are tons of tutorials on how to do this out there and expected it would already be included in the Pro version, which I'm loving otherwise. It's a bummer to have to hand-code just those bits when everything else works so seamlessly.

Thanks!

Date conversion impossible - max execution time

We have a postmeta for our custom post type that's filled with either a timestamp or an empty string.

When we want it to be converted by Admin Columns the script reaches its maximum execution time. Using the plain value is fine. Conversion not.

Filtering char length

The issue I am having is that the filter drop down lists do not show everything it should. Before the update, everything worked fine. It seems that the newest version drops anything that is over 26 characters in length from the list, thus making the filtering drop downs incomplete.

CAC2.0.0 WP3.6 New Activation Errors

Installed CAC 2.0.0 nightly with the three v0.1 addons in a fresh WP3.6 site - installation is smooth, operation is not. Presented here with the following repeating errors:

Warning: include_once(/home/site/public_html/site.com/wp-content/plugins/codepress-admin-columns-master/classes/column/link) [function.include-once]: failed to open stream: Success in /home/site/public_html/site.com/wp-content/plugins/codepress-admin-columns-master/classes/storage_model.php on line 331

Warning: include_once() [function.include]: Failed opening '/home/site/public_html/site.com/wp-content/plugins/codepress-admin-columns-master/classes/column/link' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/site.com/wp-content/plugins/codepress-admin-columns-master/classes/storage_model.php on line 331

Screenshot:

CAC WP3.6 Error

Not sure if this is a plugin conflict or not yet.

Language Translation

Hi, would like to translate into Portuguese-Brazil, but can not find some Frond End strings like:

  • All
  • Empty
  • Not Empty
  • Reset Sorting

Could you have a look and add it please??

Have a look at the image attached!!

Thanks!!!
language-translate

Problem with "Quick Edit"

Hello, after using "Quick edit", custom columns disappear and the edited row reverts back to the original WP admin table layout.

Conflict with another Plugin!! BUG MyMail Newsletter Plugin Conflict

Hi, When I have your plugin active with another plugin (MyMail Newsletter Plugin), and I try to duplicate a newsletters from the "List Post Screen" I receive an error from my browser and my server log is:

[Mon Sep 16 14:36:18 2013] [warn] [client 187.11.153.189] mod_fcgid: stderr: PHP Fatal error: Call to undefined function _get_list_table() in /var/www/vhosts/piaget.g12.br/httpdocs/wp-content/plugins/codepress-admin-columns/classes/storage_model/post.php on line 94, referer: http://www.piaget.g12.br/wp-admin/edit.php?post_type=newsletter

I have the latest version of you plugin and also the Sort Order Addon.

Any clue?? Thanks!

Filter Taxonomy Drop-down enhancement

It would be great if there was a selection in the filter drop-down list that let you filter by items that have yet to be assigned a category.

I hope that makes sense

Great plugin

J

Unclosed link breaks plugin

Whenever a "tab" in the in the Admin Columns page (for example Author) is clicked the browser sends the user to the plugin homepage (http://www.codepresshq.com/wordpress-plugins/admin-columns/).

When examining the source there seem to be an unclosed tag before

...

Have tried with v 3.6.1 - 3.7.1 of wordpress and v 2.0.3 - 2.1.0 of Admin Columns.

This problem basically makes the plugin unsuable. Se screenshot:

admin-columns-bug

[v2.01] Problems With "Before" and "After" Fields Stripping Out Code

I just upgraded to v2.01.

I have some custom columns set up. One of these is set to display a thumbnail for the post which is NOT in the media library. It uses a custom Wordpress field which contains the name of the image (e.g. image.jpg)

In the earlier version, I added this code in the "Before" box to reference and style the image:

<img class="attachment-80x80 wp-post-image" width="80" height="60" src="http://www.dev.sitename.com/images/

and in the "After" box, I had: ">

So, when Admin Columns inserted my custom field, the output displayed the image thumbnail perfectly.

However, in v2.01, after adding the "Before" and "After" code and saving it, my code is removed and replaced by:

Before box -> <img class=\\

After box -> \\

Any ideas?

Thanks,

Chris

Serial input field missing

Pro version missing serial upload after activation.
Plugin shows up in 'Plugins' but not in 'Settings'

Copied folder to plugins via FTP.
Also tried to upload zip file directly through WordPress admin.
Both same outcome.

admin_notice appear under h2 with a delay

Probably because of the time the DOM takes to fill.
jQuery('div.updated, div.error').not('.below-h2, .inline').insertAfter( jQuery('div.wrap h2:first') );
is run by WP to place it under the h2.

Slider

Sometimes setting the width with the slider can become a bit annoying when you’re aiming for a specific value (e.g 16). If we had a textfield along with the slider it would make things more easier for people with shaky hands

Sorting reset from settings screen

Sometimes the server can run out of memory when sorting huge amount of records. To prevent a whitescreen, the user should be able to reset sorting at any time. Solution: Add reset sorting buttin to the settings screen of admin columns.

Admin Columns menu appears after refresh

Hi. After installing the plugin, a new menu item appears under the "Settings" button, but it appears empty, without any text or image. After refreshing the admin, the new item have now the normal content "Admin columns" name and icon. Any ideas about this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.