Create your own snippets and share the love!

Page: 3

« Prev 1 2 3 Next »

Ambassador
284 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.


Ambassador
611 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"

VP of Product Development
11,540 posts
Online Now
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? ;) ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
Scott A. Swedorski
VP of Product Development

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>

Ambassador
611 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"

Ambassador
611 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!" "Time heals everything. Know who said that? My Latin teacher at barber college!"
- Floyd Lawson

Widoktadwat - "Plays Well With Others"

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. /MFserver
« Prev 1 2 3 Next »

Please Login to Reply

Download Our Software:

... and don't forget about our Free Software