mandresi
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Why is the validation not being calledOk. Can you modify your
<button>
tag as:<button type="submit" class="button">
Adding this will submit your form when it is clicked.
However you will also have to remove
e.preventDefault()
frommycustomForm.js
because this code prevent the button to accomplish its submitting action.Forum: Developing with WordPress
In reply to: Why is the validation not being calledI don’t know if
mycustomForm.js
is handling the submission of the form when clicking the submit button, but if not, at first glance the<button>
tag should be written as:<button type="submit" class="button">
Forum: Fixing WordPress
In reply to: Stuck in generic login loop for 2 WP.com sites??????????If it is a plugin issue, you could try renaming the plugin folder, for example by prefixing it with underscore “_”. This will automatically deactivate that plugin and maybe you would be able to access the dashboard ?
Forum: Developing with WordPress
In reply to: Populate Fields via Drop-down selection@nomisrenrut > Please can you tell us :
- If the venues are static or dynamic
- If they are dynamic, who will be in charge of updating them ? Is it the administrator or your users.
Depending on that, we can propose you the best solution.
Forum: Fixing WordPress
In reply to: Custom Listing Fields for paid usersFirst, I need more information on how you implemented the listing packages. Did you use a custom field plugin ? Is it a custom development etc. It would be best if you can share your code so that I can give you the more appropriate solution.
Forum: Fixing WordPress
In reply to: Hacked ?! Error 403 opening wp-admin/update-core.phpIn fact what I fear is that some php files have been modified by the hacker. And this serves as a backdoor for him to enter.
Forum: Fixing WordPress
In reply to: Hacked ?! Error 403 opening wp-admin/update-core.phpWhat about replacing all the WordPress files, plugins and themes with a fresh one ? Then you change all your credentials and install anti-malware plugin.
Forum: Fixing WordPress
In reply to: Expand search box from right to leftTry adding this CSS code :
.wp-block-search__inside-wrapper {
justify-content: flex-end !important;
}Forum: Fixing WordPress
In reply to: Custom Listing Fields for paid usersCan you add one metadata on the user profile that will allow you to identify the plan taken by the user ? That metadata will serve as a flag to identify if the user is BASIC or PRO. You then use this value to display or not the custom fields related to PRO.
- This reply was modified 9 months, 3 weeks ago by mandresi.
Forum: Developing with WordPress
In reply to: Is there a forum for advice around wordpress plugins?Maybe there is a plugin that can help you somewhere. Unfortunately I can’t recommend you any.
Forum: Fixing WordPress
In reply to: Custom Listing Fields for paid usersI don’t really know how your website stores its information for PRO users but I suppose that it is stored inside a user metadata.
To display specific custom fields, only for PRO users, you will have to check if that user metadata is set and then display the custom fields.
I’m only giving you the internal process to accomplish here as I do not have enough information about how your website works.
Forum: Developing with WordPress
In reply to: Populate Fields via Drop-down selectionI don’t know of a plugin but if you want to accomplish this, the simplest way is to use Javascript for everything.
I will give you some details below:
- You can save all the venues along with their respective branch information inside JSON data.
- Set an event listener on the drop-down control. The function will identify the selected venue and then lookup its details from the JSON data.
- Display the found informations in a placeholder. (It will be a DIV html tag for example)
- All necessary formatting of the information will also be done through Javascript.
I hope this will help.
Forum: Developing with WordPress
In reply to: Is there a forum for advice around wordpress plugins?As WordPress is using primarily MySQL, I would have always used it to store the informations about the registered users. WordPress uses User metadata to associate some infos about a user account. You can use it. Concerning the scheduled event, you can use cron job to launch a specific php script that checks users to be notified.
Forum: Developing with WordPress
In reply to: Add URL parameter to pull data from spreads sheetGlad I could help you in certain way.
Forum: Developing with WordPress
In reply to: Add URL parameter to pull data from spreads sheetYes. There are many ways to do it. The one that I will show you is compatible with all kind of themes that you may use whether it is classic, block, etc.
You will have to create a custom plugin integrating shortcodes that will read your spreadsheet file, extract a specific field corresponding to an ID sent as a URL parameter, and finally display that content.
==== INSTRUCTIONS FOR USE ====
Create your spreadsheet with the following columns as header:
- ID
- Name
- Seats
Those Names will be used to identify the column position when extracting a specific field field.
Next, export that spreadsheet as a CSV file. (For example database.csv)
‘ID’ will contain a unique ID identifying the guest name records. This value will be sent as the URL parameter of the digital invitation. It is better not to use an incremented number to avoid people to iterate and see all the invitations.
Design the page of the invitation and name it for example “invitation”. That page is then accessed as for example
https://www.example.com/invitation/?id=XYZ
'XYZ'
will indicate the ID of the guest name in your spreadsheet for the extraction of the data to populate the invitation page.That invitation page, will contain some placeholders for the guest name and the number of seats. They will be filled using shortcodes. For example:
[csv-data filename="database.csv" ID="XYZ" displayColumn="Name" ]
This shortcode will be designed to read a CSV file named ‘
database.csv'
, extract the line having'XYZ'
as ID and finally display the column named"Name"
.==== IMPLEMENTATION ====
You can find the implementation steps below:
- Create the plugin structure. https://developer.www.ads-software.com/plugins/
- Create the code for the shortcode. https://codex.www.ads-software.com/Shortcode_API
- The shortcode will execute the following actions:
- Extract the URL parameter corresponding to the invitation ID – https://www.php.net/manual/en/reserved.variables.get.php
- Read the CSV file and search the records corresponding to the invitation ID. https://www.php.net/manual/en/function.str-getcsv
- Return the final data
I hope this will help.