putting a gif in a 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   putting a gif in a block.
motozen
CZ Super Newbie
motozen has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Mar 04, 2004
0.00 posts per day
Posts: 31
Points: 1,554
   
ok... so i have little logo flash running now on my site, but its lagdeath for 56kers... whats the script that i need to insert in my block-xxxx to play my .gif instead of my logo in macromedia flash?
TIA




_________________
visit us at [ Register or login to view links on this board. ]
Back to top Reply with quote
#2   
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 39
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.19 posts per day
Posts: 1454
Points: 401,085
   
you need to use a normal HTML tag for an image and convert it to nuke. will see if i can come up with anything.




_________________
Back to top Reply with quote
#3   re: putting a gif in a block.
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 39
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.19 posts per day
Posts: 1454
Points: 401,085
   
try adding this instead of the flash:

<img border=\"0\" src=\"name.gif\" width=\"xxx\" height=\"xxx\">


change name and height to suit.


Back to top Reply with quote
#4   
motozen
CZ Super Newbie
motozen has been a member for over 20 year's 20 Year Member
Website:
Status: Offline
Joined: Mar 04, 2004
0.00 posts per day
Posts: 31
Points: 1,554
   
close but no cigar hehe.... this is what my original block flash looks like:

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [ Register or login to view links on this board. ] */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("block-motozen_flash.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<TABLE width=\"100%\" border=0 cellPadding=0 cellSpacing=0>
<TBODY><TR><TD align=left><center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"
WIDTH=\"150\" HEIGHT=\"100\" id=\"motozen_new\" ALIGN=\"\">
<PARAM NAME=movie VALUE=\"images/motozen_new.swf\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<param name=\"wmode\" value=\"transparent\">
<param name=\"menu\" value=\"false\">
<EMBED src=\"images/motozen_new.swf\" quality=high bgcolor=#FFFFFF
WIDTH=\"150\" HEIGHT=\"100\" wmode=\"transparent\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\">
</EMBED></OBJECT></center></TD></TR></TBODY></TABLE>"?>


this is what i did:

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [ Register or login to view links on this board. ] */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("block-motozen_flash.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
<img border=\"0\" src=\"moto.gif\" width=\"150\" height=\"100\">?>


getting this error when i paste hmm must be doing it wrong:

Parse error: parse error in /hsphere/local/home/deathici/motozen.net/blocks/block-motozen_flash.php on line 19


things that make ya go hmmmmmmmmmmmmm icon_rolleyes.gif icon_rolleyes.gif icon_rolleyes.gif
TIA OH MIGHTY ONES!!!




_________________
visit us at [ Register or login to view links on this board. ]
Back to top Reply with quote
#5   re: putting a gif in a block.
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Change this:

<?php

/********************************************* ***************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/***************************************************************** *******/

if (eregi("block-motozen_flash.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<TABLE width=\"100%\" border=0 cellPadding=0 cellSpacing=0>
<TBODY><TR><TD align=left><center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,0,0\"
WIDTH=\"150\" HEIGHT=\"100\" id=\"motozen_new\" ALIGN=\"\">
<PARAM NAME=movie VALUE=\"images/motozen_new.swf\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<param name=\"wmode\" value=\"transparent\">
<param name=\"menu\" value=\"false\">
<EMBED src=\"images/motozen_new.swf\" quality=high bgcolor=#FFFFFF
WIDTH=\"150\" HEIGHT=\"100\" wmode=\"transparent\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\">
</EMBED></OBJECT></center></TD></TR></ TBODY></TABLE>"?>


to this:

<?php

/********************************************* ***************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/***************************************************************** *******/

if (eregi("block-motozen_flash.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content .= "<TABLE width=\"100%\" border=0 cellPadding=0 cellSpacing=0>
<TBODY><TR><TD align=left><center><img border=\"0\" src=\"moto.gif\" width=\"150\" height=\"100\"></center></TD></TR></ TBODY></TABLE>"
?>


Make sure the path to the image is correct so that the page knows where to find the image on your server.

Kelly


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