bcr8tiv
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 Database Addon - CFDB7] Show another columnWell….As you may have guessed it I figured out how to add a new column and “customize” it. It’s quite simple…
In the same directory: /public_html/wp-content/plugins/contact-form-cfdb7/inc/admin-subpage.php.You will be working to make the following changes.
Starting on line: 149 locate the following code
$columns['form-date'] = 'Date Submitted';
Right above this line you will be adding your custom fields that you created in Contact Form 7. So for example:
} $columns['your-message'] = 'Message'; $columns['form-date'] = 'Date Submitted'; }
You can change the column title to what every you want
$columns['your-message'] = 'Column Title';
. From here you can re arrange the columns display order.Hope this helps!
NOTE: in order for this to work properly the field name $columns[‘fieldname’] MUST match that of your Contact Form 7.
RECOMMENDATION: If you plan on doing this I would recommend setting the code in my previous posting to 2 and then call/add the columns in the order you wish to display them. The higher the number the more columns will display resulting in duplicates.
- This reply was modified 5 years, 4 months ago by bcr8tiv.
Answer to this can be found on in the following topic:
Forum: Plugins
In reply to: [Contact Form 7 Database Addon - CFDB7] Show another columnTo make things simple, what you will need to do is go into the following folder directory: /public_html/wp-content/plugins/contact-form-cfdb7/inc/admin-subpage.php
In this file, look for line 147 with the following code:
if ( sizeof($columns) > 4) break;
Change the default “4” to the number of columns you wish to display. However, note that increasing this number to anything larger than 8 – 10 could make the result a clutter mess on the admin side. This also depends on what that field is.
Can I rearrange the column displayed?
– Yes….well kind of. If displaying more than 8 isn’t resulting in displaying the column you want, you will have to re arrange the display structure in Contact Form 7’s text field in order to make it display.I will update this if I find another method to this.