Create your own snippets and share...

User 133269 Photo


Registered User
2,900 posts

NOTE - snippet code edited above for cross server compatibility - please try it again if it didnt go for you :/ :rolleyes:
Have fun
~ Fe Pixie ~
User 122279 Photo


Senior Advisor
14,615 posts
Online Now

FePixie had to make some corrections to her snippet. Here is the new and amended contact form as a snippet.
Attachments:
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 282670 Photo


Registered User
3,940 posts

oops! permission denied is what I get Inger.:)




User 38401 Photo


Senior Advisor
10,951 posts

same here Inger, can't get the snippet

I don't think it has anything to do with your snippet attachment though, I couldn't download a few others above either, I think the forums messed up. I sent email to Scott so hopefully someone will look at this and let us know what's up :)
User 103173 Photo


VP of Software Development
0 posts

Checking into this right now.
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 122279 Photo


Senior Advisor
14,615 posts
Online Now

Seems to be ok now anyway...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 133269 Photo


Registered User
2,900 posts

Generate random comments

<?php
// comments array
$com[1]="comment 1";
$com[2]="comment 2";
$com[3]="comment 3";
$com[4]="comment 4";
$com[5]="comment 5";
$com[6]="comment 6";
$com[7]="comment 7";
$com[8]="comment 8";
$com[9]="comment 9";
$com[10]="comment 10";

// pull 3 comments (change the 3 to the number of comments you want to display)
for ($a=0; $a<3; $a++) {
// pick a random number between 1 and 10 (change the 10 if you have more or less comments)
$pull = rand(1,10);
// get the one that matches the random number from the list
$comment = $com[$pull];
// display it
echo "$comment<br />";
}

?>


dont forget to save the page with a .php extension to make it go :)
Have fun
~ Fe Pixie ~

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.