Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / More fun w/ extra pages!

More fun w/ extra pages!

Locked

Views: 2,357

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Jun 2006, 10:16 PM
#1
oldschoolrocker avatar

oldschoolrocker

New Zenner

Join Date:
Sep 2005
Posts:
63
Plugin Contributions:
0

More fun w/ extra pages!

I know this topic is thoroughly exhausted, but I still need to splash a little water on it... I've read & re-read so many posts regarding this subject, it feels like my head is about to explode! Unfortunately, I couldn't find a solution (or similarity) to my particular issue...

I've tried all of the older contribs, and I think that the Extra Pages1 will work the best for me -- IF I can get it to work... :frusty:

I'm using v1.2.7, and w/ all of my mods, I'll be staying w/ it for a while (at some point it HAS to be more about selling & less about tweaking).

In a nutshell, I'm seeing all of my pages in Admin (Define Pages Status & Define Pages Editor), but I'm NOT seeing them in my information sidebox. I am using the Better Categories contrib, but I can't see where that would make much of a difference.

I do have my FAQ defined as F.A.Q. (in all areas), so I don't know if "periods" will effect anything.

Anyway, I've tried everything that I can think of, so now I'm hoping that one of our adept Zenners can give me some advise - and save me from a date w/ a padded cell... :wacko:

Thank you.

20 Jun 2006, 11:42 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: More fun w/ extra pages!

Have you added the code for the new links to your sidebox?

21 Jun 2006, 10:56 PM
#3
oldschoolrocker avatar

oldschoolrocker

New Zenner

Join Date:
Sep 2005
Posts:
63
Plugin Contributions:
0

Re: More fun w/ extra pages!

Kim:

Have you added the code for the new links to your sidebox?

Hi, Kim. Thanks for your reply.

Yes, I do have that added to my sidebox info files. Here are some examples of my code:

extra_pages_filenames.php

// define the extra page filenames
define('FILENAME_DEFINE_RETURNS', 'define_returns');
define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
define('FILENAME_DEFINE_NEWS', 'define_news');
define('FILENAME_DEFINE_WANTED', 'define_wanted');
define('FILENAME_DEFINE_PAGE_10', 'define_page_10');
?>

filenames.php

// define page editor files
define('FILENAME_DEFINE_RETURNS', 'define_returns');
define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
define('FILENAME_DEFINE_F.A.Q.', 'define_f.a.q.');
define('FILENAME_DEFINE_NEWS', 'define_news');
define('FILENAME_DEFINE_WANTED', 'define_wanted');
define('FILENAME_DEFINE_PAGE_10', 'define_page_10');

-----------------------------------------------------------
**What about this area?**

define('FILENAME_POPUP_IMAGE', 'popup_image');
define('FILENAME_PAGE_2', 'page_2');
define('FILENAME_PAGE_3', 'page_3');
define('FILENAME_PAGE_4', 'page_4');
define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten');

------------------------------------------------------------

includes/languages/english.php

define('BOX_INFORMATION_RETURNS', 'Returns');
define('BOX_INFORMATION_ABOUT_US', 'About Us');
define('BOX_INFORMATION_F.A.Q.', 'F.A.Q.');
define('BOX_INFORMATION_NEWS', 'News');
define('BOX_INFORMATION_WANTED', 'Wanted');
define('BOX_INFORMATION_PAGE_10', 'page 10');

includes/modules/pages/...

**Example for the "about us" file**


// include template specific file name defines
  $define_about_us = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', 
FILENAME_DEFINE_ABOUT_US, 'false');
?>

includes/modules/sideboxes/...

more_information.php

$more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . BOX_INFORMATION_HOME . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_RETURNS) . '">' . BOX_INFORMATION_RETURNS . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_F.A.Q.) . '">' . BOX_INFORMATION_F.A.Q. . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_NEWS) . '">' . BOX_INFORMATION_NEWS . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_WANTED) . '">' . BOX_INFORMATION_WANTED . '</a>';
$more_information[] = '<a href="' . zen_href_link(FILENAME_page_10) . '">' . BOX_INFORMATION_PAGE_10 . '</a>';

information.php

unset($information);
  $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_SHIPPING) . 

'">' . BOX_INFORMATION_SHIPPING . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_RETURNS) . 
'">' . BOX_INFORMATION_RETURNS . '</a></div>';
  $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PRIVACY) . 
'">' . BOX_INFORMATION_PRIVACY . '</a></div>';
  $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONDITIONS) . 

'">' . BOX_INFORMATION_CONDITIONS . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_ABOUT_US) . 
'">' . BOX_INFORMATION_ABOUT_US . '</a></div>';
  $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_CONTACT_US) . 

'">' . BOX_INFORMATION_CONTACT . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_F.A.Q.) . 
'">' . BOX_INFORMATION_F.A.Q. . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_NEWS) . 
'">' . BOX_INFORMATION_NEWS . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_WANTED) . 
'">' . BOX_INFORMATION_WANTED . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_2) . 
'">' . BOX_INFORMATION_PAGE_2 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_3) . 
'">' . BOX_INFORMATION_PAGE_3 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_4) . 
'">' . BOX_INFORMATION_PAGE_4 . '</a></div>';
 $information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_PAGE_10) . 
'">' . BOX_INFORMATION_PAGE_10 . '</a></div>';
$information[] = '<div class="betterCategories"><a class="category-links" href="' . zen_href_link(FILENAME_DEFAULT) . 
'">' . BOX_INFORMATION_PAGE_1 . '</a></div>';

In some define areas I have "about us" and in others, "about_us". Basically, I just followed the format of the previously-named pages (e.g. 'page_2' or 'page 2'), so I'm assuming this is correct (or irrelevant).

Do extra_pages_filenames.php & filenames.php coexist, or is extra_pages unnecessary if defines are added to filenames.php? I've tried one, the other & both together, and found no difference. I also have a question inserted in the above filenames.php code box, in case it was missed.

Any input on this matter will be GREATLY appreciated!!! Like I said, this is driving me nuts...

27 Jun 2006, 3:58 AM
#4
oldschoolrocker avatar

oldschoolrocker

New Zenner

Join Date:
Sep 2005
Posts:
63
Plugin Contributions:
0

Re: More fun w/ extra pages!

Check.

Check, one, two...

<tap><tap>

Is this thing on?

27 Jun 2006, 4:46 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: More fun w/ extra pages!

I believe this is a no-no in php:

define('BOX_INFORMATION_F.A.Q.', 'F.A.Q.');

The periods in the constant name is like saying take the following constants:
BOX_INFORMATION_F
A
Q

And combine them together ... and could produce some very bad results ... :eek:

4 Jul 2006, 4:14 PM
#6
oldschoolrocker avatar

oldschoolrocker

New Zenner

Join Date:
Sep 2005
Posts:
63
Plugin Contributions:
0

Re: More fun w/ extra pages!

Ajeh:

I believe this is a no-no in php:

define('BOX_INFORMATION_F.A.Q.', 'F.A.Q.');

> 
> The periods in the constant name is like saying take the following constant**s**:
> BOX_INFORMATION_F
> A
> Q
> 
> And combine them together ... and could produce some very bad results ... :eek:


Hi Linda,

Thanks for your input.

I, too, thought that may be the problem (see first post), but sadly enough it isn't... I've spent countless hours exhausting every possible option, so I guess it's time to move on. Very frustrating...