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: Modify Buttons / Links - top of Page - continued  (Read 4878 times)

0 Members and 1 Guest are viewing this topic.

CrestoneCreations

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Modify Buttons / Links - top of Page - continued
« on: July 28, 2010, 12:42:03 am »

Gallery:
http://seawolfadventures.net/photoscpg/index.php

Greetings

Want to change the URL of "Contact" to point to http://seawolfadventures.net/contact/index.html
I want to remove/comment out "My gallery" altogether.

In the thread
http://forum.coppermine-gallery.net/index.php/topic,66237.0.html
My question about changing the content text was answered - great.
I had hoped that the other unanswered parts would become evident through my explorations, but alas, I do not seem to be that clever.

I have poured over the
http://documentation.coppermine-gallery.net/en/theme_theme_php.htm#theme_create_theme_php
and other related documents.
I have tried making my own themes, removing all the content from theme.php etc. but just don't get it ...

Again, this is perhaps obvious for code experts, but alas I am still struggling to learn as my world is mostly front-end, but I am willing to learn.  I have, as mentioned, spent a long time searching the documentation & this forum and just can't figure how it is that I change the links, so again if you would be so kind as to give me a quick answer / steer me right I would be most appreciative. 

Thanks in advance.

Clyde
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Modify Buttons / Links - top of Page - continued
« Reply #1 on: July 28, 2010, 12:54:56 am »

To remove buttons take a look at this - http://forum.coppermine-gallery.net/index.php/topic,62665.0.html

Please read through the post fully as I believe there were some file mistakes. I think it is version 1.2 you require but I have not tested.

With that you could remove the current contact button and then add a custom one of your choice.

We di have a one question per thread policy however so if you do get stuck with that bit please start another thread.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

CrestoneCreations

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Modify Buttons / Links - top of Page - continued
« Reply #2 on: July 28, 2010, 02:11:29 am »

That's great, thank you!
I have installed cpg1.5.x_plugin_final_extract_v1.2 and run it successfully.
I'm guessing that the core info I wanted to modify lived in the database and that is why I couldn't find it in the code anywhere?

So I now have 2 of 3 problems solved thanks to your help!

The final one -
change the URL of "Contact" to point to http://seawolfadventures.net/contact/index.html
instead of towards   contact.php
I have found the line of code  
        
Code: [Select]
'{CONTACT_TGT}' => "contact.php?referer=$REFERER",in themes/sample/themes.php
and I suppose I need to change that to
        
Code: [Select]
'{CONTACT_TGT}' => "http://seawolfadventures.net/contact/index.html?referer=$REFERER",somehow putting that into my themes/rainy_day/themes.php

but my attempts have rendered my board inoperative ... backup file inserted back and all is fine again ...

Thanks again.  Much appreciated :)
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Modify Buttons / Links - top of Page - continued
« Reply #3 on: July 28, 2010, 02:44:41 am »

We di have a one question per thread policy however so if you do get stuck with that bit please start another thread.

CrestoneCreations

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Modify Buttons / Links - top of Page - continued
« Reply #4 on: July 28, 2010, 02:49:10 am »

Sorry, I thought that WAS one question as they were related enough - or could have been - under the modification of links.
I will be happy to start another thread since you think that is necessary.
Logged

CrestoneCreations

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Modify Buttons / Links - top of Page - continued
« Reply #5 on: July 28, 2010, 02:55:55 am »

I started another thread, as per your post, but it seems like it should all be on one since the topic is so related.
The bit you copied and highlighted for me was "if I got stuck" on the Final Extract, which would have been the "other question" for the thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.