Zen Cart Logo
Forums / All Other Contributions/Addons / About Us page in Information sidebox

About Us page in Information sidebox

Views: 9,550

Results 1 to 20 of 52
6 May 2010, 9:58 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

About Us page in Information sidebox

Support thread for the About Us page mod for the Information sidebox:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=182

new version just uploaded.
Steve

changes
constant DEFINE_ABOUT_US_STATUS was not defined - included sql install/uninstall to add to admin->Define pages section.
Included spanish language files.
Included tpl_site_map_default.php
checked for php5.3 and Zen Cart 139b compatibility

14 May 2010, 2:39 AM
#3
timcad avatar

timcad

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

Re: About Us page in Information sidebox

How does one "run" an "sql" file in admin?
I think understand the rest of the instructions.

14 May 2010, 3:38 AM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: About Us page in Information sidebox

In Tools->Install SQL Patches

Open the sql file with a text editor and copy the text into the SQL Query Executor window and click Send.

Sometimes it reports an error and you will have to run it via phpMyAdmin instead: select your database and run the query in the SQL tab.

14 May 2010, 4:20 AM
#5
timcad avatar

timcad

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

Re: About Us page in Information sidebox

Thank you.
Did I do any harm by going to ->Tools->Install SQL Patches and browsing to the file, then hitting upload?

14 May 2010, 4:30 AM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: About Us page in Information sidebox

No, the query will run correctly or not at all.

It just seems that the SQL tool in Zen Cart has a reputation for being "fussy" about the code it will accept, and all the mod instructions I have seen say copy and paste rather than upload the file, as I suppose could introduce another reason for it to not work.

26 Jul 2010, 9:18 AM
#7
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Buenos días torvista

I'm desperately trying to add new pages to my bi-lingual (Greek/English) site at http://athenscollectibles.info. I'm still very new at Zen Cart and initially I thought of using EZ-pages until... I discovered that this feature does not support more than one language, so it's out of the question.

I spent hours reading the forums and there are various workarounds but none of them seems straightforward. I have come across to a few add-ons for adding pages to the "More Information" box which is now populated with the example Page 2, Page 3 and Page 4. But I soon decided against them as they were developed 3-4 years ago and the developers disappeared from the forums a few months after the module was released.

After a more careful search, I found your module and it looks to be what I need. Before installing it, may I please ask a couple of questions to make sure that I won't mess everything up?

  1. Is this compatible with v1.3.9d (I see that it is "Designed for v1.3.x" and the answer is most probably "yes" but just wanted to have your OK).

  2. Now, to come to the second point: the module is designed to add an "About Us" page in English and Spanish. I am not a programmer/developer but the changes needed to change Spanish to Greek are within my capabilities. However, when I'm through with it and want to add another page, could you tell me if the following course of action is correct. For the purpose of this example, suppose that I want to create a new page called "Payments":

a) copy all xxx_about_us_xxx files to xxx_payments_xxx files and make the appropriate changes to their contents.

b) add a definition to the information.php file as follows:

  if ([B]PAYMENTS[/B] <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_[B]PAYMENTS[/B]) . '">' . BOX_INFORMATION_[B]PAYMENTS[/B]. '</a>';
 }
```
c) copy the install_about_us_page.sql file to a new install_payments.sql file and change its contents from ```php ## The following may be run via phpMyAdmin rather than in Zen Cart Admin (if it gives an error) INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Define About Us Status', 'DEFINE_ABOUT_US_STATUS', '1', 'Enable the Defined About Us Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 59, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');

to

