Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Home Text Link  (Read 3489 times)

0 Members and 1 Guest are viewing this topic.

eule

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Home Text Link
« 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.
« Last Edit: February 16, 2005, 08:57:55 am by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Home Text Link
« Reply #1 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.
Logged
Chief Geek at Ranium Systems

eule

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Home Text Link
« Reply #2 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.

Logged

d1zz13

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • My Gallery
Re: Home Text Link
« Reply #3 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
Logged

eule

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Home Text Link
« Reply #4 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.




Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.