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: how to edit Vanity?...Footer links  (Read 2383 times)

0 Members and 1 Guest are viewing this topic.

Seleno

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
how to edit Vanity?...Footer links
« on: May 09, 2008, 05:14:23 pm »

Hi There
how can i edit vanity?
the footer links like php.net and mysql.com
where can i find footer.php to edit their links or to add sitemap close to them?
waiting your help
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to edit Vanity?...Footer links
« Reply #1 on: May 09, 2008, 05:20:56 pm »

In a similar manner that applies to all your custom theming efforts: edit themes/yourtheme/theme.php, find the section that controls the stuff that you want to see changed and edit accordingly. If your custom theme doesn't contain the section that you want to see changed, copy that section first from themes/sample/theme.php into a new line before
Code: [Select]
?>of themes/yourtheme/theme.php
This has been explained countless times already. The section you need to copy to edit the vanity footer is
Code: [Select]
// Template used for Vanity Footer
$template_vanity = <<<EOT
<div id="vanity">
      <a id="v_php" href="http://www.php.net/" target="_blank"></a>
      <a id="v_mysql" href="http://www.mysql.com/" target="_blank"></a>
      <a id="v_xhtml" href="http://validator.w3.org/check/referer" target="_blank"></a>
      <a id="v_css" href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"></a>
</div>
EOT;
Please read up the docs.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.