Would appreciate some help! your expertise required Would appreciate some help! your expertise required
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Would appreciate some help! your expertise required

Started by kevdsn, May 12, 2005, 09:17:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kevdsn

Hi, I have recently added the paypal shopping basket to my theme hardwired, all is working fine except that the "view basket" and "buy now" buttons are out of line and ugly, can anyone please tell me how I need to alter the code in the theme.php file so that I can position the buttons in the right place, or at least align the "buy now" button with the rest of the row. Also the buttons dont fit with the theme very well any advice on how to change them is appreciated. I am a newbie at this and have little understanding of php, so please be gentle. Many thanks in anticipation.

This is the code form the start of the theme.php file as it stands at the mo. The site is at www.magicimage.co.uk/cpg133/index.php


// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/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         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: theme.php,v 1.10 2004/09/21 23:19:54 nibbler999 Exp $
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS', 1);
// HTML template for main menu
$template_main_menu1 = <<<EOT
               <span class="topmenu"><table><tr><td><!--  view basket button  -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value='{$CONFIG['paypal_email']}'>
<input type="image" src="https://www.paypal.com/en_GB/i/btn/view_cart_02.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form> </td><td>
                       <table border="0" cellpadding="0" cellspacing="0">
                               <tr>
<?php

kevdsn

One thing I have noticed is that the view basket button displays correctly in firefox, although is to high in ie, the add to cart button is still too high in all browsers. Really would appreciate a little help with this, have been fiddling for days with it, but getting no where, have read all documentation and searched the forums.... Have managed to figure out most things along the way, but this has got the better of me.

kevdsn

Would just like to thank everyone on this forum for your overwhelming help and support! I guess I will have to try some other webmaster forums....

Joachim Müller

the paypal hack is not part of coppermine's core code, but comes as a hack. It only is supported in the thread that deals with the paypal hack. Silence can mean a lot, in this particular case it meant "I have no idea", that's why I didn't reply, as it wouldn't have been helpfull.
Suggested reading:
http://coppermine.sourceforge.net/faq.php#lamesupport
http://forum.coppermine-gallery.net/index.php?topic=13938.0

kevdsn

Thanks gaugau for your reply... will visit the links you suggest.