Forums / General Questions / Move forum link to more info..

Move forum link to more info..

Locked

Views: 1,771

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Feb 2007, 3:57 PM
#1
vik007 avatar

vik007

Zen Follower

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

Move forum link to more info..

Hi Guys,

How do i change the forum text and link found in the information box to the more information box?

And alternatively i want to move the about us (from the more info) to information?

www.unikids.co.uk

thanxs guys

24 Feb 2007, 8:07 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Move forum link to more info..

Use the admin > tools > developers tools > search function (use the bottom left entry box) to find the files that "about us" are in. Look for files that associate it to more info. the entry that is there for it needs to moved to the information box

Similar for forum

this is source for about us:

<li><a href="http://unikids.splay.co.uk/zencart/index.php?main_page=page_4&zenid=xx??">About Us</a></li> 

And this for "Forum":

<li><a href="http://unikids.splay.co.uk/zencart/../forum/index.php" target="_blank">Forum</a></li>
</ul>

Zen-Venom Get Bitten

25 Feb 2007, 1:07 AM
#3
vik007 avatar

vik007

Zen Follower

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

Re: Move forum link to more info..

hi made a search as you said..and the about us only this:

/home/vjain/public_html/unikids/zencart/includes/languages/english.php

Line #277 : define('BOX_INFORMATION_PAGE_4', 'About Us');

having looked in here i found:

// information box text in sideboxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

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

define('BOX_BBINDEX', 'Forum');

and here i found:

// information box text in sideboxes/more_information.php - were TUTORIAL_

define('BOX_HEADING_MORE_INFORMATION', 'More Information');

define('BOX_INFORMATION_PAGE_2', 'How we work');

define('BOX_INFORMATION_PAGE_3', 'Selling Your Book(s)');

define('BOX_INFORMATION_PAGE_4', 'About Us');

i swopped the

'define('BOX_INFORMATION_PAGE_4', 'About Us');' with
define('BOX_BBINDEX', 'Forum');

but nothing happened???

25 Feb 2007, 2:36 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Move forum link to more info..

As "about us" is something that you added you should find additional areas (more information) where you added it and this needs to be moved to "Information"

In includes/modules/sideboxes/information.php you add the above and find

// Forum (phpBB) link:
  if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
// or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
// or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
  }

And move this to includes/modules/sideboxes/more_information.php

Don't forget to remove the about us from this file and move it to information.php

Looked a bit closer and you do not seem to have used the "About Us" module available in the downloads area - so you only changed the title of page_4 - look at the directions for the module in the dowloads area/sideboxes

Zen-Venom Get Bitten