Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Side Box's (More Information)

Side Box's (More Information)

Locked

Views: 2,096

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
9 Aug 2007, 5:09 AM
#1
heartagram_aus avatar

heartagram_aus

New Zenner

Join Date:
Aug 2007
Posts:
11
Plugin Contributions:
0

Side Box's (More Information)

Hello Every One,
I have tried many things to try and get this working but with no Luck.
What i am trying to do is Under the More Information Where i have

I tried editing english.php and more more_information.php by adding

// information box text in sideboxes/more_information.php - were TUTORIAL_
define('BOX_HEADING_MORE_INFORMATION', 'More Information');
define('BOX_INFORMATION_PAGE_2', 'Instructions');
define('BOX_INFORMATION_PAGE_3', 'Supported Phones');
define('BOX_INFORMATION_PAGE_4', 'Submit');
define('BOX_INFORMATION_PAGE_5', 'Page 10');

After changing things in both files i get the link to end up like this

http://mbookx.com/cart/index.php?main_page=FILENAME_PAGE_5

Could come one tell me how to fix this problem.

Thank you very much for all your time and help

9 Aug 2007, 6:14 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Side Box's (More Information)

You mention the steps needed to add an extra page to the more information sidebox, but you don't mention anywhere whether you have actually created the new page, and the problem that you are having suggests that you probably haven't.

New pages are best created when you have some serious PHP programming to be included. Otherwise, it is easier to creating the new content in an EZ-Page and link to that instead. There's a FAQ entry about how to create links to EZ-Pages.

9 Aug 2007, 8:15 AM
#3
heartagram_aus avatar

heartagram_aus

New Zenner

Join Date:
Aug 2007
Posts:
11
Plugin Contributions:
0

Re: Side Box's (More Information)

I created the file page_5.php in includes/languages/english/ (where page_2.php page_3.php page_4.php where already there)
i then modifed more_information.php in /includes/modules/sideboxes/ by adding this

if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}
** if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
}
**
The same as the first 3 are.

Then i modifed english.php in includes/languages/

and added

were TUTORIAL_
define('BOX_HEADING_MORE_INFORMATION', 'More Information');
define('BOX_INFORMATION_PAGE_2', 'Instructions');
define('BOX_INFORMATION_PAGE_3', 'Supported Phones');
define('BOX_INFORMATION_PAGE_4', 'Submit')
** define('BOX_INFORMATION_PAGE_5', 'Test')**

The text Test shows up fine no problem, its the link to the page that ends up being linked 2 http://mbookx.com/cart/index.php?main_page=FILENAME_PAGE_5

unlike the others that work come up like http://mbookx.com/cart/index.php?main_page=page_2

thanks

9 Aug 2007, 10:53 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Side Box's (More Information)

Again, you are describing how to create a link to a page, but not how to create the page itself.

To do this you would, at the very least, need to create a templates/tpl_page_5_default.php template, a pages/page_5/header_php.php module and put an entry in your filenames.php file. Or, you could just use the built in EZ-Pages function, designed to do exactly what you are doing but through the Admin with no programming needed (other than to add your link to the More Information sidebox)..

10 Aug 2007, 8:08 AM
#5
heartagram_aus avatar

heartagram_aus

New Zenner

Join Date:
Aug 2007
Posts:
11
Plugin Contributions:
0

Re: Side Box's (More Information)

Thanks for your help but still having a hard time getting this 2 work.
I have created a Page_5.php, that bit i know how to do,
But when u say i need to create more parts for it, i dont know where they all are.
I tried the Ez-Pages Function even that is not easy.
I called it Page_5

Then where is says Open New Window:

Yes
No Page is SSL:
Yes
No
Header:
Yes
No Order:
Sidebox:
Yes
No Order:
Footer:
Yes
No Order:
Chapter:
TOC:
Yes
No Order:

Side Box i put yes,

But here for the linking part i have no idea what to ad

Internal Link URL:
If specified, the page content will be ignored and this INTERNAL alternate URL will be used to make the link
Example to Reviews: index.php?main_page=reviews
Example to My Account: index.php?main_page=account and mark as SSL

External Link URL:
If specified, the page content will be ignored and this EXTERNAL alternate URL will be used to make the link
Example to external link: http://www.sashbox.net

I wont this page to go under More info

http://www.mbookx.com/cart/ if u wont to see where i mean.

Thanks again

11 Aug 2007, 3:19 PM
#6
heartagram_aus avatar

heartagram_aus

New Zenner

Join Date:
Aug 2007
Posts:
11
Plugin Contributions:
0

Re: Side Box's (More Information)

can some one please help and explain thank u

11 Aug 2007, 3:47 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Side Box's (More Information)

To create the EZ-Page just say no to all the options at the top. Put your HTML content in the big box and leave the internal and external links boxes underneath empty.

Then create the link in your more information sidebox by following the instructions in the FAQ entry links to in post 2 above.

22 Aug 2007, 8:16 AM
#8
alphaa avatar

alphaa

New Zenner

Join Date:
Aug 2007
Posts:
1
Plugin Contributions:
0

Re: Side Box's (More Information)

I still dont understand.
I have created a page called page_5 in Ez page.

Now, how do I link it from the More information sidebox?

Please provide detail explaination, thank you

22 Aug 2007, 8:55 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Side Box's (More Information)

There is a detailed explanation in the FAQ entry linked to in post 2, together with an example to edit and a hint as to the values to use. Can't really get more detailed than that.

23 Aug 2007, 9:15 AM
#10
lastpirate007 avatar

lastpirate007

Zen Follower

Join Date:
Jul 2007
Posts:
137
Plugin Contributions:
0

Re: Side Box's (More Information)

kuroi:

To create the EZ-Page just say no to all the options at the top. Put your HTML content in the big box and leave the internal and external links boxes underneath empty.

Then create the link in your more information sidebox by following the instructions in the FAQ entry links to in post 2 above.

hi

i followed ur instruction . and i got this error on the top . here is the image

pls help me....

thanks in adv.

23 Aug 2007, 9:27 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Side Box's (More Information)

:D

That error message is saying that you didn't follow the instructions. In particular that you have tried to put something in the internal or external URL fields which aren't shown on your screen shot.