Skip to content

Instantly share code, notes, and snippets.

View sakibstime's full-sized avatar
🎯
Focusing

Md. Sohanur Rahman Sakib sakibstime

🎯
Focusing
View GitHub Profile
@Qubadi
Qubadi / gist:07e71872af75d96f8f811306295dafee
Last active November 3, 2024 12:17
Current user media access control in WordPress
UPDATED: 16.05.2024
Description
This PHP snippet enhances the security and organization of the WordPress media library by enforcing user-specific access controls.
It ensures that users can only view, edit, and delete their own uploaded media files, not those uploaded by others.
This functionality is particularly useful in multi-author WordPress environments where maintaining individual user
media privacy is crucial. By integrating this code, administrators can streamline media management and safeguard user
content from unauthorized access.
1. Copy this PHP snippet and paste it into your snippet editor, then save it.
@Qubadi
Qubadi / gist:3e11f72f65a6507e4d89dfd15f2b1873
Created February 16, 2024 16:42
JetFormBuilder submission feedback auto-scroll
Add the code to your snippet plugins, create a new js, javascript snippet, paste the code there and save it.
This script significantly improves the interaction with JetFormBuilder forms by automatically scrolling the
browser window to show success or error messages following a form submission. It is compatible with both AJAX and
traditional page reload submission methods. Regardless of the submission type, the script ensures the feedback
messages are immediately brought into view, smoothly guiding users to see their form submission outcome.
________________________________________________________________________________________
jQuery(document).ready(function($) {
function scrollToMessage() {
@Qubadi
Qubadi / gist:539d5682527ca4c13efd85e9ca670b7f
Last active September 5, 2024 12:06
JetFormBuilder change display message to Popup
UPDATED: 22.08.2024
Copy the following HTML code and create a HTML snippet using your snippet plugins.
Paste the code into the plugin and save it.
Update the targetPages array by replacing 'contact' and 'contact-2' with your desired page slugs. The array supports multiple pages, so you can easily add or remove slugs as needed.
_________________________________________
<style>
/* Overlay Styling */
@Qubadi
Qubadi / gist:97c7a94f98bb80a8e86fce2f1c7146e5
Last active June 22, 2024 21:09
JetFormBuilder Handling File Size Exceedance with Popup Notifications
Tutorials here: https://www.youtube.com/watch?v=qljahZMZcj4
_______________________________________________________
<style>
/* Modal Background */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
@Qubadi
Qubadi / gist:c83878e6244261b39ff387d4c9739f67
Last active March 21, 2025 16:46
JetFormBuilder media field, enhanced choose file
UPDATED: 01.02.2025
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
__________________________________________
@Qubadi
Qubadi / gist:1a5ec426653964ba4e36b7ee212c8606
Last active January 21, 2025 10:24
Jetformbuilder, JavaScript Snippet to Disable Past Dates for Jetformbuilder
UPDATED: 07.05.2024
Jetformbuilder, Datefield, Disable Past Dates.
1. Copy the code, and create a JS Snippet , and paste the code to your snippet plugin, and save it as header / footer.
2. Then create a date field, and click block, then scroll down to advanced, add your classname there.
3. Dont forget to add the classnames to: input.ADD YOUR CLASSNAME HERE.jet-form-builder__field.date-field
its three places you have to add the classname to.
4. This code support multiple date fields and you can use the same classname.
_____________________________________________________________________
@Qubadi
Qubadi / gist:e1fa473eefc84bacae1c242a1a6a1cc4
Last active January 28, 2025 11:55
Jetformbuilder form, A custom code for auto detect country and land code phone.
UPDATED 28/04/2024
__________________
Jetformbuilder form, A custom code for auto detect country and land code phone.
This code works for all Jetformbuilder.
The provided custom code is a PHP function for WordPress that adds international telephone input functionality to a website.
It includes CDN links for the necessary CSS and JavaScript files, applies custom styles for the phone input field,
and uses jQuery for dynamic behavior. The JavaScript part initializes the international telephone input with features
like auto-detecting the user's country using their IP address and updating the input field with the full phone number
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
@mrtns
mrtns / gist:78d15e3263b2f6a231fe
Last active January 19, 2025 08:02
Upgrade Chrome from Command Line on Ubuntu
# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Update