Author Topic: Stamp Images  (Read 10430 times)

0 Members and 1 Guest are viewing this topic.

Offline Madox

  • Pre-Newbie
  • Posts: 9
    • View Profile
Stamp Images
« on: December 10, 2002, 04:03:46 AM »
Anyone got different stamp images I can use for the e-cards feature?

Offline AndreasP

  • Newbie
  • *
  • Posts: 12
    • View Profile
create it yourself
« Reply #1 on: December 12, 2002, 06:53:07 PM »
Hi Madox,
Just create it yourself, using parts of your websitedesign / logo / etc.
That's what I've done  :wink:
regards,
AndreasP

Offline Madox

  • Pre-Newbie
  • Posts: 9
    • View Profile
Stamp Images
« Reply #2 on: December 14, 2002, 01:52:22 AM »
Already have :)

Was going to get a whole set of stamps and have rotating/random stamp images for the e-cards.

Right now I'm using a christmas theme one because Xmas is coming up.

Thanks!

that Dude

  • Guest
Re: Stamp Images
« Reply #3 on: March 18, 2005, 06:20:03 AM »
How do you set it up so you get rotating/random stamp?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Stamp Images
« Reply #4 on: November 27, 2007, 04:29:09 PM »
Yes, how can I do this on my gallery too with rotating stamp images??

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Stamp Images
« Reply #5 on: November 27, 2007, 09:19:17 PM »
Hi,

rotating stamps  8O
The gallery have a lot of rotatings, but rotating stamps...
Googlesearch : rotating images


Kurt

manurom

  • Guest
Re: Stamp Images
« Reply #6 on: November 28, 2007, 10:18:43 PM »
Hello;
so you need to have a random stamp when sending an e-card?

Let's say you've got a few tamps called stamp_01.gif to stamp_05.gif, in your folder templates/your_template/images. For instance, these ones:



So let us put that code in the file templates/your_template/header.html, before the closing tag </head>:

Code: [Select]
<script language="JavaScript" type="text/javascript">

var theImages = new Array()

theImages[0] = 'templates/your_template/images/stamp_01.gif'

theImages[1] = 'templates/your_template/images/stamp_02.gif'

theImages[2] = 'templates/your_template/images/stamp_03.gif'

theImages[3] = 'templates/your_template/images/stamp_04.gif'

theImages[4] = 'templates/your_template/images/stamp_05.gif'

var j = 0

var p = theImages.length;

var preBuffer = new Array()

for (i = 0; i > p; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = theImages[i]

}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){

document.write('<img src="'+theImages[whichImage]+'" alt="stamp">');

}

</script>


Now, edit your file templates/your_template/postcard_send.html and change:
Code: [Select]
<img src="{template_url}/images/stamp.gif" border="0" />
to:
Code: [Select]
<script language="JavaScript" type="text/javascript">showImage()</script>
Please change in any code "your_template" for your template name.

Note I've not yet tested it, and don't really know how it works. Maybe same changes have to be done in templates/your_template/postcard_preview.html.

Please find in attachment the five stamps.

Hope it could help a little.
« Last Edit: November 28, 2007, 10:42:38 PM by manurom »