Hey all My site www.cgheaven.net has this banner i created.
It uses a .jpeg format. I recently tried using a flash image in its place with the same filename. It wont show up. Can you guys please tell me what I have to change. If it may be the PHP code or what ever. What .php file should I look for and edit?
edited by: source_unknown, Jan 03, 2007 - 09:57 AM
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Banner editing
-
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
For including a flash video, you have to use a completely different HTML code. This can't be done with the standard banner module or an img HTML tag. Search the web for the right code.
So, either make an HTML block with the right code, or hardcode the movie in your theme templates.
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 08, 2007
- Posts: 18
Iv got my code but I dont know where to put it? I would like to use it in a block but wont that just go under my existing banner?
Code
<PARAM NAME=movie VALUE="movie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#666666>
<EMBED src="movie.swf" quality=high bgcolor=#666666 WIDTH=123 HEIGHT=321 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
edited by: source_unknown, Jan 03, 2007 - 01:26 PM -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
I am a bit confused by the term banner you use.
Is it a banner? Do you use it through the Banner module? Count the hits, let it show for a maximum amount of time, and so on? Or is it just a flash movie that you want to add to your theme and let it be shown continuously, without an actual link behind it?
In the latter case, you can edit your master.htm file (and the other templates like home.htm) and put in the code in the right place. Just look in the forums, where people ask to (for example) change the top image in the header for a standard theme. This is basically the same.
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 08, 2007
- Posts: 18
Im not using that banner module thing. I just want it to display a flash movie with NO link behind it. The image in my first post is the default image for the template. All I have doe is changed it in photoshop.
-so what I want to do is-
Remove the default template header image.....and replace it with a flash movie.
edited by: source_unknown, Jan 03, 2007 - 02:17 PM -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
Exactly, that's what I said. And using a search in this forum with keywords "master.htm theme header" I found the following links:
http://community.postnuke.com/module-Forum-viewtopic-topic-48158-start-0.htm#pid203184
http://community.postnuke.com/module-Forum-viewtopic-topic-48095-start-0.htm#pid202811
Make sure you also follow the instructions in
http://community.postnuke.com/module-Forum-viewtopic-topic-49209-start-0.htm#pid208413
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 08, 2007
- Posts: 18
I read some of those links. The only thing in the template linking to the image is in styles.css I tried changing it from directing from head.gif to head.swf because I have a flash move of exactly the same name. Anyway I remembered that I need the special HTML code for my flash movie to be displayed. I am confused because there is nothing relating to head.gif in the master.htm, template.htm or any other of the .htm's. Template .htm has a link to styles.css so where would I put the code that makes flash images visible in HTML script?
I tried
Code
td.head {
background-image: url(../images/head.swf);
}
td.blockbg {
background-image: url(../images/blockbg.gif);
}
td.footerbg {
background-image: url(../images/footerbg.gif);
}
td.block2bg {
background-image: url(../images/block2bg.gif);
} -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
This is CSS / HTML knowledge, and there are lot of forums out there that should help you with that. Dive into those forums, as this is out of the scope of this one.
For now, to get you started: Removefrom your stylesheet, so that td.head is just an empty class definition: nothing between { and }.Code
background-image: url(../images/head.swf);
Add your swf code in master.htm and home.htm where you can readand put head.swf in /themes/yourtheme/imagesCode
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 08, 2007
- Posts: 18
This is the only thing I found in home.html that is remotely close and it seems to be pointing to a tag.
Code
<td class="head" valign="middle" height="110">
<table border="0" cellpadding="5" cellspacing="0" width="98%">
<tr>
<td width="50%"></td>
<td width="50%"><!--[pnbannerdisplay]--></td>
</tr> -
- Rank: Softmore
- Registered: Jul 16, 2004
- Last visit: Oct 21, 2009
- Posts: 406
the tag class would most likely be in your .css
the pnbannerdisplay is the themes call to the banner module, thats where your banner goes but is that a banner or a logo? either way this seems like a them issue to me -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
I already gave the answer. You see the td class="head", so add your code below like I suggested.
Code
You could even delete the table below (containing pnbannerdisplay) because you don't use it.
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 08, 2007
- Posts: 18
Flash is working now, But I get the error saying "flash movie not loaded...."
Heres the code im using, Can you see anything wrong with it?
The code is from http://www.verticalmoon.com/tutorials/general/flashhtml/flashhtml.htm
Code
<td class="head" valign="middle" height="110">
<PARAM NAME=movie VALUE="www.cgheaven.net/themes/C-Sky-XTE/images/head.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="head.swf" quality=high WIDTH="770" HEIGHT="110"
NAME=bannerflash" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
<table border="0" cellpadding="5" cellspacing="0" width="98%">
<tr>
<td width="50%"></td>
<td width="50%"><!--[pnbannerdisplay]--></td>
</tr>
edited by: source_unknown, Jan 04, 2007 - 12:09 PM -
- Rank: Team Member
- Registered: Feb 27, 2005
- Last visit: Apr 12, 2010
- Posts: 665
Put the correct path in the VALUE parameter:
Code
<param name=movie value="<!--[$imagepath]-->/head.swf">
Put the correct path in the SRC parameter:
Code
<EMBED src="<!--[$imagepath]-->/head.swf" quality=high ... >
And delete the table below, you don't need it. For the rest (aligning, centering, width, height, and so on), you're on your own, this is HTML knowledge and (again) goes out of the scope of this forum.
edited by: Teb, Jan 04, 2007 - 03:14 PM
--
-- Teb
-- Dutch Zikula Community
Support questions in a Personal Message will be ignored. Use the forums at all times!
- Moderated by:
- Support
