module content display row

Open to all! Ask other shopowners for help.
ce7
Member
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Phoenix Version:
Has thanked: 18 times

module content display row

Post by ce7 »

Hi,
I had extra message in shopping cart installed on 1087 version.
It works well, but instead of modify language file, which is not practical for website owner, I put the message content to be able to modify in admin module/content/ area.

One thing I notice that the sentences will be broken down into one word a row.
How can I make them looks like normal and will change the size depends on browser size?

Please find attached image. Image
https://ibb.co/CB6yJTT

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: module content display row

Post by Fiber »

ce7 wrote: Thu Mar 03, 2022 12:12 am which is not practical for website owner, I put the message content to be able to modify in admin module/content/ area.
I think I don't fully understand your thinking, if the owner is already in the admin then he can also change the text in define language..I made it as index content module and just change text through define language.

Image

Image
Turn up the Max
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Re: module content display row

Post by ReneH4 »

Fiber wrote: Thu Mar 03, 2022 1:22 pm
I think editing through the language files is OK, but not for standard users. It's more for techies like us.
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: module content display row

Post by Fiber »

ReneH4 wrote: Thu Mar 03, 2022 3:25 pm I think editing through the language files is OK, but not for standard users. It's more for techies like us.
Just for standard users explain well that they have to stay between the ' ' it's even easier :-)
I don't see the problem at all..
Turn up the Max
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: module content display row

Post by heatherbell »

ReneH4 wrote: Thu Mar 03, 2022 3:25 pmbut not for standard users.
It should be standard practice for "standard users" -
https://phoenixcart.org/phoenixcartwiki ... uage_Files
https://phoenixcart.org/phoenixcartwiki ... _Languages
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Re: module content display row

Post by ReneH4 »

I'm sorry but I dis-agree. It maybe what the team expects from users, but my idea would be to keep users far away from editing text files. That is probably why the TS is asking this question.
heatherbell wrote: Thu Mar 03, 2022 3:56 pm
ReneH4 wrote: Thu Mar 03, 2022 3:25 pmbut not for standard users.
It should be standard practice for "standard users" -
https://phoenixcart.org/phoenixcartwiki ... uage_Files
https://phoenixcart.org/phoenixcartwiki ... _Languages
ce7
Member
Posts: 26
Joined: Tue Apr 06, 2021 12:26 am
Phoenix Version:
Has thanked: 18 times

Re: module content display row

Post by ce7 »

Hi,
Thank you for all the replies.

I am not programmer, self learning oscommerce these years by installed all different addons from 2.2 version. And I installed it for friend who is absolutely know nothing about IT, it takes time for them to learn how to use admin, and years later, they finally know a basic one.

However changing the code, even just simple language file, they dont know the language code rules, and it is difficult to ask average old man who to understand coding....And if they made mistakes, lots of errors appear will make the website owner who know nothing about website panic easily.

I learn a lot of code knowledge from JcMagpie (saidly died from covid) who is really nice to explain why the code got problem and how to improve the code, and that is how I learn oscommerce these years from JcMagpie and all other great professionals/experts from oscommerce old version forum.

Few of his addons, has the ability to put message at the module, which is much easier for website owner who doesn't know code, they can get into module, turn it on or off, and change message there, that is why I modified it, but lack of knowledge about boostrap and new version website structure knowledge, I dont know why it set up to show one word a row and how to modify it.

If someone know new version well and can point me to learn why and how, even just links it will be highly appreciated and can also benefit for other people like me in the middle of learning newer oscommerce version.

Thank you.
Omar_one
Senior Contributor
Posts: 678
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: module content display row

Post by Omar_one »

@ce7 if I understood you right,
there is an module for the PRO Supporters its called s04e04_alert_messageapp.php/addons/supporters_code/s04e04_alert_message/
Message will placed in navigation with link to Info Page. and you can edit it via admin ->tools ->Info Page
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: module content display row

Post by heatherbell »

Omar_one wrote: Tue Mar 08, 2022 8:37 am @ce7 if I understood you right,
there is an module for the PRO Supporters its called s04e04_alert_messageapp.php/addons/supporters_code/s04e04_alert_message/
Message will placed in navigation with link to Info Page. and you can edit it via admin ->tools ->Info Page
Text of the PAGE is changed in the Info Page Manager
Text of the MESSAGE is changed in the relevant language file
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: module content display row

Post by Kofod95 »

I understand why you want the message in the db instead - it has it's advantages.
Language-file-editing have become less important, as the InfoPages takes care of some of the most important edits in texts, while a lot of the language-file controlled text is rather static.
Still, I would argue that learning to edit the language-files should be the norm.
However, for text that changes a lot, I too tend to use the db instead of files to make it easier to find and edit the text I want to edit.
ce7 wrote: Thu Mar 03, 2022 12:12 am How can I make them looks like normal and will change the size depends on browser size?
I'm guessing you have used one of the core places that accomplishes this as a template?
I have never seen something like your image, so I'm afraid I don't know why it happens. How does it look in the database?
Were I you, I would try to find another core-example and use that as a template instead.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply