Modify Buttons / Links - top of Page - continued Modify Buttons / Links - top of Page - continued
 

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]

Main Menu

Modify Buttons / Links - top of Page - continued

Started by CrestoneCreations, July 28, 2010, 12:42:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CrestoneCreations

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

CrestoneCreations

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  
       '{CONTACT_TGT}' => "contact.php?referer=$REFERER",
in themes/sample/themes.php
and I suppose I need to change that to
       '{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 :)

Joe Carver

Quote from: Phill Luckhurst on July 28, 2010, 12:54:56 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

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.

CrestoneCreations

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.