## The following may be run via phpMyAdmin rather than in Zen Cart Admin (if it gives an error)

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) 
VALUES ('Define [B]Payments[/B] Status', 'DEFINE_[B]PAYMENTS[/B]_STATUS', '1', 'Enable the Defined [B]Payments[/B] Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 59, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
```
I see that most of my questions are answered in the readme.txt file included with the module, but just wanted to make sure that I understand everything correctly, particularly the change required to information.php files as in 2b above. I hope to get a reply to this post and start installing the module as soon as possible. I'm really getting anxious to do it as it looks simple and nice. Tener un buen día y saludos desde Atenas, Grecia!
26 Jul 2010, 8:33 PM
#8
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi I have got myself in a muddle. I was using your module for a FAQ page before I realised there was a FAQ module and so I changed all the instances of ABOUT_US to FAQ. I am getting a 404 error when clicking on about us in information sidebox (which should be FAQ) but whats really strange is that about us page is not in define pages editor. I have not changed anything in the SQL patch .. as I don't know how to .. and I am not even sure whether I have to waaaaah:(

Site is:http://www.rosedakinjewellery.com.au/index.php?main_page=about_us

Thanks

27 Jul 2010, 3:56 AM
#9
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: About Us page in Information sidebox

I have uninstalled all the files and done an uninstall for database and am left with BOX_INFORMATION_ABOUT_US in my information sidebox. Trying to get back to scratch one and install the FAQ module.
Thanks

27 Jul 2010, 8:18 AM
#10
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi again torvista,

As I haven't received a reply yet, I decided to go ahead and install the module with the help of the readme.txt file.

I faced a few problems which I finally solved and the "About us" page is now installed and linked in my "Information" box, both in English and in Greek.

First of all, the "install_about_us_page.sql" did not run from the Administration > Tools > Install SQL Patches and produced errors as you have already pointed out. I run it from phpMyAdmin and there was an error again but soon found out the reason and corrected it:

My Zen Cart was automatically installed with Simple Scripts and the database tables were named znc_xxxxxxxx at the time of installation. Changing the INSERT INTO configuration (configuration_title,....... to INSERT INTO znc_configuration (configuration_title,....... allowed the query to run smoothly.

My other problem was with the Greek characters (to which I had changed from Spanish definitions) as did not appear correctly. The same applied to a few Spanish characters in your files (like the ñ).

Using Notepad++ and playing a bit with settings, I finally managed to correct this problem by selecting the ISO-8859-7 Greek character set and saving the files.

All is fine now and I wish to thank you for this nice module, which will allow me to get rid of the More Information box and EZ-Pages.

Cheers and keep up the good work!

27 Jul 2010, 11:05 AM
#11
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: About Us page in Information sidebox

Sorry to not have replied, I am just too busy to sit down and look over this module at the moment - I have to start from the beginning to understand it just like everyone else as I did not write it, I just tidied it up and started the thread.
Glad you got it fixed, now you know more than me!

27 Jul 2010, 12:22 PM
#12
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

No problem since it was implemented fine. Thanks and have a nice day! :smile:

28 Jul 2010, 2:24 AM
#13
rich219 avatar

rich219

New Zenner

Join Date:
Jul 2010
Posts:
35
Plugin Contributions:
0

Re: About Us page in Information sidebox

How do I get this to work with the horizontal navigation bar mod? I installed it properly but need to figure out how to get the "About Us" tab to appear in the horizontal nav bar from the other mod. Can anyone help?

28 Jul 2010, 4:21 AM
#14
rich219 avatar

rich219

New Zenner

Join Date:
Jul 2010
Posts:
35
Plugin Contributions:
0

Re: About Us page in Information sidebox

I'm got this 90% working. I have the header bar tab done but it's linking incorrectly. How do I locate this file on my server to edit it?

/catalog/index.php?main_page=services

28 Jul 2010, 6:31 AM
#15
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi Rich, I'm as new to Zen Cart as you are and I'm trying to learn by reading and trying. In the case of this mod, I very carefully followed the instructions provided and was successful.

If you want to install the link in the horizontal navigation bar, I guess that you don't need this mod. To add links in the bar you better read the article in https://www.zen-cart.com/tutorials/index.php?article=234. I don't say it's very easy for a novice, but it's not that difficult either. Just remember to backup any file before you amend it.

I wish I could help you more. There are a lot of experienced helpful members in the forums who will provide more technical assistance. Good luck and keep trying. You will succeed in the end.:yes:

19 Aug 2010, 2:38 PM
#16
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

Following the step-by-step instructions in the readme file for the about_us module. Everything seemed to go well but then I have the following comments and questions:

/includes/modules/sideboxes/information.php ****MERGE WITH EXISTING FILE
/includes/templates/MYTEMPLATE/templates/tpl_about_us_default.php
/includes/templates/MYTEMPLATE/templates/tpl_site_map_default.php

There is no existing file of that name in that folder in the bundle. So what am I supposed to do here?

Am I to assume that the MERGE is missing a CR and it applies to everything below and not to the information.php file? But that doesn't solve the problem of the missing file in the sideboxes folder. This files does exist on the server though, just not in the zipped bundle.

Thanks for your help!

19 Aug 2010, 2:49 PM
#17
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: About Us page in Information sidebox

Euonym:

Following the step-by-step instructions in the readme file for the about_us module. Everything seemed to go well but then I have the following comments and questions:

/includes/modules/sideboxes/information.php ****MERGE WITH EXISTING FILE
/includes/templates/MYTEMPLATE/templates/tpl_about_us_default.php
/includes/templates/MYTEMPLATE/templates/tpl_site_map_default.php

There is no existing file of that name in that folder in the bundle. So what am I supposed to do here?

Am I to assume that the MERGE is missing a CR and it applies to everything below and not to the information.php file? But that doesn't solve the problem of the missing file in the sideboxes folder. This files does exist on the server though, just not in the zipped bundle.

Thanks for your help!

/includes/modules/sideboxes/information.php ****MERGE WITH EXISTING FILE

I believe you'll find the file here:
/includes/modules/sideboxes/MYTEMPLATE/information.php

19 Aug 2010, 3:13 PM
#18
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

Okay. Great. So, do I merge the /includes/modules/sideboxes/MYTEMPLATE/information.php with the /includes/modules/sideboxes/information.php or do I place it in the /includes/modules/sideboxes/MYTEMPLATE/ where there is no information.php, just an empty.txt? And by merge, I add the contents of the new one to the old one, right (and hope I don't screw up the syntax)?

Thanks again for your help.

19 Aug 2010, 3:23 PM
#19
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: About Us page in Information sidebox

Euonym:

Okay. Great. So, do I merge the /includes/modules/sideboxes/MYTEMPLATE/information.php with the /includes/modules/sideboxes/information.php or do I place it in the /includes/modules/sideboxes/MYTEMPLATE/ where there is no information.php, just an empty.txt? And by merge, I add the contents of the new one to the old one, right (and hope I don't screw up the syntax)?

Thanks again for your help.

This is from the readme.txt included with the mod.

3. Rename the "MYTEMPLATE" folders to be the same name as your main template, and install the following files to the same file structure as your shop:
/includes/extra_datafiles/about_us_filenames.php
/includes/languages/english/extra_definitions/about_us.php
/includes/languages/english/html_includes/define_about_us.php (this adds the page to the drop down box in Define Pages Editor)
/includes/languages/english/html_includes/MYTEMPLATE/define_about_us.php
/includes/languages/english/about_us.php
/includes/modules/pages/about_us/header_php.php
/includes/modules/sideboxes/MYTEMPLATE/information.php ****MERGE WITH EXISTING FILE
/includes/templates/MYTEMPLATE/templates/tpl_about_us_default.php
/includes/templates/MYTEMPLATE/templates/tpl_site_map_default.php

  1. Upload all the files to your server, following the same folder structure as found in this ZIP.

5. The link to the about_us page has already been added to the information sidebox or your can add it to another location as desired.

19 Aug 2010, 3:39 PM
#20
euonym avatar

euonym

Zen Follower

Join Date:
Aug 2010
Posts:
116
Plugin Contributions:
0

Re: About Us page in Information sidebox

Maybe I'm dense but here is what I did:

I took the file from the bundle found at:
/includes/modules/sideboxes/MYTEMPLATE/information.php

and merged it with the file on the server found at:
/includes/modules/sideboxes/information.php

This is how the readme file reads, albeit lacking some clarity.

Please let me know if this is wrong.

Let me restate the problem. The readme file can be interpreted two different ways depending on whether the "***MERGE" is attached to the specific file or meant to be for the subsequent files, not the one it is attached to. Add to the problem that the file in question does not exist where it is supposed to, it makes me wonder which file(s) are supposed to be merged.

I understand that the readme file must make perfect sense to you but it contains ambiguities to my eye and at my level of understanding of ZC, I fear screwing things up and losing weeks of work.

I appreciate your time and help.