6 replies [Last post]
baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
Was this information Helpful?

While the several options for different footers promoting ubercart is great how about an option for "none" or custom with a text field ?

Some of the clients that I put sites together for have objections to having powered by ubercart on the footer and I can understand that.

I manually changed the code in the last version i was using but then after upgrading opps gone so if we could incorporate the change in the ongoing development I would then not need to edit this again each upgrade , im sure others would also appreciate this option to change the footer.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: powered by ubercart

http://www.ubercart.org/forum/general_discussion/568/powered_ubercart

The CSS to do exactly that is incredibly easy. Scan that thread for how to do it.

--
Help directly fund development: Donate via PayPal!

baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
something basic for NONE option

edit : uc_store.module

// Return the default store footer options.
function _store_footer_options() {
  $url = array('!url' => 'http://www.ubercart.org/');
  return array(
    1 => t('<a href="!url">Powered by Ubercart</a>', $url),
    2 => t('<a href="!url">Drupal e-commerce</a> provided by Ubercart.', $url),
    3 => t('Supported by Ubercart, an <a href="!url">open source e-commerce suite</a>.', $url),
    4 => t('Powered by Ubercart, the <a href="!url">free shopping cart software</a>.', $url),
    5 => t('None'),
  );
}
   
// Wrap the footer in a div so it can be re-styled.
function theme_uc_store_footer($message) {
 
        if ($message == 'None') {
                return '<div id="store-footer"> </div>';
}
        else    {
                return '<div id="store-footer">'. $message .'</div>';
                }      
}    

Added the option of "None" and if the message is "None" then return a blank footer.
I am sure something more elegant could be done with an optional
Custom option as well but this is all i had time for today .

Lorin's picture
Offline
Joined: 07/15/2008
Juice: 21
Re: something basic for NONE option

Maybe there could be a practical alternative/compromise for those whom want the least hassle possible. What about the option to remove it from the footer all together, but to add/append extra metatag information to the website so it can still be present to those whom care?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: something basic for NONE option

An option to turn it off has already been committed to the 1.x branch, and I'm trying to decide if I like the 80x15 banner enough to commit that and use it in a footer block. I just haven't posted about it b/c I wanted to commit the block alternative first. Eye-wink

In any event, the change will be in the 1.1 release.

baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
powered by ubercart

Great that the option to turn off has been committed Smiling

whats b/c ?

The banner like part of the Advertising module or as in a ubercart footer banner that was static alternative to the text ?

thank you all for prompt attention to my question also makes me very confident in the development of ubercart to see that it has such a great community of dedicated people.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: powered by ubercart

b/c is just short for "because." Smiling

The image I'm thinking is like the new Drupal 6 footer... an 80x15 pixel image w/ the logo and name. Someone posted a mock-up in the "Remove the store footer" thread that I haven't had a chance to review to decide if I like it enough yet. Eye-wink