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: Need a little coding help  (Read 4357 times)

0 Members and 1 Guest are viewing this topic.

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Need a little coding help
« on: December 06, 2003, 02:27:21 am »

I am creating some buttons in the anycontent.php file.  I've created the buttons with the text already on them.  I created links to the buttons using the following code.  I have created 6 buttons linking them as shown in the code posted below.  I wanted to do this because I created the custom buttons within the theme I was using and I was limited to the edited theme.  I can now use any theme and display my custom buttons in anycontent without having to create them inside of each theme.


anycontent.php
Code: [Select]
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.2.0                                            //
// ------------------------------------------------------------------------- //
// Copyright &#40;C&#41; 2002,2003 Gregory DEMAR <gdemar@wanadoo.fr>                 //
// http&#58;//www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// &#40;at your option&#41; any later version.                                       //
// ------------------------------------------------------------------------- //

starttable&#40;"100%"," "&#41;;

?>

<tr><td class="tableb" ><div align="center">
<br>
<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" height="25" width="68" /></a>&nbsp;
<a href="about/index.php" title="About Me"><img alt="About me" src="buttons/about_me.gif" height="25" width="85" /></a>&nbsp;
<a href="mailto:sbpoole@ptmc.net" title="Contact me by Email"><img alt="Contact Me" src="buttons/contact_me.gif" height="25" width="100" /></a>&nbsp;
<a href="calendar/index.php" title="Order 2004 Calendars"><img alt="Calendars" src="buttons/calendars.gif" height="25" width="135" /></a>&nbsp;
<a href="collages/index.php" title="Order Collages"><img alt="Collages" src="buttons/collages.gif" height="25" width="85" /></a>&nbsp;
<a href="contact/index.php" title="Order Prints"><img alt="Order Prints" src="buttons/order-prints.gif" height="25" width="100" /></a>&nbsp;
<br><br>


<br><br><img alt="03cal (13K)" src="03cal.jpg" height="100" width="77" /> <img alt="04cal (13K)" src="04cal.jpg" height="100" width="77" />&nbsp;&nbsp;&nbsp;
 <img alt="Logo-small (83K)" src="Logo-small.jpg" height="217" width="260" />&nbsp;&nbsp;&nbsp; <img alt="4col (15K)" src="4col.jpg" height="100" width="77" /> <img alt="1col (15K)" src="1col.jpg" height="100" width="77" />
  <br>
 <font color="#000000" size="2"><strong>Be sure to order your <a href="http://www.sonnypoole.com/calendar/">
 <font color="#3333ff">2004 Calendars</a><font color="#000000" > and <a href="http://www.sonnypoole.com/collages/">
 <font color="#3333ff">Collages</a><font color="#000000">  by clicking on the buttons above<br>
 <font color="#3333ff" size="4">Leave A Comment And Rate Your Favorite Photos!<br></font>

</td></tr></div>
<?php
endtable
&#40;&#41;;

?>


Here is a typical button (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.sonnypoole.com%2Fbuttons%2Fcalendars.gif&hash=1e647fb5a9f858d0acec6c9e75d18c0f) the way I would like it, but on the webpage a wide border gets added.  You can see the effect on my site at http://www.sonnypoole.com

A wide black border around them that changes to white upon mouseover is what I get.  My question is, how does one remove borders around an image that is also a link?  
Thanks for any help, as I tried to find help in the web without any luck.
Logged

sbpoole

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 66
Need a little coding help
« Reply #1 on: December 06, 2003, 05:24:26 am »

Figured it out after playing around with it.

I simply added border="0" to the source image after calling the link.

<a href="index.php" title="Home Page"><img alt="Home" src="buttons/home.gif" border="0" height="25" width="68" /></a>

Thanks anyways, Sonny   :P
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.