Create your own snippets and share...

User 3004957 Photo


Registered User
855 posts

One more snippet for anyone who wants it.

Description: Those who use the CoffeeCup Form Builder (and everyone should) are advised to send people to a custom 'thank you' page when the form filler has hit the 'Send' button. This serves many purposes, the first of which is to thank them immediately for their message (even though you may be sending an email as well) and also gives them a visual indication the message has been sent and you are on the case. This snippet is a quick and dirty 'Thank You' message body, ready to insert into your empty page.

Have fun!

Dave.

Attachments:
User 148353 Photo


Ambassador
808 posts

Scott Swedorski wrote:


The person who makes the most useful code snippet will receive three complimentary copies of any CoffeeCup product — software, themes, modules, graphics, whatever! You'll also receive two official CoffeeCup Swiss Army knives and a flag from our soon-to-be launched swag store. How cool is that? :)


Has there been a winner yet?
"Time heals everything. Know who said that? My Latin teacher at barber college!"
- Floyd Lawson

Widoktadwat - "Plays Well With Others"

User 103173 Photo


VP of Software Development
0 posts

Not yet. Still hoping to get just a few more submitted before we make our final decision.

Anyone else think they got what it takes? ;)
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 13028 Photo


Registered User
7 posts

I had a need to create links that acted like minimalistic buttons across a background image of a navigation bar. here is a snippet that creates a link without underlining that changes color when moused over.

<style>
<!--
a {text-decoration: none; color:#0000FF;}
a:hover {text-decoration:none;color:#FF0000;}
// -->
</style>

<a href="http://coffeecup.com" target="_blank" onMouseOver="window.status='';

return true" onMouseOut="window.status=' '">Test Link</a>
User 148353 Photo


Ambassador
808 posts

Auto update your copyright. Add this to your footer and it will automatically update your copyright information to the current year. Get it now before the year ends!

It won't let me attach the .snp file.


<SCRIPT LANGUAGE="JavaScript">
<!--

today=new Date();
y0=today.getFullYear();

// end hiding --->
</SCRIPT>

<center>Copyright &copy; 2007-<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</SCRIPT> <a href="http://www.yourdomain.com">Your Domain</a></center>
"Time heals everything. Know who said that? My Latin teacher at barber college!"
- Floyd Lawson

Widoktadwat - "Plays Well With Others"

User 148353 Photo


Ambassador
808 posts

Auto update your copyright. Add this to your footer and it will automatically update your copyright information to the current year. Get it now before the year ends!"
Attachments:
"Time heals everything. Know who said that? My Latin teacher at barber college!"
- Floyd Lawson

Widoktadwat - "Plays Well With Others"

User 1893163 Photo


Trial User
6 posts

When I use PHP files, I get a parsing error for the XML declaration. This is easilly fixed, but since I use it a lot I found this little snippet useful. Just place it FIRST in your PHP document and you will get an XML declaration in the document.
Attachments:
User 148353 Photo


Ambassador
808 posts

has there been a winner yet?
"Time heals everything. Know who said that? My Latin teacher at barber college!"
- Floyd Lawson

Widoktadwat - "Plays Well With Others"

User 103173 Photo


VP of Software Development
0 posts

I do have 2 people selected. Just waiting for our swag shop to go live so I can send the cool stuff ;) Once I do that, I will post here.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 3004957 Photo


Registered User
855 posts

Did this ever happen? Who got the swag?

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.