Remove Footer - powered by ubercart

Posts: 60
Joined: 09/07/2007
Bug Finder

I'm just starting to explore Ubercart - so far it seems great. I did notice that after installing it, "ecommerce powered by Ubercart" shows up at the bottom of my site. I'd prefer not to have this...is there an easy way to disable it? Have I missed a setting somewhere or a themeable function? Or do you guys require this to be shown?

Thanks for your help,
Xerxes

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hey, Xerxes. Glad you stopped by to try us out. Smiling The text is really just an attempt to spread the word about Ubercart and boost our pagerank as we slowly climb the search engine rankings for open source e-commerce projects. It'll take a while before we unseat Zencart as the #1. Sticking out tongue

Anyways, it's definitely not required, and many folks have taken it out for design requirements. It's built into the store module, so you can use a search and replace to take care of it.

Posts: 60
Joined: 09/07/2007
Bug Finder

Hi Ryan,

Thanks for your quick reply. That makes sense and I'm happy to put a link to Ubercart on the site...just not on my nice clean front page. Smiling

I'll take it out of the store module as you suggested, though I always hate to edit modules directly instead of overriding functions. You might consider making this output themeable in the future so that it won't break on an upgrade.

I'm still working through setting everything up...so far, so good. Thanks for the great project!

Xerxes

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Good call. I'll move that into a theme function right now. It should help folks that want to keep it in there but just tweak it a bit to match their themes, too.

EDIT: Change committed. Smiling

Posts: 7
Joined: 08/18/2007

How about making this easy and having an option in the store config to switch it on or off.

Posts: 151
Joined: 08/07/2007
AdministratorNot Kulvik

I understand that some people (read maybe most people) don't want that link in the footer. Our position is that we work hard, spend a lot of time, and money to develop Ubercart. We then give it away for free. We then provide exceptional free support. All we ask in return is that you leave that link in place. That link is, in my opinion, a small price to pay for a great, free, well supported piece of software. We do not try to enforce the placement of the link (as oscommerce and others do) via copy write and threatening language, but we are not going to easily facilitate disabling it either. If it is not enough of an issue for you to edit the code and remove it, then maybe you should just leave it.

The footer link is there to promote Ubercart and allow other people like you to find Ubercart. The more people use Ubercart, the better it will become, so you get some direct benefit from it. So you can leave it there for your own benefit, you can leave it there because we ask you to, or you can leave it there for good karma, but please, just leave it Smiling
Peace,
Andy

Posts: 40
Joined: 10/10/2007

I don't mind the link, but in addition to what's already in the store options, there should be an option similar to what osCommerce has. Just "Powered by Ubercart".

I wouldn't want my store to say it's powered by "free software". It may make the store look cheap (to the customer, that is)

You have a point that you "work hard" and "spend a lot of time", but don't forget all the community's contributions and support that it provides.

Posts: 541
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

I think it should be possible to disable the link. There are a lot of way to participate to the Ubercart community (developping module or bring help on forums for example). Most of shop developper are not store owner, and I had to remove the link because the store owner that order the website I developped didn't want to see that in his footer.

Posts: 151
Joined: 08/07/2007
AdministratorNot Kulvik

Daniel.S - Good point. one of our goals for Ubercart 1.0 is to have a list of five or so footer choices to choose from. Your suggestion will certainly be one of them.

Zmove - I respect your opinion, I just disagree with it.

Andy

Posts: 375
Joined: 10/16/2007

Andy wrote:

Zmove - I respect your opinion, I just disagree with it.

Andy

Andy:

I also agree with you. Considering the amount of time and effort, it is little to ask that credit be given to those that make Uber possible. If folks do not desire to respect the work of others then there are commercial carts available for use.

For those that desire to remove the link, one possible scenario is to tell the customer/client that with the link removed there is a $500 charge. If they go for it then that amount can be donated to Uber.

Just my opinion.

Jim

Posts: 57
Joined: 10/07/2007

