<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Applications Archives - CNERIS</title>
	<atom:link href="https://cneris.com/en/category/web-applications/feed/" rel="self" type="application/rss+xml" />
	<link>https://cneris.com/en/category/web-applications/</link>
	<description></description>
	<lastBuildDate>Sun, 17 Nov 2024 22:22:32 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</title>
		<link>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/</link>
					<comments>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 17 Nov 2024 22:22:01 +0000</pubDate>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[free shipping]]></category>
		<category><![CDATA[shipping methods]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2706</guid>

					<description><![CDATA[<p>If the option "Hide other shipping methods when free shipping is available" is not displayed, you can achieve this behavior manually or by adding custom code. Option 1: Use predefined rules Go to WooCommerce &gt; Settings &gt; Shipping and select your shipping zone. Configure: A Free Shipping method with a minimum order of 60 euros. [...]</p>
<p>The post <a href="https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/">The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If the option <strong>&#8220;Hide other shipping methods when free shipping is available&#8221;</strong> is not displayed, you can achieve this behavior manually or by adding custom code.</p>
<h4>Option 1: Use predefined rules</h4>
<ol>
<li>Go to <strong>WooCommerce &gt; Settings &gt; Shipping</strong> and select your shipping zone.</li>
<li>Configure:
<ul>
<li>A <strong>Free Shipping</strong> method with a minimum order of 60 euros.</li>
<li>A <strong>Flat Rate Shipping</strong> method with a base cost of 5 euros.</li>
</ul>
</li>
<li>While WooCommerce may not automatically hide the flat rate, customers will be able to choose free shipping when eligible.</li>
</ol>
<h4>Option 2: Use custom code</h4>
<p>Add this code to your <code>functions.php</code> file to automatically hide other shipping methods when free shipping is available:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php">add_filter( 'woocommerce_package_rates', 'hide_shipping_methods_when_free_is_available', 100 );<br />
function hide_shipping_methods_when_free_is_available( $rates ) {<br />
$free = array();<br />
foreach ( $rates as $rate_id =&gt; $rate ) {<br />
if ( 'free_shipping' === $rate-&gt;method_id ) {<br />
$free[ $rate_id ] = $rate;<br />
break;<br />
}<br />
}<br />
return ! empty( $free ) ? $free : $rates;<br />
}<br />
</code></div>
</div>
<h4>Final Step</h4>
<ul>
<li>Save your changes and refresh the checkout page to test</li>
</ul>
<p>The post <a href="https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/">The option &#8220;Hide other shipping methods when free shipping is available&#8221; is not displayed</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/the-option-hide-other-shipping-methods-when-free-shipping-is-available-is-not-displayed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How you can set a default featured image for each post category</title>
		<link>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/</link>
					<comments>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Oct 2024 08:59:48 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[featured image]]></category>
		<category><![CDATA[post category]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2671</guid>

					<description><![CDATA[<p>In WordPress, you can set a default featured image for each post category by using a snippet of code in your theme's functions.php file. This code checks if a post has a featured image assigned; if not, it sets a default image based on the post's category. Code to Assign Default Featured Image by Category [...]</p>
<p>The post <a href="https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/">How you can set a default featured image for each post category</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In WordPress, you can set a default featured image for each post category by using a snippet of code in your theme&#8217;s <code>functions.php</code> file. This code checks if a post has a featured image assigned; if not, it sets a default image based on the post&#8217;s category.</p>
<h4>Code to Assign Default Featured Image by Category</h4>
<ol>
<li>Open your theme&#8217;s <code>functions.php</code> file (preferably a child theme to avoid losing changes with updates).</li>
<li>Add the following code, replacing the URLs with your default images for each category:</li>
</ol>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><br />
</code></div>
</div>
<p>function set_default_thumbnail($post_id) {<br />
if (has_post_thumbnail($post_id)) {<br />
return;<br />
}</p>
<p>// Define default images for each category<br />
$default_images = [<br />
&#8216;category-1&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image1.jpg&#8217;,<br />
&#8216;category-2&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image2.jpg&#8217;,<br />
&#8216;category-3&#8217; =&gt; &#8216;https://your-site.com/wp-content/uploads/category-image3.jpg&#8217;,<br />
];</p>
<p>// Get post categories<br />
$categories = get_the_category($post_id);</p>
<p>// Check if categories are assigned and find a matching default image<br />
foreach ($categories as $category) {<br />
if (array_key_exists($category-&gt;slug, $default_images)) {<br />
$image_url = $default_images[$category-&gt;slug];</p>
<p>// Download image and set as featured image<br />
$image_id = attach_image_from_url($image_url, $post_id);<br />
if ($image_id) {<br />
set_post_thumbnail($post_id, $image_id);<br />
}<br />
break;<br />
}<br />
}<br />
}<br />
add_action(&#8216;save_post&#8217;, &#8216;set_default_thumbnail&#8217;);</p>
<p>// Function to download and attach the image to the post<br />
function attach_image_from_url($image_url, $post_id) {<br />
$upload_dir = wp_upload_dir();<br />
$image_data = file_get_contents($image_url);<br />
$filename = basename($image_url);</p>
<p>if (wp_mkdir_p($upload_dir[&#8216;path&#8217;])) {<br />
$file = $upload_dir[&#8216;path&#8217;] . &#8216;/&#8217; . $filename;<br />
} else {<br />
$file = $upload_dir[&#8216;basedir&#8217;] . &#8216;/&#8217; . $filename;<br />
}</p>
<p>file_put_contents($file, $image_data);</p>
<p>$wp_filetype = wp_check_filetype($filename, null);<br />
$attachment = [<br />
&#8216;post_mime_type&#8217; =&gt; $wp_filetype[&#8216;type&#8217;],<br />
&#8216;post_title&#8217; =&gt; sanitize_file_name($filename),<br />
&#8216;post_content&#8217; =&gt; &#8221;,<br />
&#8216;post_status&#8217; =&gt; &#8216;inherit&#8217;<br />
];</p>
<p>$attach_id = wp_insert_attachment($attachment, $file, $post_id);<br />
require_once(ABSPATH . &#8216;wp-admin/includes/image.php&#8217;);<br />
$attach_data = wp_generate_attachment_metadata($attach_id, $file);<br />
wp_update_attachment_metadata($attach_id, $attach_data);</p>
<p>return $attach_id;<br />
}</p>
<h4>Code Explanation</h4>
<ul>
<li><strong><code>$default_images</code></strong>: Defines default images for each category using the category slug as the key and the image URL as the value.</li>
<li><strong><code>set_default_thumbnail</code></strong>: This function runs when a post is saved. If the post has no featured image, it finds the first category with a default image in <code>$default_images</code> and sets it as the featured image.</li>
<li><strong><code>attach_image_from_url</code></strong>: This function downloads the image from the URL and attaches it to the post as a media file, making it the featured image.</li>
</ul>
<p>This code will automatically assign a default featured image for new or edited posts based on their category.</p>
<p><strong>Note</strong>: Make sure to test this code in a development environment before implementing it on your live site, and replace the example URLs with your actual default image URLs.</p>
<p>The post <a href="https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/">How you can set a default featured image for each post category</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-you-can-set-a-default-featured-image-for-each-post-category/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How can you create an autoresponder in WordPress that returns a jpg to the user whose content is generated from a form?</title>
		<link>https://cneris.com/en/how-can-you-create-an-autoresponder-in-wordpress-that-returns-a-jpg-to-the-user-whose-content-is-generated-from-a-form/</link>
					<comments>https://cneris.com/en/how-can-you-create-an-autoresponder-in-wordpress-that-returns-a-jpg-to-the-user-whose-content-is-generated-from-a-form/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 27 Oct 2024 11:47:42 +0000</pubDate>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[advanced form plugin]]></category>
		<category><![CDATA[autoresponder in wordpress]]></category>
		<category><![CDATA[custom image in wordpress]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2656</guid>

					<description><![CDATA[<p>Creating an autoresponder in WordPress that sends a custom JPG image generated from form data is possible, but requires a combination of PHP code and advanced plugins to handle both the form and the image generation. I'll explain the steps.   Install an Advanced Form Plugin Use a plugin like WPForms or Gravity Forms. These [...]</p>
<p>The post <a href="https://cneris.com/en/how-can-you-create-an-autoresponder-in-wordpress-that-returns-a-jpg-to-the-user-whose-content-is-generated-from-a-form/">How can you create an autoresponder in WordPress that returns a jpg to the user whose content is generated from a form?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Creating an autoresponder in WordPress that sends a custom JPG image generated from form data is possible, but requires a combination of PHP code and advanced plugins to handle both the form and the image generation. I&#8217;ll explain the steps.</p>
<p>&nbsp;</p>
<ul>
<li><strong>Install an Advanced Form Plugin</strong><br />
Use a plugin like <strong>WPForms</strong> or <strong>Gravity Forms</strong>. These plugins let you create advanced forms that gather user data.</li>
<li><strong>Create a Code to Generate a Custom Image</strong><br />
In your theme’s <code>functions.php</code> file (preferably in a child theme), add a PHP code to generate an image based on form data:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php">function generate_custom_image($data) {<br />
$image = imagecreatetruecolor(400, 200);<br />
$bg_color = imagecolorallocate($image, 255, 255, 255);<br />
$text_color = imagecolorallocate($image, 0, 0, 0);<br />
imagefill($image, 0, 0, $bg_color);<br />
imagestring($image, 5, 10, 10, "Name: " . $data['name'], $text_color);<br />
imagestring($image, 5, 10, 50, "Message: " . $data['message'], $text_color);<br />
$file_path = '/path/to/save/image.jpg';<br />
imagejpeg($image, $file_path);<br />
imagedestroy($image);<br />
return $file_path;<br />
}<br />
</code></div>
</div>
<p>Here, <code>$data</code> represents form data (e.g., <code>$data['name']</code> for the user’s name).</li>
<li><strong>Set Up the Autoresponder to Attach the Image</strong><br />
In WPForms or Gravity Forms, configure notifications to send an email to the user. Use the <code>generate_custom_image</code> function to create the file and attach it to the email.</li>
<li><strong>Testing and Adjustments</strong><br />
Make sure to test the form to confirm the JPG is generated and sent correctly.</li>
</ul>
<p>The post <a href="https://cneris.com/en/how-can-you-create-an-autoresponder-in-wordpress-that-returns-a-jpg-to-the-user-whose-content-is-generated-from-a-form/">How can you create an autoresponder in WordPress that returns a jpg to the user whose content is generated from a form?</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-can-you-create-an-autoresponder-in-wordpress-that-returns-a-jpg-to-the-user-whose-content-is-generated-from-a-form/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to create an autoresponder in WordPress that sends a PDF generated with the form data</title>
		<link>https://cneris.com/en/how-to-create-an-autoresponder-in-wordpress-that-sends-a-pdf-generated-with-the-form-data/</link>
					<comments>https://cneris.com/en/how-to-create-an-autoresponder-in-wordpress-that-sends-a-pdf-generated-with-the-form-data/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 26 Oct 2024 11:07:56 +0000</pubDate>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[autoresponder in wordpress]]></category>
		<category><![CDATA[pdf generation]]></category>
		<category><![CDATA[pdf generator]]></category>
		<category><![CDATA[pdf plugin]]></category>
		<category><![CDATA[wpforms]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2568</guid>

					<description><![CDATA[<p>Install an Advanced Form Plugin Use a plugin like WPForms or Gravity Forms. Both allow advanced features and support for autoresponders and PDF. Create the Form Set up the necessary fields (such as name, email, etc.) with your chosen plugin. Install a PDF Generator You can use Gravity PDF (if using Gravity Forms) or a [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-create-an-autoresponder-in-wordpress-that-sends-a-pdf-generated-with-the-form-data/">How to create an autoresponder in WordPress that sends a PDF generated with the form data</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<ul>
<li><strong>Install an Advanced Form Plugin</strong><br />
Use a plugin like <strong>WPForms</strong> or <strong>Gravity Forms</strong>. Both allow advanced features and support for autoresponders and PDF.</li>
<li><strong>Create the Form</strong><br />
Set up the necessary fields (such as name, email, etc.) with your chosen plugin.</li>
<li><strong>Install a PDF Generator</strong><br />
You can use <strong>Gravity PDF</strong> (if using Gravity Forms) or a PDF generation plugin like <strong>WPForms PDF Add-on</strong> for WPForms. These plugins allow you to create custom PDFs based on form data.</li>
<li><strong>Configure the Autoresponder</strong><br />
In the form plugin, enable auto-notifications to the user.</p>
<ul>
<li>For WPForms: Go to <strong>Settings</strong> &gt; <strong>Notifications</strong> and create a new notification addressed to the user&#8217;s email.</li>
<li>For Gravity Forms: Go to <strong>Form</strong> &gt; <strong>Settings</strong> &gt; <strong>Notifications</strong> and set up a notification to the user.</li>
</ul>
</li>
<li><strong>Attach the PDF</strong><br />
In the notification options:</p>
<ul>
<li>If using Gravity PDF, select the option to attach the automatically generated PDF.</li>
<li>If using WPForms, manually add the PDF if it is saved on the server.</li>
</ul>
</li>
<li><strong>Test the Form</strong><br />
Submit the form to ensure that the PDF is generated and attached correctly in the autoresponder email.</li>
</ul>
<p>The post <a href="https://cneris.com/en/how-to-create-an-autoresponder-in-wordpress-that-sends-a-pdf-generated-with-the-form-data/">How to create an autoresponder in WordPress that sends a PDF generated with the form data</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-create-an-autoresponder-in-wordpress-that-sends-a-pdf-generated-with-the-form-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to create a Dynamic Form in WordPress</title>
		<link>https://cneris.com/en/how-to-create-a-dynamic-form-in-wordpress/</link>
					<comments>https://cneris.com/en/how-to-create-a-dynamic-form-in-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 26 Oct 2024 10:32:58 +0000</pubDate>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dynamic form]]></category>
		<category><![CDATA[interactive form in wordpress]]></category>
		<category><![CDATA[interactive form plugin]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2560</guid>

					<description><![CDATA[<p>Step 1: Install an Interactive Form Plugin In the WordPress menu, go to Plugins &gt; Add New. Search for WPForms or Typeform. Install and activate the plugin. WPForms allows for advanced form building, and Typeform provides highly interactive, dynamic forms. Step 2: Create the Form Step by Step WPForms: Go to WPForms &gt; Add New. [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-create-a-dynamic-form-in-wordpress/">How to create a Dynamic Form in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Step 1: Install an Interactive Form Plugin</h3>
<ul>
<li>In the WordPress menu, go to <em>Plugins &gt; Add New</em>.</li>
<li>Search for <strong>WPForms</strong> or <strong>Typeform</strong>. Install and activate the plugin.</li>
<li>WPForms allows for advanced form building, and Typeform provides highly interactive, dynamic forms.</li>
</ul>
<h3>Step 2: Create the Form Step by Step</h3>
<ul>
<li><strong>WPForms</strong>:
<ol>
<li>Go to <em>WPForms &gt; Add New</em>.</li>
<li>Select a <em>Survey or Questionnaire Form</em> template.</li>
<li>In the form editor, add the questions in the order you want them.</li>
<li>Enable <em>Conditional Logic</em> on each question to trigger the next one based on user responses.</li>
</ol>
</li>
<li><strong>Typeform</strong>:
<ol>
<li>Go to the Typeform website (you can integrate it with WordPress using the Typeform plugin).</li>
<li>Create a new form, add questions, and select <em>Conditional Logic</em> to display questions one at a time based on responses.</li>
</ol>
</li>
</ul>
<h3>Step 3: Configure Design and Interaction</h3>
<ul>
<li>In WPForms, select <em>Multi-Step Form</em> in <em>Settings &gt; Advanced Screens</em>.</li>
<li>Customize navigation buttons and progress messages to guide the user.</li>
</ul>
<h3>Step 4: Embed the Form on Your Page</h3>
<ul>
<li>WPForms: Copy the form&#8217;s shortcode and paste it into the page where you want the form to appear.</li>
<li>Typeform: Copy the embed code or use the Typeform plugin to place the form on your page.</li>
</ul>
<p>The post <a href="https://cneris.com/en/how-to-create-a-dynamic-form-in-wordpress/">How to create a Dynamic Form in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-create-a-dynamic-form-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to automatically generate a PDF with Forminator form responses in WordPress</title>
		<link>https://cneris.com/en/how-to-automatically-generate-a-pdf-with-forminator-form-responses-in-wordpress/</link>
					<comments>https://cneris.com/en/how-to-automatically-generate-a-pdf-with-forminator-form-responses-in-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 26 Oct 2024 10:25:27 +0000</pubDate>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[create the form]]></category>
		<category><![CDATA[installa forminator]]></category>
		<category><![CDATA[pdf plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zapier]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2553</guid>

					<description><![CDATA[<p>To automatically generate a PDF with Forminator form responses in WordPress, follow these detailed steps: Install Forminator and Create the Form: Ensure your form is configured in Forminator with all the fields you need in the PDF. Use a PDF Plugin or Zapier to Create the PDF: Forminator doesn’t natively support PDF generation, but you [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-automatically-generate-a-pdf-with-forminator-form-responses-in-wordpress/">How to automatically generate a PDF with Forminator form responses in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To automatically generate a PDF with Forminator form responses in WordPress, follow these detailed steps:</p>
<ol>
<li><strong>Install Forminator and Create the Form</strong>:
<ul>
<li>Ensure your form is configured in Forminator with all the fields you need in the PDF.</li>
</ul>
</li>
<li><strong>Use a PDF Plugin or Zapier to Create the PDF</strong>: Forminator doesn’t natively support PDF generation, but you can use a plugin or external tool.
<ul>
<li><strong>WP PDF Plugin</strong>: A premium plugin that can automatically generate PDFs from form responses in WordPress.</li>
<li><strong>Zapier</strong>: Connect Forminator to Zapier to send data to Google Docs or a PDF generator app like PDF Generator API.</li>
</ul>
</li>
<li><strong>Automate the PDF Creation</strong>: Set up an automation so that whenever a user submits a Forminator form, responses are automatically sent to the PDF creation tool, which generates and emails the final file.</li>
</ol>
<p>The post <a href="https://cneris.com/en/how-to-automatically-generate-a-pdf-with-forminator-form-responses-in-wordpress/">How to automatically generate a PDF with Forminator form responses in WordPress</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-automatically-generate-a-pdf-with-forminator-form-responses-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which WordPress plugins allow for automatic PDF generation in autoresponder emails and are compatible with Contact Form 7</title>
		<link>https://cneris.com/en/which-wordpress-plugins-allow-for-automatic-pdf-generation-in-autoresponder-emails-and-are-compatible-with-contact-form-7/</link>
					<comments>https://cneris.com/en/which-wordpress-plugins-allow-for-automatic-pdf-generation-in-autoresponder-emails-and-are-compatible-with-contact-form-7/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 Oct 2024 17:42:07 +0000</pubDate>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress plugins]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2536</guid>

					<description><![CDATA[<p>Several WordPress plugins allow for automatic PDF generation in autoresponder emails and are compatible with Contact Form 7. Here are a few options: Contact Form 7 PDF: This plugin allows you to generate a PDF with form data and send it as an attachment in the autoresponder email. It's easy to configure and integrates directly [...]</p>
<p>The post <a href="https://cneris.com/en/which-wordpress-plugins-allow-for-automatic-pdf-generation-in-autoresponder-emails-and-are-compatible-with-contact-form-7/">Which WordPress plugins allow for automatic PDF generation in autoresponder emails and are compatible with Contact Form 7</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Several WordPress plugins allow for automatic PDF generation in autoresponder emails and are compatible with Contact Form 7. Here are a few options:</p>
<ol>
<li><strong>Contact Form 7 PDF</strong>: This plugin allows you to generate a PDF with form data and send it as an attachment in the autoresponder email. It&#8217;s easy to configure and integrates directly with Contact Form 7.</li>
<li><strong>Contact Form 7 &#8211; Dynamic Text Extension</strong>: This plugin is useful for customizing dynamic fields in the form and generating PDFs tailored to the user&#8217;s responses. With this add-on, you can add personalized data and convert form content into a PDF.</li>
<li><strong>CF7 to PDF</strong>: This extension allows you to save and send Contact Form 7 data as a PDF attachment in emails. It also offers options to customize the PDF design.</li>
</ol>
<p>The post <a href="https://cneris.com/en/which-wordpress-plugins-allow-for-automatic-pdf-generation-in-autoresponder-emails-and-are-compatible-with-contact-form-7/">Which WordPress plugins allow for automatic PDF generation in autoresponder emails and are compatible with Contact Form 7</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/which-wordpress-plugins-allow-for-automatic-pdf-generation-in-autoresponder-emails-and-are-compatible-with-contact-form-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remmina: A Cross-Platform Remote Desktop Client</title>
		<link>https://cneris.com/en/remmina-a-cross-platform-remote-desktop-client/</link>
					<comments>https://cneris.com/en/remmina-a-cross-platform-remote-desktop-client/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 09 Oct 2024 11:44:04 +0000</pubDate>
				<category><![CDATA[Technical support]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[remmina]]></category>
		<category><![CDATA[remote desktop protocol]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2411</guid>

					<description><![CDATA[<p>Introduction: Remmina is an open-source application that allows users to remotely connect to other systems. It is widely used by system administrators and IT professionals due to its versatility and ease of use. Supporting multiple protocols like RDP, VNC, SSH, and more, Remmina provides a powerful solution for accessing and managing remote systems from a [...]</p>
<p>The post <a href="https://cneris.com/en/remmina-a-cross-platform-remote-desktop-client/">Remmina: A Cross-Platform Remote Desktop Client</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction:</strong> <a href="https://remmina.org/">Remmina</a> is an open-source application that allows users to remotely connect to other systems. It is widely used by system administrators and IT professionals due to its versatility and ease of use. Supporting multiple protocols like RDP, VNC, SSH, and more, Remmina provides a powerful solution for accessing and managing remote systems from a single interface.</p>
<p><strong>Key Features:</strong></p>
<ol>
<li><strong>Multi-protocol compatibility</strong>: Remmina supports RDP (Remote Desktop Protocol), VNC (Virtual Network Computing), SSH (Secure Shell), SPICE, and X2GO, among others.</li>
<li><strong>User-friendly interface</strong>: The graphical interface allows users to manage multiple connections at once, offering customized configuration options for each protocol.</li>
<li><strong>Cross-platform support</strong>: Available for Linux, Windows, and macOS, Remmina offers flexibility for users on different operating systems.</li>
<li><strong>Security</strong>: Integration with SSH ensures that connections are secure and encrypted, protecting sensitive information during remote sessions.</li>
<li><strong>Plugins</strong>: Modular plugins allow Remmina&#8217;s functionality to be extended, facilitating customization based on each user&#8217;s needs.</li>
</ol>
<p><strong>How to use Remmina?</strong></p>
<ol>
<li>Install Remmina from your Linux distribution&#8217;s repository, or download the version for your operating system from the official website.</li>
<li>Open Remmina and select the protocol you want to use.</li>
<li>Configure the connection details, such as the remote server&#8217;s IP address, username, and password.</li>
<li>Click &#8220;Connect&#8221; to start the remote session.</li>
</ol>
<p><strong>Conclusion:</strong> Remmina is an essential tool for those needing to access multiple systems remotely. Its ease of use, combined with cross-platform compatibility and multi-protocol support, makes it an ideal choice for both individual users and IT teams.</p>
<p>The post <a href="https://cneris.com/en/remmina-a-cross-platform-remote-desktop-client/">Remmina: A Cross-Platform Remote Desktop Client</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/remmina-a-cross-platform-remote-desktop-client/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Scheduled task script for rebuilding (forum/group) post count</title>
		<link>https://cneris.com/en/scheduled-task-script-for-rebuilding-forum-group-post-count/</link>
					<comments>https://cneris.com/en/scheduled-task-script-for-rebuilding-forum-group-post-count/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 28 Sep 2024 15:34:57 +0000</pubDate>
				<category><![CDATA[Discuz]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[discuz]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2250</guid>

					<description><![CDATA[<p>Anyone who uses the Discuz! forum knows that if the anti-spam mechanism is not well implemented, many bots will "visit" the forum. Although we can block and delete all posts by such users to remove this "spam," the content of those "spam posts" will still remain in the "Last Post" section on the forum homepage. [...]</p>
<p>The post <a href="https://cneris.com/en/scheduled-task-script-for-rebuilding-forum-group-post-count/">Scheduled task script for rebuilding (forum/group) post count</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Anyone who uses the Discuz! forum knows that if the anti-spam mechanism is not well implemented, many bots will &#8220;visit&#8221; the forum. Although we can block and delete all posts by such users to remove this &#8220;spam,&#8221; the content of those &#8220;spam posts&#8221; will still remain in the &#8220;Last Post&#8221; section on the forum homepage. This is especially evident in forums with low traffic and few posts (forums with high post frequency experience this issue less often), where for a long time, the &#8220;Last Post&#8221; section is filled with &#8220;spam&#8221; content. Therefore, we need to rebuild the &#8220;Last Post&#8221; content.</p>
<p>Log into the Discuz! backend—Tools—Update Forum Statistics—Rebuild Forum Posts, and manually submit it.</p>
<p>However, this function needs to be executed manually. Now, the following scheduled task script has been created: Execution logic: Previously, it needed to be manually submitted. As long as we locate the script for submission (admincp_counter.php), we can modify it into a Discuz! scheduled task script. Following the Discuz! scheduled task configuration method, copy the code below into cron_update_lastpost.php and place it in the specified directory.</p>
<p>&nbsp;</p>
<p>&lt;?php<br />
/**<br />
* @cron_update_lastpost.php<br />
* @重建(论坛/群组)帖数 的计划任务脚本<br />
* @2013-03-25 by AndyZhang<br />
*<br />
*/</p>
<p>if(!defined(&#8216;IN_DISCUZ&#8217;)) {<br />
exit(&#8216;Access Denied&#8217;);<br />
}</p>
<p>$pertaskinit = 15; //默认每个循环更新数量<br />
$pertask = isset($_GET[&#8216;pertask&#8217;]) ? intval($_GET[&#8216;pertask&#8217;]) : $pertaskinit;<br />
$current = isset($_GET[&#8216;current&#8217;]) &amp;&amp; $_GET[&#8216;current&#8217;] &gt; 0 ? intval($_GET[&#8216;current&#8217;]) : 0;<br />
$processed = 1;</p>
<p>while ($processed) {<br />
$queryf = C::t(&#8216;forum_forum&#8217;)-&gt;fetch_all_fids(1, &#8221;, &#8221;, $current, $pertask);<br />
if($queryf[0][&#8216;fid&#8217;]) {<br />
foreach($queryf as $forum) {<br />
$processed = 1;<br />
$threads = $posts = 0;<br />
$threadtables = array(&#8216;0&#8217;);<br />
$archive = 0;<br />
foreach(C::t(&#8216;forum_forum_threadtable&#8217;)-&gt;fetch_all_by_fid($forum[&#8216;fid&#8217;]) as $data) { //板块存档表<br />
if($data[&#8216;threadtableid&#8217;]) {<br />
$threadtables[] = $data[&#8216;threadtableid&#8217;];<br />
}<br />
}<br />
$threadtables = array_unique($threadtables);<br />
foreach($threadtables as $tableid) {<br />
$data = C::t(&#8216;forum_thread&#8217;)-&gt;count_posts_by_fid($forum[&#8216;fid&#8217;], $tableid);<br />
$threads += $data[&#8216;threads&#8217;];<br />
$posts += $data[&#8216;posts&#8217;];<br />
if($data[&#8216;threads&#8217;] == 0 &amp;&amp; $tableid != 0) {<br />
C::t(&#8216;forum_forum_threadtable&#8217;)-&gt;delete($forum[&#8216;fid&#8217;], $tableid);<br />
}<br />
if($data[&#8216;threads&#8217;] &gt; 0 &amp;&amp; $tableid != 0) {<br />
$archive = 1;<br />
}<br />
}<br />
C::t(&#8216;forum_forum&#8217;)-&gt;update($forum[&#8216;fid&#8217;], array(&#8216;archive&#8217; =&gt; $archive));</p>
<p>$thread = C::t(&#8216;forum_thread&#8217;)-&gt;fetch_by_fid_displayorder($forum[&#8216;fid&#8217;]);<br />
$lastpost = &#8220;$thread[tid]\t$thread[subject]\t$thread[lastpost]\t$thread[lastposter]&#8221;;</p>
<p>C::t(&#8216;forum_forum&#8217;)-&gt;update($forum[&#8216;fid&#8217;], array(&#8216;threads&#8217; =&gt; $threads, &#8216;posts&#8217; =&gt; $posts, &#8216;lastpost&#8217; =&gt; $lastpost));<br />
}<br />
$current += $pertask;<br />
} else {<br />
C::t(&#8216;forum_forum&#8217;)-&gt;clear_forum_counter_for_group();<br />
$processed = 0;<br />
}<br />
}<br />
?&gt;</p>
<p>The post <a href="https://cneris.com/en/scheduled-task-script-for-rebuilding-forum-group-post-count/">Scheduled task script for rebuilding (forum/group) post count</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/scheduled-task-script-for-rebuilding-forum-group-post-count/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Base-admin.class.php PHP Fatal error: Uncaught Error: [] operator not supported for strings</title>
		<link>https://cneris.com/en/php-fatal-error-uncaught-error-operator-not-supported-for-strings/</link>
					<comments>https://cneris.com/en/php-fatal-error-uncaught-error-operator-not-supported-for-strings/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 30 Aug 2024 07:21:56 +0000</pubDate>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dedicated servers]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[PHP Fatal error]]></category>
		<category><![CDATA[php issues]]></category>
		<category><![CDATA[php uncaught error]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2214</guid>

					<description><![CDATA[<p>The error you're encountering, "PHP Fatal error: Uncaught Error: [] operator not supported for strings", indicates that in the file base-admin.class.php of the Revolution Slider (or RevSlider) plugin, you are trying to use the [] operator to add a value to a variable that has been declared as a string. The [] operator is used [...]</p>
<p>The post <a href="https://cneris.com/en/php-fatal-error-uncaught-error-operator-not-supported-for-strings/">Base-admin.class.php PHP Fatal error: Uncaught Error: [] operator not supported for strings</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The error you&#8217;re encountering, <strong>&#8220;PHP Fatal error: Uncaught Error: [] operator not supported for strings&#8221;</strong>, indicates that in the file <code>base-admin.class.php</code> of the <strong>Revolution Slider</strong> (or <strong>RevSlider</strong>) plugin, you are trying to use the <code>[]</code> operator to add a value to a variable that has been declared as a string. The <code>[]</code> operator is used to add elements to an array, not to manipulate strings.</p>
<h3>Steps to Resolve the Error:</h3>
<ol>
<li><strong>Locate the problematic file and line:</strong>
<ul>
<li>The error specifies the exact location of the file and line where the problem occurs: <code>/www/httpdocs/wp-content/plugins/revslider/includes/framework/base-admin.class.php</code>.</li>
</ul>
</li>
<li><strong>Edit the file:</strong>
<ul>
<li>Open the file in a text editor or the code editor of your choice.</li>
</ul>
</li>
<li><strong>Find the problematic line:</strong>
<ul>
<li>Go to the line of code that is causing the error. Look for the line that uses the <code>[]</code> operator on a variable that might have been initialized as a string.</li>
</ul>
</li>
<li><strong>Ensure the variable is an array:</strong>
<ul>
<li>Before using the <code>[]</code> operator, check if the variable is an array. If it&#8217;s not, convert it to an array. You can do this as follows:</li>
</ul>
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium">
<div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md">
<p>php</p>
<div class="flex items-center"><span class="" data-state="closed"><button class="flex gap-1 items-center">Copiar código</button></span></div>
</div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-keyword">if</span> (!<span class="hljs-title function_ invoke__">is_array</span>(<span class="hljs-variable">$variable</span>)) {<br />
<span class="hljs-variable">$variable</span> = [];<br />
}<br />
<span class="hljs-variable">$variable</span>[] = <span class="hljs-variable">$value</span>; <span class="hljs-comment">// This is where a value is added to the array</span><br />
</code></div>
</div>
<ul>
<li>If the variable is initialized as a string, convert it to an array:</li>
</ul>
<div class="dark bg-gray-950 contain-inline-size rounded-md border-[0.5px] border-token-border-medium">
<div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md">
<p>php</p>
<div class="flex items-center"><span class="" data-state="closed"><button class="flex gap-1 items-center">Copiar código</button></span></div>
</div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-php"><span class="hljs-keyword">if</span> (<span class="hljs-title function_ invoke__">is_string</span>(<span class="hljs-variable">$variable</span>)) {<br />
<span class="hljs-variable">$variable</span> = [];<br />
}<br />
<span class="hljs-variable">$variable</span>[] = <span class="hljs-variable">$value</span>;<br />
</code></div>
</div>
</li>
<li><strong>Save the changes and test:</strong>
<ul>
<li>After making these changes, save the file and reload the page or functionality that was generating the error.</li>
</ul>
</li>
<li><strong>Update or replace the plugin:</strong>
<ul>
<li>If this solution is complex or the problem persists, consider updating the plugin to the latest version. Sometimes, the plugin developers have already fixed these issues in newer versions.</li>
</ul>
</li>
</ol>
<p>If you&#8217;re not comfortable editing the code, I recommend making a backup of the original file before making any changes. You might also consider contacting the plugin&#8217;s support team for specific assistance.</p>
<p>The post <a href="https://cneris.com/en/php-fatal-error-uncaught-error-operator-not-supported-for-strings/">Base-admin.class.php PHP Fatal error: Uncaught Error: [] operator not supported for strings</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/php-fatal-error-uncaught-error-operator-not-supported-for-strings/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
