Forums / Basic Configuration / Combine Info and More Info

Combine Info and More Info

Locked

Views: 1,820

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Jul 2007, 5:11 PM
#1
rpbenton avatar

rpbenton

New Zenner

Join Date:
Apr 2007
Posts:
6
Plugin Contributions:
0

Combine Info and More Info

Is there a way to move the links from "More Information" to be included in the "Information" sidebox?

Also, how do you turn off the link to newsletter unsubscribe?

9 Jul 2007, 6:25 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Combine Info and More Info

Easier way would be to use the EZ Pages sidebox for all of your "extra" links. Then you can set the order you want them displayed and pick and choose which to show.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Apr 2008, 7:16 PM
#3
pheniks avatar

pheniks

New Zenner

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

Re: Combine Info and More Info

rpbenton:

Is there a way to move the links from "More Information" to be included in the "Information" sidebox?

Also, how do you turn off the link to newsletter unsubscribe?

The information box and more information box are processed and displayed by /includes/modules/sideboxes/information.php and /includes/modules/sideboxes/more_information.php respectively.

Copy both to /includes/modules/sideboxes/<Your_Template_Name>/

In /includes/modules/sideboxes/more_information.php you will see a section of code that looks like this

// test if links should display
  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>';
  }

// insert additional links below to add to the more_information box
// Example:
//    $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';

You will need to copy this to /includes/modules/sideboxes/<Your_template_name>/information.php where you want these pages to show up in the information sidebox.

Newsletter unsubscribe can be turned by commenting this line in information.php to appear as follows:

/* if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  } */

Hope this helps.

30 Apr 2008, 8:25 PM
#4
pheniks avatar

pheniks

New Zenner

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

Re: Combine Info and More Info

Also, when you add the lines from more_information.php to information.php you will need to change any instance of $more_information to $information.