ricks03
Forum Replies Created
-
A note:
If I add the short code hide_paths=”yes” the URL changes to:
https://www.website.com/wp-admin/admin-ajax.php and the file opens.That’s not horrible, but it makes it hard to have the user know what URL to use for their file if it’s going to be referenced anywhere else.
I would think the URL should include the value from the filesURL? Where/what is the files URL good for otherwise?
Forum: Plugins
In reply to: [Really Simple CSV Importer] Post Date not workingI went back through and changed the format of the imported data to yyy-mm-dd and it works. Be nice to add a note to that page of import instructions to note the required format.
Forum: Plugins
In reply to: [Really Simple CSV Importer] Post Date not workingIf I understand correctly, you’re saying I can’t pass it a unix time string?
Is there a way to import a unix time string? Because Post Date I believe is unix time, so I was passing it unix time.
Or WPForms support could provide me the answer – which they did.
“I have checked this with the development team and they have sent me a code snippet to achieve what you have requested:
add_filter( 'wpforms_entry_save_data', static function ( $fields, $entry, $form_data ) { $value1 = ''; $value2 = ''; // These are field IDs to take data from, and to merge into. $field1_id = 1; $field2_id = 2; $merged_id = 3; foreach ( $fields as $field ) { if ( $field['id'] === $field1_id ) { $value1 = $field['value']; } if ( $field['id'] === $field2_id ) { $value2 = $field['value']; } } $fields[ $merged_id ]['value'] = $value1 . ' - ' . $value2; return $fields; }, 10, 3 );Simply create 2 Single Line Text fields and a Hidden field,
which will store the merged text fields when the form is submitted.
Please doublecheck if you have used the correct IDs for the Text and
hidden fields. $merged_id is where data will be saved (hidden field).
In case it helps, here’s our tutorial with the most common ways to add
custom code like this:
https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/.
For the most beginner-friendly option in that tutorial, I’d recommend
using the Code Snippets plugin:
http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/.
This will protect your code from updates and keep it easy to manage
right within your WordPress admin area.I hope this helps!I didn’t expect it to be a customization, I expected it to be a flag or default value or something?
Forum: Plugins
In reply to: [File Manager] Cannot remove plugin (update)The reason I stopped using this plugin was precisely because it also gives full DB access (not functionality I want in a file manager). Plugin support or not, that’s 100% compromised across your entire platform.
If the app installed without you doing it, it doesn’t have the ability to install itself. It unquestionably was installed from somewhere, or, more accurately, someone. If it was installed previously, and you didn’t change passwords, they already had access, so easy to get again.
Forum: Plugins
In reply to: [File Manager] Cannot remove plugin (update)If that plugin is being installed on you site, it’s likely maliciously, as it gives full access to your files AND DB.
I suggest you at the very least change all passwords associated with the site, up to and including the mySQL database file (from wp-config.php).
One thing I consider a minus about this plug-in is that, in addition to being a file manager, it’s ALSO a database manager, providing full access to the DB.
If this is on your site, someone has 100% access to everything about your site. That means they can have pulled all your user information as well as all your files. They have everything. you’re hacked.
Forum: Plugins
In reply to: [The Events Calendar] TEC And ZapierThis article suggests it should work: https://theeventscalendar.com/automating-event-promotion-zapier/
(since who would tweet events without their date), but the Event date isn’t included in the fields.
Forum: Plugins
In reply to: [bbPress Voting] Voting fixed to users, cookies or IPInteresting. Thanks!
- This reply was modified 6 years, 5 months ago by ricks03.
Forum: Plugins
In reply to: [bbPress Voting] Voting fixed to users, cookies or IPI”d love to see this linked to Roles, where only users of a certain role could vote, and then limit them to one vote per user ID based on whether they are in the correct role.
Forum: Plugins
In reply to: [File Manager] Public root pathI don’t believe that will resolve my issue?
But let me walk through the scenario.
My files are in /home/ricks03/public_html/wpfm
I use .htaccess to restrict access to http://mysite.com/wpfmNow I can use the WPFM plugin to browse the files, yet http://mysite.com/wpfm/document.pdf won’t work at all.
That makes the functionality identical between having the files in /home/ricks03/wpfm and /home/ricks03/public_html/wpfm (with the root folder set appropriately) – you can view the file in WPFM (and only WPFM) but can’t access the file at all at http://mysite.com/wpfm/document.pdf
But that’s not quite what I want. I want to be able to have a user click on http://mysite.com/wpfm/document.pdf and have the file open, IF they’re a member of the appropriate role, and not have access if they do not have the appropriate role. Using .htaccess doesn’t limit access by role.
If I place the files in /home/ricks03/public_html/wpfm and then limit access to the folder via .htaccess, is there a way then to create a URL that will work if (and only if) the user is a member of the appropriate role?
In webfm (drupal), you move the files out of the web root (so you can’t get there via a URL) and then webfm manages all the access to files via either the console, OR via direct URL.
Forum: Fixing WordPress
In reply to: PRev/Next buttons missingHow would I add prev/next tags to the date archive?
Forum: Fixing WordPress
In reply to: PRev/Next buttons missingIt looks like it’s related to how I get to the post.
http://www.irelandbybicycle.com/index.php/2015/06/23/ is missing the prev/next. I get there by selecting the date on the calendar.http://www.irelandbybicycle.com/index.php/my-blog-is-not-supposed-to-read-like-a-reality-tv-show/ (the same page) has the prev/next links.
I’d like them in both places