forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: eule on February 14, 2005, 08:45:28 pm

Title: Home Text Link
Post by: eule on February 14, 2005, 08:45:28 pm
Hello there,

is it possible to remove the home text link?
Or link to any other place than the index.php.
I wana link straight to my main homepage over the home text link.


Thanks for your Time.
Title: Re: Home Text Link
Post by: Abbas Ali on February 15, 2005, 06:10:34 am
This has been asked quite a few times earlier. Please do search before posting questions.

Anyways, edit theme.php of your theme to change the target of the link.

All the menu building is done at the top of that file. Find the link which you want to change and then change the href of that link to whatever you want.
Title: Re: Home Text Link
Post by: eule on February 15, 2005, 03:03:36 pm
Thanks for your awnser abbas ali
but it looks like i am to stupid to found the link.
I am using the classic theme but i coludnt found the link index.php.

I dont mean the link on the top whit the coppermine picture that is pointed to the index.php.

I mean the small home text link straight over the album if i open one that is pointed to the index.php.
Can you post the row that i must change in the theme.php.

Thanks for your time.
And sorry for my bad english
i hope you understand what i mean.

Title: Re: Home Text Link
Post by: d1zz13 on February 15, 2005, 03:44:17 pm
The link you're refering to is in the section called the 'BREADCRUMB'.  Perfectly named so as it's your trail back to the homepage.

Having had a quick look over the .php files I think you need to change the functions.inc.php file in the include directory.

**Make sure you back this file up before you change it**

Do a search for the following text in that file //Add Link for album if aid is set  and the few lines above it should be as follows:
Code: [Select]
        }else{ //Dont bother just add the Home link to breadcrumb
                $breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';
                $BREADCRUMB_TEXT = $lang_list_categories['home'];
        }
Change the <a href=index.php>  to the link to your page and away you go.

I think you also need to change the link in this code as well, it's a few lines above the previously mentioned code:
Code: [Select]
                $breadcrumb_array = array_reverse($breadcrumb_array);
                $breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';
                $BREADCRUMB_TEXT = $lang_list_categories['home'];

I've only just started using CPG so I'd wait until these instructions are confirmed by someone with a little more experience than myself, as it may have knock on effects elsewhere, but it should be OK.  :-X
Title: Re: Home Text Link
Post by: eule on February 15, 2005, 04:19:35 pm
Hello d1zz13
it works now.

I changed all two codes at the moment.


Thanks for your fast Help.