Skip to content

Instantly share code, notes, and snippets.

View Alucard0x1's full-sized avatar
👽
alien is exist

Alucard0x1 Alucard0x1

👽
alien is exist
View GitHub Profile
@Alucard0x1
Alucard0x1 / code
Created September 28, 2024 12:43 — forked from Lonsdale201/code
JetFormBuilder - Check ajax submit success or other status
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets
// if you want to handle other error statuses, change "invalid_email" to the one you want to monitor.
document.addEventListener( 'DOMContentLoaded', function() {
const { addAction } = window.JetPlugins.hooks;
addAction( 'jet.fb.observe.after', 'test/onSubmit', init );
function init( observable ) {
observable.form.submitter.status.watch( onFormSubmit );
@Alucard0x1
Alucard0x1 / gist:7ee5c5168efc4e522fe42ca942ba6dbf
Created September 28, 2024 12:42 — forked from Qubadi/gist:b918070aaf15f1e48b0b2ad9baeeb117
JetFormBuilder that allows users to crop images with some great new functionality
Copy the following HTML code and create a HTML snippet using your snippet plugins.
Paste the code into the plugin and save it.
I’ve developed a new custom feature for JetFormBuilder that allows users to crop images with some great new functionality.
Here’s a quick rundown of what it does:
JetFormBuilder integration: This custom code integrates seamlessly with JetFormBuilder’s file upload system, making the image
inputs interactive and ready for cropping, all through a custom action hook.
CropperJS integration: It loads the necessary CSS and JavaScript from CropperJS, which is the library responsible for handling
@Alucard0x1
Alucard0x1 / gist:32cd904f07ac06ee5dee3064031dc070
Created August 27, 2024 01:16 — forked from Qubadi/gist:ecc4e8db265ef2f2e642120bac2a8ef2
JetEngine profilebuilder, profile view counter
Copy the following PHP code and create a PHP snippet using your snippet plugins.
Paste the code into the plugin and save it.
Add the [user_profile_view_count] shortcode to your profile single page
Custom JetEngine code that shows the view count of every profile in ProfileBuilder.
______________________________________
@Alucard0x1
Alucard0x1 / gist:ebcf302df8ddd5116e3521ff89f02bda
Created July 20, 2024 15:43 — forked from Qubadi/gist:74e13293a7ebd23058ee005f9c66497d
Enhance WordPress 404 Page Using Elementor Template
Description:
1. Copy the following PHP code and create a PHP snippet using your snippet plugin. Paste the code into the plugin and save it.
2. Create a template page using Elementor Templates
3. Replace the actual Elementor template ID in this line: $elementor_404_template_id = 8209;. Change the ID number 8209 to your
template page ID, and save/update the code.
This code snippet customizes the default 404 error page in WordPress by using a specified Elementor template.
It hooks into the template_include filter and checks if the current page is a 404. If it is, it attempts to load and
display a custom 404 template created with Elementor (using the provided template ID). If successful, it outputs the
custom template content, otherwise, it falls back to the default template. This allows for a more visually appealing
@Alucard0x1
Alucard0x1 / gist:0045620f93ac9c091fd4ec3fc7503b2d
Created May 7, 2024 09:05 — forked from Qubadi/gist:c83878e6244261b39ff387d4c9739f67
JetFormBuilder media field, enhanced choose file
UPDATED: 07.05.2024
1. We've enhanced the JetFormBuilder with a refined custom code, improving both style and functionality for file selection. The latest
update introduces support for the repeater field's media capabilities, offering a more streamlined and efficient user experience for
handling multiple files within forms.
2. Copy this code, create a new HTML snippet, and paste it into your snippet plugin. Save it as a header or footer.
__________________________________________
See the youtube tutorials here ( OLD ):
https://youtu.be/lOghzLiR73Q?si=DbNNcCkKzkv_mAQl
__________________________________________
@Alucard0x1
Alucard0x1 / gist:9f89d595bcb9006c103b3fea028889f0
Created May 7, 2024 09:04 — forked from Qubadi/gist:472f3bc974c82b9d5c3879a4c7b8439b
JetFormBuilder choose files: Dynamic plus icon & total file tracking
1. New custom code for JetFormBuilder improves how files are uploaded and displayed.
The feature shows a set number of uploaded files directly (four on desktops, fewer on smaller devices),
with additional files represented by a dynamic plus icon that indicates the count of remaining uploads.
This enhancement ensures users can easily track and manage their uploads across different devices.
2. Copy this code, create a new HTML snippet, and paste it into your snippet plugin. Save it as a header or footer.
________________________________________________________
<style>
@Alucard0x1
Alucard0x1 / gist:9cdff47e4dc0fa820ce7a9c589e63faf
Created May 5, 2024 14:08 — forked from Qubadi/gist:799bc3964e98025ffeb26e123be4ff12
Jetformbuilder and Jetengine form: Dynamic Word Limit Control for TinyMCE Editors ( Wysiwyg Field )
Enhance Jetformbuilder and Jetengine form ' TinyMCE editors (WYSIWYG Field) with a dynamic word limit control feature.
This script adds an interactive word count display that not only tracks the number of words typed but also dynamically
adjusts the text content to adhere to a predefined limit. The functionality is designed to provide visual feedback and
prevent over-typing by automatically trimming text to the set limit.
1. Firstly, copy the custom PHP code and paste it into your snippet plugins. Create a new PHP snippet and save it as "Everywhere".
2. In Jetengine form, add a WYSIWYG Field, and the form field name is: text_count_limit_jetengine, and for Jetformbuilder
WYSIWYG Field and the form field name is: text_count_limit_jetformbuilder
3. You can adjust the variable 'limit' to control the word limit for this specific editor. Currently, it's set to 100,
but you can change it to suit your needs. Find this line and change it: var limit = 100; // Word limit for this specific editor.