Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Member Blogs

 

nginx configuration for thirtybees

You might find this nginx configuration useful if you want to run your thirtybees on nginx + php-fpm   server { listen 80; index index.php index.html; server_name localhost; root /var/www/default; # use original IP address changed by cloudflare set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 162.158.0.0/15; set_real_ip_from 172.64.0.0/13; set_real_ip_from 173.245.48.0/20; set_real_ip_from 188.114.96.0/20; set_real_ip_from 190.93.240.0/20; set_real_ip_from 197.234.240.0/22; set_real_ip_from 198.41.128.0/17; set_real_ip_from 2400:cb00::/32; set_real_ip_from 2606:4700::/32; set_real_ip_from 2803:f800::/32; set_real_ip_from 2405:b500::/32; set_real_ip_from 2405:8100::/32; set_real_ip_from 2c0f:f248::/32; set_real_ip_from 2a06:98c0::/29; real_ip_header CF-Connecting-IP; # root location / { try_files $uri $uri/ /index.php?$args; index index.php; } # Rewriting for images pretty url - both jpg and webp formats location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff|webp)$ { rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$1$2$3.webp break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$1$2$3$4.webp break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$1$2$3$4$5.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.webp break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.webp$ /img/c/$1$2$3.webp break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.webp$ /img/c/$1$2.webp break; allow all; } # php rewriting location ~ \.php$ { # Installer is using /install/sandbox/anything.php url to test rewritting capabilities # it should rewrite to /install/sandbox.test.php file rewrite ^/(.*)/sandbox/anything.php$ /$1/sandbox/test.php break; try_files $uri $uri/ /index.php?$args; index index.html index.htm index.php; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_intercept_errors on; fastcgi_read_timeout 360s; include fastcgi_params; } }  

datakick

datakick

 

Database tuning Tid Bit

All: I wanted you all to have this its just a tid bit of a Guide I am working on for MariaDB and or Mysql.  I wanted to tell you about a cool tuning script called tuning-primer.sh.  Should work on CentOS 7 if you have other disto may need to install bc with other package manager. #requires bc to be installed yum install bc -y #install and correct permissions cd /usr/bin wget https://raw.githubusercontent.com/mattiabasone/tuning-primer/master/tuning-primer.sh -O tuning-primer.sh chmod +x tuning-primer.sh #make a backup of your current config cp /etc/my.cnf /etc/my.cnf.bak #run script for output on centos backend sh tuning-primer.sh Begaining output looks like this: # sh tuning-primer.sh     -- MYSQL PERFORMANCE TUNING PRIMER --
         - By: Matthew Montgomery - MySQL Version 10.4.6-MariaDB x86_64 Uptime = 0 days 13 hrs 59 min 21 sec
Avg. qps = 0
Total Questions = 44479
Threads Connected = 1 Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations   Once you have it installed and run it will tell you areas to improve in the config file (my.cnf).  Also your Mysql server needs to be up for at least 2 days between changes.   PS I didn't write this script. Hope this helps.

Factor

Factor

 

Factor's Corner

Hey All: I wanted to introduce myself..  Couldn't find a "Hello I am" post.  Since most folks here have a Pen or Ghost name you all can call me Factor or Brent.  I have been in the IT world for almost 30 years.  Mostly on the Application side in the the Healthcare IT world.  I was also a emergency room nurse hence the healthcare IT.  I have mostly done SysAdmin or Architect type jobs.  I am not what most would call a programmer or a coder.  I understand networking, posix systems, windows, mac, oracle, and infrastructure.  I am from USA Murfreesboro, Tennessee.  My hobbies include 19th century culture, photography, gunsmithing and anything tech related.  I also love language.  I have studied Mandarin, Thai, Lao, Greek and Arabic only spoken.  Also only enough to get in trouble.  I am Greek by heritage so I am told.  I got into Thirty Bee's because my wife sells quilt fabric. Apparently I am the CIO of the business.  Seems to be a easy to understand and well coded system.  Any way I hope wherever you are you are doing well.  Stay safe.  

Factor

Factor

 

Tips and Tricks - General guide to email and blocklist

All: I wanted to put this here for others.  It's a good general guide to email and blocklists.  If you are using saas, cloud, or managed hosting you shouldn't need this guide. If you have your own server unmanaged using cpanel, plesk or others you might find it useful. As always it's a living document.  Feel free to correct or add to it. Hope it helps. Blacklist Email Guide.docx

Factor

Factor

 

Tips and Tricks - Prestools install

All: I wanted to put this here for those they might be a bit more "Visual" like me.  I am not affiliated with, own or maintain Prestools. That is @musicmaster  I have spoken to him and he has allowed me to post the guide. I hope you all find it useful.  If you find error or issue please feel free to correct or update the document.  It is only how to Install not use the software.   Prestools install guide.docx

Factor

Factor

 

Optimize length of your meta tags

The key to good search engine results is content. When we have content, we should also optimize meta title and meta description (meta keywords arent important anymore). It can be quite confusing what is a good length for meta title and meta description. Here is a very useful tool that may help you: https://app.sistrix.com/en/serp-snippet-generator  

wakabayashi

wakabayashi

 

How to export all info of products in CSV

Dear all, I was trying to export full information for my products as CSV, but noticed that by using the default "export" function in backoffice -> products only exported id, image, name, price, Quantity, ref, and category but not full description, i searched for at way to do it easily, and came across this very helpfull articel:   https://premiumpresta.com/blog/export-products-for-csv-import-prestashop-1-6/ That explain in full detail including the code. -.... And if you dont want to read it all just need the code then download it directly from Github: https://github.com/PremiumPresta/export-products-for-csv-import-prestashop-1.6 Hope it will be usefull 🙂 

unica e-shop

unica e-shop

 

Deferred Images - Improve Page Loading Time

I am not at all an expert on page load time. But nowdays modern browser show quite nicely, where the time is "spent" on. Often a website is slow, because of many requests. Every image (non cached) means a reqeuest to your server. This can have serious negative effects on your page load time. To deal with it, you can use "Lazy Loading" Plugins. Another way - which I like more - is to defer images. Yesterday I found the following article: https://varvy.com/pagespeed/defer-images.html

IMO the artice is very easy to understand. If you want to implement it in your shop: You just need to adjust tpl files of your theme. The <script> part can be added in footer.tpl. The rest depends on what you want to achieve. As an example: https://www.spielezar.ch. The images on the footer (payment logo and facebook image) are loaded deferred. For the visitor there is no difference at all, as this images are not in the view when the page is loading. But the page just loads faster.  If you have any questions about it, feel free to ask!

wakabayashi

wakabayashi

Cómo instalar Thirty Bees (manualmente o desde Softaculous en cPanel)

Índice del contenido: Requisitos del hosting: desde minuto 0:30 Instalación automática desde Softaculous: a partir de 2:50 Instalación manual: a partir de 6:55 Descarga el paquete de instalación de Thirty Bees desde aquí: *** https://thirtybees.com/download/ *** Contrata un plan con a2hosting (tiene la opción de instalar automáticamente ThirtyBees): https://www.a2hosting.com/thirty-bees-hosting?aid=thirtybees También puedes elegir otros servidores, simplemente revisa los requisitos antes para no llevarte sorpresas 😉 En la misma página de Thirty Bees hay otros hostings recomendados que son partners oficiales. Además, contratando desde sus enlaces, les ayudas a seguir manteniendo la plataforma. CÓMO INSTALAR TB MANUALMENTE: Descargar el paquete desde la página Crear un directorio, dominio o subdominio para la web Subir el paquete al directorio raíz elegido Crear una base de datos, usuario y contraseña nuevos Acceder a la ruta para ejecutar la instalación Rellenar los pasos del formulario para ejecutar la instalación Borrar el directorio "/install" Si quieres descargar el mejor theme para Thirty Bees: *** http://bit.ly/PandaPrestaTheme *** Acceso al curso eCommerce by Yourself: *** http://bit.ly/ecommerceby *** Echa un vistazo al foro de Thirty Bees: https://forum.thirtybees.com

danwarrior

danwarrior

 

Creating your blog

The thirty bees forum allows you to create your own blog posts, so that you can share your ideas with the rest of the world. User blogs are an excellent way to share tips and tricks, modules you have created, or how to custom edit a thirty bees site. This makes more sense than having posts to a forum, which are easily buried over time. You can even create custom polls on your blogs, to ask user users questions.    To create your own blog, just go to the main blog page here. In the top right corner you should see a Create A Blog button, click on it to get started.    Once you click on the button, you will be able to name your main blog, then you can start creating posts for your blog. Its a pretty simple and easy process. Once we get a few posts under our belt, we will start feeding the blog posts around the forum, so our users can see the content that our other users are creating. Giving you more exposure, more module sales, and a greater ability to help other users.   

lesley

lesley

×