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: want to add some "about us" informations at contact.php  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

railgun

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
want to add some "about us" informations at contact.php
« on: July 10, 2016, 11:04:01 pm »

hello as the headline say, i want to add some "about us" infomartions at the contact side of coppermeine, to use this page for the "impressum",
the other way would be to get the code of the contact.php in a site of minicms but i think this would be more dificult.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: want to add some "about us" informations at contact.php
« Reply #1 on: July 11, 2016, 05:18:52 pm »

You need to modify contact.php. Have a look at the end of the file to find a good place to start.
Logged

railgun

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: want to add some "about us" informations at contact.php
« Reply #2 on: July 11, 2016, 07:33:42 pm »

thanks fot tell me to edit the contact.php
i used trial and error to find the correct place where to edit it, and i have found it!
so if someone els want to edit it:
find:
Code: [Select]
// name fieldad above:
Code: [Select]
//own text field
if ($CONFIG['contact_form_subject_field'] != 0) {
       print <<< EOT
    <tr>

        <td class="tableb" align="right">
        </td>
        <td class="tableb">
            <span id="subject_wrapper" class="{$highlightFieldCSS}">
your text<br>
more text<br>
just another line<br>

  </span>
        </td>
        <td class="tableb">
        </td>
    </tr>
EOT;


then it can look like this:
https://railgun-on-tour.de/contact.php?referer=index.php
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.