Forums / Templates, Stylesheets, Page Layout / Trouble adding a link/page to my "Information" in sidebox

Trouble adding a link/page to my "Information" in sidebox

Locked

Views: 4,017

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
12 Jan 2008, 2:31 PM
#1
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Trouble adding a link/page to my "Information" in sidebox

I think I may have deleted things from my templates/etc. and this is causing me problems. We are live (but not "live" since I am still screwing around with the site).

Anyway - if you see the site http://aurumitaliangold.com you will see the categories, info, and then the e-pages (Important Links) in the sidebox on the left.

How can I best add the links for payment options, security, etc. to the "Information" pages?? (i.e. I want to just have the "Information" list and NOT the "Important Links").

I followed all instructions I could find but the only way I could see these pages was to use the e-z pages. It seems that I should be able to define the page is the Define Pages Editor and I did make a page there (page_2.php) but I can not get it to show up anywhere...

Thanks - almost there!

12 Jan 2008, 5:14 PM
#2
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

I would edit the links directly into the information sidebox by opening includes/modules/sideboxes/information.php

I think you could add these two:

{$information[] = '<a href="http://aurumitaliangold.com/index.php?main_page=page&id=1">' . BOX_INFORMATION_PAYMENT_OPTIONS . '</a>';}

{$information[] = '<a href="http://aurumitaliangold.com/index.php?main_page=page&id=2">' . BOX_INFORMATION_SECURITY . '</a>';}

right after this:

  if (DEFINE_CONTACT_US_STATUS <= 1) {$information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';}

Then open up your includes/languages/english.php and find:

  define('BOX_INFORMATION_CONTACT', 'Contact Us'); 

right after this add:

  define('BOX_INFORMATION_PAYMENT_OPTIONS, 'Payment Options'); 
  define('BOX_INFORMATION_SECURITY', 'Security'); 

Then you could turn off the links for ezpages sidebox in the admin->Tools->EzPages well, I'm sure you know that one since you created the ezpages!

13 Jan 2008, 8:27 PM
#3
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

Thank you! I will try this ASAP and post here on the results -

13 Jan 2008, 9:09 PM
#4
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

As far as the page 2 goes, the code to display that link is located in the more information sidebox, so that must be enabled in order to display those links. Or, I think you could transfer the code to display those links to the information sidebox easily just by changing the variable $more_information to $information and keeping the rest of the code between the 'if' and the '}' for a define_page.

Also you need to make sure that the 'display links in sidebox' etc. are set right in the admin->configuration->define pages status.

14 Jan 2008, 5:29 PM
#5
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

Hmm - made the changes as you said, and nothing. Tried to tweak it some and still - can not get those links to show up...

Anyway - what I have "live" now are the suggestions you made as is - but as you can see - nothing is showing up. Am I missing a step?

I am using a template that is outside the default theme - does that make a difference?

14 Jan 2008, 11:08 PM
#6
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

rainthebat:

Or, I think you could transfer the code to display those links to the information sidebox easily just by changing the variable $more_information to $information and keeping the rest of the code between the 'if' and the '}' for a define_page.

That sounds promising - but where do I do it? I turned on the "more information" box and it did show up. But now I have 2 menus, Information and More Information - so I would like to combine them.
FYI the site is not showing this now - I turned it on but then turned it off again.
Thanks -

15 Jan 2008, 3:27 PM
#7
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

I tested out the previous example I gave you and got it to work (the first thing you tried that didn't work for you).

You need to put those two lines of code in after the } at the end of the contact us link statement, and before the beginning of the next statement.

 if (DEFINE_CONTACT_US_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
  }

Put those two {$information[] statements I gave you after the }.

After doing this, make sure to edit the BOX_INFORMATION stuff into the english.php file.

16 Jan 2008, 4:58 PM
#8
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

Thanks again - I will try this and report back.

31 Jul 2008, 8:07 PM
#9
mar avatar

mar

New Zenner

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

Re: Trouble adding a link/page to my "Information" in sidebox

Is there a way to add an additional page to the Information sidebox? Using EZ-Pages just added another sidebox. Thank you for your help.

31 Jul 2008, 8:14 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Trouble adding a link/page to my "Information" in sidebox

A couple of ways -

A single page - get the about us module from the down loads area and follow the instructions and this can be done for any page name you want with adjustments.

Alternative - move all current info box pages to the ezpage box as internal links and re-name the heading title add any additional as ezpages then turn off the info box

Zen-Venom Get Bitten

6 Apr 2009, 5:10 AM
#11
jonathonb avatar

jonathonb

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

Mar,

This maybe a little late but there is another 3rd option, the one
I created.

Goto Link

6 Apr 2009, 5:11 AM
#12
jonathonb avatar

jonathonb

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Re: Trouble adding a link/page to my "Information" in sidebox

This maybe a little late but there is another 3rd option, the one
I created.

Goto Link