Spreading the good word about Ubercart is not a problem. This application deserves it.

If you can help Daniel.S along with the AusPost module, and get it working flawlessly for Australian users, I am sending money across for sure.... In fact, the only reason I haven't contributed a little something, is that I am waiting to see if this can run my shop.

(Make it able to run multiple locations, ie, the UK & Australia, and you can name my first born child =)

You guys deserve more than just thanks....

Posts: 151
Joined: 08/07/2007
AdministratorNot Kulvik

Jim, thanks for say what I feel it is not my place to say. I think Ubercart's greatest asset is our great community of developers and users like you.

72dpi - We absolutely want to get the AusPost module working flawlessly. I think this is the first time any of the Uber-team have worked on a project this big. The question of which new feature to implement next is kind of a surprise to us. At least once a day we see some new worthy module or feature for Ubercart which deserves attention. We will get to them all as soon as we can.

As for the offer of your first born child; I don't think that is such a good idea. We are not very good with kids. Giving your child to us will almost certainly result in a disastrous setback in your child's development. Smiling

Peace,
Andy

Posts: 40
Joined: 10/10/2007

zmove wrote:
I think it should be possible to disable the link.

If you need to disable the link, you can do so in other ways. I don't think it's unreasonable to have a link positioned somewhere tactful in the footer.

If your clients don't want to see the link, make it the same colour as the background. That way search engines will still pick it up.

Personally, I disabled the default one and made my own link that states just "Powered by Ubercart"

The more I use Ubercart, the more I see that it's the best open-source cart on the net today. It's just so extensible and configurable - and it's only getting better. Thanks guys for all the hard work. It's really appreciated.

Posts: 195
Joined: 12/28/2007
Uber DonorBug Finder

I've not disabled the link... and I've not even used Ubercart to live sites yet, just trying to learn to use it etc. However. everything seems Very Promising and I've already donated to Ubercart because I clearly see the power of the software and I'm respecting the hard work of the Ubercart developers - Highly Appreciated!

I'm going to donate something of every live site I'm using Ubercart... and I'm inviting also the other Ubercart users to do the same... these guys deserve it... Thanks!

PS. and of course, if possible, please keep the link active.

Posts: 27
Joined: 01/17/2008

I'd much rather have a little button as a block on the sidebar.

Posts: 10
Joined: 01/20/2008

What kind of mentality is this? This is clearly not a drupal mentality to add the footer link. In case you haven't noticed, Drupal is one of the few open source application which doesn't add a footer link.
Some theme designers add their footer, this ubercart module is the first time I see it done by a module.

I understand the goal : create awareness of ubercart in search engines results by increasing backlinks with selected key phrases. This is a goal, and that's fine. What I don't understand is the extremism of some users who defend the idea of having a link in the footer for ethical reasons.. This is lame thinking, Drupal proved to others (like joomla) that an open source application doesn't need to put a footer per default in order to create good will.

Now, I want to remove the link, and what do I have to do? hack the module file? ok, I'm gonna do it, but please... if ubercart need this to create awareness, it means it's lame. If it's not lame, then awareness will happen. Don't force it on developers!
If you care so much about search engines awareness, then ok, go on with this, but please don't mix any ethical philosophical stuff in it. I don't owe anything to ubercart even if I use 1000 times without mentionning it.

Posts: 27
Joined: 01/17/2008

If you think it's "lame", then don't use the software. Simple.

It's the UberCart Team's right to have a linking footer enabled by default. If you don't like it, remove it. We all know you can do it ... so, don't bitch about it, or go program your own cart.

And if you do, please post the link, and we'll have a poll to see who's cart is really "lamer".

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

As an attempt to diffuse a "situation" before it evolves, I'd just like to point out that the footer is also displayed via a theme function as mentioned above. This means a dev can keep an override function handy so that the footer never makes it into the HTML at all. I don't think the footer's coming out any time soon, but it can certainly be modified/made nicer just like any other part of the code. I like the idea of an optional button or a simple "Powered by Ubercart." message. And I do agree that it isn't really an ethical question, but I do appreciate all the support from the folks using the cart. Cool

Posts: 73
Joined: 12/10/2007

"If you think it's "lame", then don't use the software. Simple."
This is the same mentality of people who say "If you don't like the policy on Iraq, then you can just leave the country. America, love it or leave it."
And that logic doesn't work any better here.

If you took a poll and asked people how they first heard about the ecommerce program they are currently using, I bet search engine would rank pretty low.

Plus I don't think you are going to get much of a boost in the search engines with this footer at the bottom of low ranking store checkout pages. And through artifically trying to manipulate the rankings, it seems to be creating some ill will among certain people. Which probably counteracts whatever benefit you may get from a higher ranking.

Hopefully for the Uberteam, working on the project is your passion. If it is your passion then in the end, through your hard work and dedication you will end up with a most awesome and Uber ecommerce system and the universe will contrive to reward you handsomely.

If you need proof, just look at Drupal.

Posts: 541
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

I had no problems to disable the footer, because it is on a theme_ function, so I easily disable it. Eye-wink

The real discussion is about the fact to give the possibility via option to disable the ubercart footer. I think yes because if we begin to add this kind of function, it become more a Creative Common license than a Real free license and this is not the way drupal goes and I think this is not the way ubercart should go in my opinion.

Posts: 10
Joined: 01/20/2008

For those who can read only what they think is written and not what is written, I repeat "if ubercart need this to create awareness, it means it's lame. If it's not lame, then awareness will happen."

Now, yes, we can hack the module or override the theme function, fine.
But it should also be implemented in the function, in the settings where we can choose which one of the 3 keyphrases we want to display, to be fair there should be an option to not display the footer.

Anyway, as for the rest, I was simply voicing an opinion about the ethical speech, nothing about ubercart itself or even this search engine strategy.

Posts: 27
Joined: 01/17/2008

The Iraq example isn't relevant -- it just blows the situation out of proportion. And for the record, I found UberCart by Googling "e-commerce cart" (or something among those lines Eye-wink). In fact, 80% of web traffic comes from web searches.

You can remove the code from the cart. No ones holding a gun to your head. In the time that has been spent ranting about this, one could have easily removed the footer message.

Anyways, I'd prefer the UB team to spend their time working on bugs and or better features rather than wasting time by adding some option to disable a footer that any one with half a brain could remove by editing a few lines of code.

$0.02

Posts: 304
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

alliax@drupal.org wrote:
What kind of mentality is this? This is clearly not a drupal mentality to add the footer link. In case you haven't noticed, Drupal is one of the few open source application which doesn't add a footer link.

Drupal 6 by default adds a footer link. It can easily be disabled...but it looks like the footer link clearly is the Drupal mentality. Not that it necessarily needs to dictate what Ubercart does anyhow, but it was interesting to see.

Posts: 10
Joined: 01/20/2008

I don't know about drupal 6, but whoever decided to add a default footer link to drupal now is dumb.
I've noticed that recently a footer has been added to drupal.org but that's another thing. But maybe it's linked somehow, I'll see what the footer of drupal 6 says when I'll install it.

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yeah, the footer about the trademark was necessary for legal reasons, counseled by the Drupal Associations legal adviser. You can read about it here.

Posts: 1314
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Ryan wrote:

Yeah, the footer about the trademark was necessary for legal reasons..

Interesting read, I hadn't seen that before. Thanks for posting it Smiling

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 1
Joined: 10/05/2007

Hello first I'd like to say that Ubercart rules and there is nothing better, at least from the newbie point of view. But removing the footer is a bit hard for a person like me who does not know a thing about code, I have no idea what hook functions are or even where in the uc_cart module the modification needs to be made. I've been here all day trying to figure it out and I kinda gave up...I've done it before but this time it seems like it's way more complicated than it should be.

--

Why make it rain when you can make it thunderstorm

Posts: 10
Joined: 01/20/2008

I've done it with one line of code, but it should be an option in the admin at the very least, but that is up to the mind of the ubercart owner.

Beta 2:
In ubercart\uc_store\uc_store.module in function uc_store_footer located at about line 500 :
at the end of the function, find the line:
return theme('uc_store_footer', $message);

and add this line before:
$message = "";

so that it now looks like:
$message = "";
return theme('uc_store_footer', $message);

This is certainly not a nice way to go about it, but it works fine and you only have to remember to change it again whenever you update your version of ubercart and for as long as the owner doesn't provide an easy admin option.

Or you could do it the theme way, I don't know how, but for this you need someone else to give you the code for it, in that case you wouldn't have to hack in the module directly, just in your template file.

Posts: 40
Joined: 10/10/2007

alliax@drupal.org wrote:

This is certainly not a nice way to go about it, but it works fine and you only have to remember to change it again whenever you update your version of ubercart and for as long as the owner doesn't provide an easy admin option.

Just make the change in your theme's CSS file: http://www.ubercart.org/comment/10869/Re-Re-coloring-removing-E-commerce...

Hacking the core is pointless, and a waste of time.

Posts: 23
Joined: 12/08/2007

There are 3 separate ubercart footer messages as standard. If you want to change the FREE part (which I didn't like for my customers commercial sites) just override it say ecommerce by ubercart powered by Drupal This is a standard footer message selection within ubercart and doesn't detract from the website in anyway.

This is done using Ubercart set-up and doesn't need any code hacking... so is simple until some alternate messages/functions are built into ubercart in later releases.

Look at the bottom of:
http://www.YOURSITE.com/admin/store/settings/store/edit/display

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

@finkpad: Good point on the "free" part being bad for business. I'm not sure I can imagine a site that actually would want to broadcast that about its e-commerce software when trying to instill customer confidence. Will review. Eye-wink

Posts: 1314
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

FWIW - I would absolutely not be opposed to having the footer say "E-commerce by Übercart - Powered by Drupal" - it sounds professional, and concise. Thought I'd throw in my .02...

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 40
Joined: 10/10/2007

Ryan wrote:
@finkpad: I'm not sure I can imagine a site that actually would want to broadcast that about its e-commerce software when trying to instill customer confidence. Will review. Eye-wink

That's what I said 7 days ago....
http://www.ubercart.org/comment/10708/Re-Powered-Ubercart

Posts: 130
Joined: 08/07/2007

Just an FYI,

It is bad for UBERCART to cloak the CSS. It is much better to remove the footer text than to have CSS that makes the link invisible. It could actually hurt ubercarts rankings. for more please google, "black hat SEO"

Posts: 1314
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

mimetic2 wrote:
Just an FYI,

It is bad for UBERCART to cloak the CSS. It is much better to remove the footer text than to have CSS that makes the link invisible. It could actually hurt ubercarts rankings. for more please google, "black hat SEO"

I replied to your other post here: http://www.ubercart.org/comment/11811/mimetic2-wrote. You're not 100% correct, yes black hat is bad, but the only real black hat using invisible / cloaked text are pages that usually have a ton of links on the bottom of the page. These are usually done on what they call gateway pages. Check out more info here: http://www.seoconsultants.com/articles/1007/doorway-gateway-pages.asp

Hiding the footer altogether is different from setting the font's color the same as the background color.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 130
Joined: 08/07/2007

Ya,

I actually didnt read the script, I just assumed that it was changing the font color.

again, i hide my head in shame Laughing out loud

Posts: 2
Joined: 02/06/2008

I'd appreciate an option to turn the link off but, meh, as web poeple it's not hard to get rid of it on our own. And, obviously, you kind people aren't requiring the link to stay.

Anyway, great modual, love drupal, love ubercart, thanks!

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Ryan wrote:
Will review.

I said I'd review the options a while back and was able to do it today. Basically, I've seen some corporate stores using the free option and we actually do get a fair amount of search traffic to Ubercart.org for people looking for "free shopping cart software." I hope that's not just someone spoofing us. Eye-wink

So, what I've done is left that in there but added in a few lightweight options (and switched it to radios so you can preview the choices). Feel free to keep it random, choose the smallest one, hide it or remove it to your heart's content. I probably won't review this again unless it's to improve something that's there.

Cheers!

Posts: 2
Joined: 02/06/2008

^that's great to hear! Sounds like a good comprimise and it's nice of you to reveiw this. You make uber-baby proud Sticking out tongue

Posts: 86
Joined: 02/06/2008

Ryan wrote:
Ryan wrote:
Will review.

So, what I've done is left that in there but added in a few lightweight options (and switched it to radios so you can preview the choices). Feel free to keep it random, choose the smallest one, hide it or remove it to your heart's content. I probably won't review this again unless it's to improve something that's there.

Cheers!

Is the options included in the latest version of ubercart ?

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

They'll appear in beta 5 which I'm shooting to put up on Friday. In the meantime, you can always grab the latest committed code here.

Posts: 86
Joined: 02/06/2008

Thanks - will there be an upgrade path to beta5 or will we just install over previous ?

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You'll just install over your previous version. Make sure you back-up your DB and files, as with any major module/Drupal update, and run update.php. We'll put that in the release notes when it goes up, hopefully tomorrow.

Posts: 21
Joined: 11/21/2007
Bug Finder

I just updated to Bazaar 837 and the radio button doesn't appear to be working. I check the "Powered by Ubercart" button, but the message at the bottom continues to say "Drupal e-commerce provided by Ubercart." I'm not one that minds the footer being there, just thought I'd mention it.
I know it worked at least a couple versions ago - I believe it was a drop down list.

--

Changing life as we know it, through the love, loyalty, and friendship of Jesus Christ.

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Thanks. It was just an indexing problem from a function I made to get rid of some duplicate code. Problem solved and committed for testing.

Posts: 86
Joined: 02/06/2008

Just to clarify - does the latest uber have admin option to switch off the footer ?I don't have a problem but I don't see it !

Posts: 86
Joined: 02/06/2008

anyone?

Posts: 151
Joined: 08/07/2007
AdministratorNot Kulvik

In the latest version of Ubercart (beta 5) You can choose from several options for the footer, but you can not disable it.

Posts: 183
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Disable it like this:

Put this in template.php:

/*Hide store footer*/
function phptemplate_uc_store_footer(){
return;
}

Thats all.

Kees

Posts: 28
Joined: 02/28/2008

I certainly don't have a problem with including ubercart in my footer, but i want it to be said and look in a way I feel works well with my site. Basically, what I would like to know is how can I THEME the footer. I prefer not touching the ubercart module files so that i dont have to remodify the files for every ubercart update...

Thank you.

Posts: 375
Joined: 10/16/2007

One way to find CSS code is to use Firebug and Web Developer for Firefox. Both are nice tools.

The footer text is in uc_store.css on my site. Look for store-footer. Add color: red; to change that text to red, etc. You more than likely will also have to change out the a tag for the link to your selected colors.

Agree with your statement about keeping the footer credits.

Good luck with the color modifications.

Jim

Posts: 3
Joined: 03/13/2008

My only beef about the link is that I have Ubercart installed on my live site as i play with it on my dev site. The live site, by the client's request, does not have a store.

Since I am trying to keep both sites the updated and work with UC in the admin (leaving the menu links unavailable on the live site), the footer is there and the client and visitors are a little confused.

Personally, I have found this project great, and would have no issue talking the client into leaving the link when we take it live; however it has made my dev process a little more difficult.

Just another point of view.

LKA

Posts: 195
Joined: 12/28/2007
Uber DonorBug Finder

At the moment there are the following options to have different footer link back to Ubercart project:

  • Randomly select a message from the list below:
  • Powered by Ubercart
  • Drupal e-commerce provided by Ubercart
  • Supported by Ubercart, an open source e-commerce suite
  • Powered by Ubercart, the free shopping cart software

What about an additional option to type in the color code of the link?

I personally very much like to keep an active & visible footer link back to Ubercart, but in real life there are clients and company policies that simply do not allow any outgoing links from their commercial sites. For some, it's even a show stopper if the link is required, and they'll build their shop with other alternatives.

To avoid that, I feel that kind of easy "coloring option" could be enough in some cases to keep all parties satisfied?

My 2 centimos from Sunny Spain

Posts: 2
Joined: 04/02/2008

As someone who develops Drupal code for a living 60+ hours a week and contributes to the Drupal community in many ways (speaking, code, teaching, local meet ups), I think this is total crap that you can't just add an option to turn it off. Honestly. I know you guys work hard on this. We all do. Why don't I put a link on every Drupal 6 installation that uses memcache that says "powered by slantview" since i wrote a patch that ended up in core that enables drop in memcache without core patches? Because that is not how things work. In FOSS we write code because we love it. Because we want to share what we made with others and have them contribute.

Ryan, I know you are a good guy. I met you in Boston, and we had an interesting conversation at the Hard Rock. I am not trying to be lame or a jerk or anything, but I just disagree with this strongly, and disagree with Andy's POV. Open Source is not about "If you don't like it, f*** you." I just think that is the wrong mentality to have. If everyone had that mentality, we'd all be using closed source software, and you wouldn't have Drupal to build Ubercart on.

What if you needed Drupal core to change something for Ubercart to continue working and Dries said, well, I disagree, "F--- you." Wouldn't be so great for the community now would it?

Keep up the good work guys, but come on, seriously? How hard is it to put in a simple radio to turn it off. Actually, that is not a question. It is easy as pie. Why make such a big deal about this. If you don't want to work with the community, then go closed source and don't use any of my code that I contribute to Drupal in your application unless you link to my site. I work really hard on my code and I want recognition. Think about it.

Lastly, if you have people hiding links by changing the color, you are really screwing your seo anyway. http://www.mattcutts.com/blog/hidden-links/ Just let them turn it off, and the seo will come.

Patch included.

-steve

AttachmentSize
no_footer.patch806 bytes
Posts: 2
Joined: 04/06/2008

I ran info a set of 5 options for the uebrcart advertisement footer and set it to something, and now I cant for the life of me find where the option was so I can hange it to something else.

Posts: 195
Joined: 12/28/2007
Uber DonorBug Finder

Maybe you want to try: yourdomain.com/admin/store/settings/store/edit/display

Posts: 141
Joined: 04/05/2008
Bug Finder

Hey guys,

I think you did good by adding the extra options.

"Powered by Ubercart, the free shopping cart software." is horrible but "Powered by UberCart" isnt that bad.

I would avoid the "free" word at all costs. "Open Source" has the same practical meaning and sounds much better, specially these days as open source software gains more and more awareness.

You see, after you setup a whole Drupal/Ubercart solution for your client, how can you charge him when it says "free" in the frontpage? Not everyone understands the work that goes behind these things.

As for giving back, i think its very important for us Ubercart users to be involved in the community.
For those who cant code, build some themes or contribute with translations.

Or donate some money.

Posts: 15
Joined: 04/03/2008

I have an actual footer that will be in our site when we go live that would look very odd with the standard footer for ubercart, but I fully understand the benefit that would be created by the linkage.

I created a custom block on the sidebar using a variation of this graphic, but it is a good alternative for those of us using a theme modification that makes the standard text link look out of place.

Feel free to use and share, give the team the credit they deserve.

I'd recommend including title text and alt text for your badge if you use it, hopefully someone from the team can give a recommendation of what they would like those to read. (You get better results when all of them are using the same text.)

AttachmentSize
Transparent PNG badge alternative to footer.6.8 KB
Posts: 57
Joined: 10/07/2007

Excellent attitude Paul, and yummy looking badge mate.

It is a good way for those who want to express their thanks to promote.
I gotta admit, the standard "Powered by" kills my layout (I have a footer div), so this is a nice addition.

Posts: 15
Joined: 04/03/2008

Glad it helps you out (BTW love the avatar, was wearing a shirt with that bugger on it as I posted the image Eye-wink what are the odds?!)

I used the "e-Commerce By" because the badge right below it is a similar badge that says "Powered By Drupal" with the blue grinning dj dude.

I place ubercart's above drupal, because drupal is the foundation that holds the "house" of ubercart up.

To the visitor, reading down the sidebar and hitting that section it reads:

e-Commerce By
Ubercart

Powered By
Drupal

While still keeping them separate and in their proper place in the layout. See below...

AttachmentSize
minibadges_in_use.png19.41 KB
Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I dig it. Cool Will bookmark this so I can list it in an Ubercart media page or something. Thanks for posting it up!

Posts: 2
Joined: 04/22/2008

Edit: Just saw someone provided similar code a few articles above - I didn't see it before I posted - I was using an alternate view of the forum, my apologies!

My concern with publishing the footer link is that it lets hackers quickly find ubercart powered sites when they discover a vulnerability. It is for that reason I am making this snippet public.

Add these 3 lines of code to your template.php file

function XXXX_uc_store_footer(){
    return null;
}

where XXXX is the name of your theme. If you were using the garland theme, the function would be called garland_uc_store_footer()

This solution means you don't have to hack core whenever you update ubercart.

Enjoy.

Michael

--

Is it just me, or is it like the ECOMMERCE site is in a foreign language? I know it's english, but that site just makes no sense!

Posts: 195
Joined: 12/28/2007
Uber DonorBug Finder

michaelphipps wrote:
...My concern with publishing the footer link is that it lets hackers quickly find ubercart powered sites when they discover a vulnerability. It is for that reason I am making this snippet public...

Good point Michael, and as far as I understand, just released RC4 of Ubercart was mainly a security update? Not publishing the footer link at all, is maybe the best call from the security point of view... but... does the image link make it easy for hackers to find vulnerable installations?

Posts: 2
Joined: 04/02/2008

michaelphipps wrote:

function XXXX_uc_store_footer(){
    return null;
}

where XXXX is the name of your theme. If you were using the garland theme, the function would be called garland_uc_store_footer()

Hi Michael, not to nitpick, but according to Drupal coding standards, you should always include a space before the curly brace in a function definition, and NULL, TRUE, and FALSE are always uppercased.

Thanks for sharing this though.

steve

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

michaelphipps wrote:
My concern with publishing the footer link is that it lets hackers quickly find ubercart powered sites when they discover a vulnerability.

Abilnet wrote:
... does the image link make it easy for hackers to find vulnerable installations?

This is a non-issue. There are literally thousands of signatures hackers could look for which uniquely identify a site as a Drupal and/or Ubercart site. This is true of *any* web application, and is unavoidable. Having one more, such as the subject of this thread, does not make a site any more or any less vulnerable.

--

<tr>.

Posts: 141
Joined: 04/05/2008
Bug Finder

michaelphipps wrote:
Edit: Just saw someone provided similar code a few articles above - I didn't see it before I posted - I was using an alternate view of the forum, my apologies!

My concern with publishing the footer link is that it lets hackers quickly find ubercart powered sites when they discover a vulnerability. It is for that reason I am making this snippet public.

Add these 3 lines of code to your template.php file

function XXXX_uc_store_footer(){
    return null;
}

where XXXX is the name of your theme. If you were using the garland theme, the function would be called garland_uc_store_footer()

This solution means you don't have to hack core whenever you update ubercart.

Enjoy.

Michael

This aint working. Anything changed on Ubercart code?

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

doomed@drupal.org wrote:
This aint working. Anything changed on Ubercart code?

Nothing has changed. To learn more about overriding a theme function read http://www.ubercart.org/faq/617

--

<tr>.