czdonate ? Image on block ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   czdonate ? Image on block ?
Silent22
CZ Newbie
 Codezwiz Site Donator
Silent22 has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Apr 30, 2006
0.00 posts per day
Posts: 1
Points: 596
   
Hi All icon_biggrin.gif
Just installed czdonate works a treat............thnx loads icon_biggrin.gif
I managed to change the text in the block.
But how would i put a image like a animated gif or flash in the block ?
Thnx again icon_biggrin.gif



Back to top Reply with quote
#2   re: czdonate ? Image on block ?
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Welcome to CZ Silent22 icon_smile.gif

To place an image in the block, open the: block-Donations.php in the blocks folder. (Backup the original first)
Find this code:
$content .= "<input type=\"image\" style=\"cursor:hand; border:0;\" src=\"$czdconf[dbutton]\" name=\"submit\" alt=\""._PPBUTTONALT."\">";

Change it to this if you want the image under the paypal image:
$content .= "<input type=\"image\" style=\"cursor:hand; border:0;\" src=\"$czdconf[dbutton]\" name=\"submit\" alt=\""._PPBUTTONALT."\"><br />";

Next add this right under that line of code:
$content .= "<input type=\"image\" style=\"border:0;\" src=\"images\YOURIMAGE.gif\">";
Substituting the name of the gif or jpg to what you have as the image, assuming that your image is placed in the images directory.


To insert a flash file place this code right below that same code as above (instead of the image code use this) :
    //start flash movie
    $content .= "<center><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"100\" height=\"60\">";
    $content .= "<param name=\"movie\" value=\"http://www.YOURSITE.com/DIRECTORYNAME/FLASHFILENAME.swf\">";
    $content .= "<param name=quality value=high>";
    $content .= "<embed src=\"http://www.YOURSITE.com/DIRECTORYNAME/FLASHFILENAME.swf\" quality=high";
    $content .= "pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"100\" height=\"60\"></embed></object></center>";
   //end flash movie
Make sure to edit the site, directory name, movie name and movie size appropriately in all the correct places in the above code.


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum