PHP

General questions about CMSimple
jop
Posts: 107
Joined: Sun Sep 20, 2009 1:05 pm

PHP

Post by jop » Wed Aug 21, 2024 6:50 am

My web provider writes that I am using an outdated and slow version of PHP on my website, and they recommend that I update PHP, by removing the following line from the .htaccess file on my web space: AddType application/x-httpd-php56 .php.
I'm using CMSimple_XH 1.6.10 with a number of plugins. Is there a risk in doing this?

lck
Posts: 3358
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: PHP

Post by lck » Wed Aug 21, 2024 9:18 am

jop wrote:
Wed Aug 21, 2024 6:50 am
I'm using CMSimple_XH 1.6.10 with a number of plugins. Is there a risk in doing this?
Yes unfortunately, the website will probably stop working/start with a fatal error message.
See also the thread here.

You can find upgrade instructions here: To upgrade your website to CMSimple_XH 1.7.0, do the following
This should also work for CMSimple_XH 1.7.6.
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

Tata
Posts: 3626
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: PHP

Post by Tata » Wed Aug 21, 2024 6:07 pm

I also would recommend definitely the upgrade the whole website to 1.7.6 and then update also all possible plugins and the actual PHP (at least 7.x.). The procedure is not very complicated and you can find many posts about "how to" here in forum..
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

jop
Posts: 107
Joined: Sun Sep 20, 2009 1:05 pm

Re: PHP

Post by jop » Fri Oct 18, 2024 8:17 am

Thank you for your answer. I am now installing CMSimple_XH 1.7.6 and have a few questions. Template fhs-simple-2019: How to replace the XH logo with another logo? And another favicon? When making a bulleted list: How do you get the bullit drawn to stand exactly vertical under the text above (not offset to the left)?

Tata
Posts: 3626
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: PHP

Post by Tata » Fri Oct 18, 2024 8:36 am

The simplest way is:
1. Prepare your own images with same dimensions as the originals.
2. Look for the original names in the template.htm and stylesheet.css and replace them with your own names.
3. Save your new images into /templates/fhs-simple-2019/images
4. For creation of your own icons, use e.g. http://www.favicomatic.com
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 3358
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: PHP

Post by lck » Fri Oct 18, 2024 10:25 am

jop wrote:
Fri Oct 18, 2024 8:17 am
When making a bulleted list: How do you get the bullit drawn to stand exactly vertical under the text above (not offset to the left)?
fhs-simple-2019/stylesheet.css ~Line 850

Code: Select all

ul.listUnordered ul,
ul.xh_search_results ul {
	margin: 0 0 0 1em; /* change to margin: 0;*/
	list-style: none;
}
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

jop
Posts: 107
Joined: Sun Sep 20, 2009 1:05 pm

Re: PHP

Post by jop » Fri Oct 18, 2024 12:41 pm

Thanks - change in line 850 unfortunately doesn't work for me? (unfortunately just an amateur).

Could you please write the exact text to copy/overwrite to line 850?
Last edited by jop on Fri Oct 18, 2024 2:48 pm, edited 1 time in total.

jop
Posts: 107
Joined: Sun Sep 20, 2009 1:05 pm

Re: PHP

Post by jop » Fri Oct 18, 2024 12:52 pm

The simplest way is:
2. Look for the original names in the template.htm and stylesheet.css and replace them with your own names.
Unfortunately not so simple for me (an amateur).Can't find the original names in template.htm and stylesheet.css.

Tata
Posts: 3626
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: PHP

Post by Tata » Fri Oct 18, 2024 2:51 pm

These are the icon images (generatd by the online app):

Code: Select all

<link rel="apple-touch-icon" sizes="180x180" href="<?=$pth['folder']['templateimages']?>favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?=$pth['folder']['templateimages']?>favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?=$pth['folder']['templateimages']?>favicon/favicon-16x16.png">
<link rel="manifest" href="<?=$pth['folder']['templateimages']?>favicon/site.webmanifest">
<link rel="mask-icon" href="<?=$pth['folder']['templateimages']?>favicon/safari-pinned-tab.svg" color="#ff6600">
<link rel="shortcut icon" href="<?=$pth['folder']['templateimages']?>favicon/favicon.ico">
These images are created by the application with the same names, so you only need to replace the files in the favicon folder. Basically you don't need to rename anything. Just replace the images by your new ones. You don't need to edit then anything in the template.
Here are the generated icons images and the logo images stored:
Screen Shot 2024-10-18 at 16.45.50.jpg
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 3358
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: PHP

Post by lck » Fri Oct 18, 2024 3:07 pm

jop wrote:
Fri Oct 18, 2024 12:41 pm
Thanks - change in line 850 unfortunately doesn't work for me? (unfortunately just an amateur).

Could you please write the exact text to copy/overwrite to line 850?

Code: Select all

ul.listUnordered ul,
ul.xh_search_results ul {
	margin: 0;
	list-style: none;
}
Is the website online, can you give us a link? Is it an ul or ol list?
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

Post Reply