Page 1 of 1

Strange Portal Block problem

Posted: Thu Apr 23, 2009 9:12 pm
by uk_martin
Hi

I wonder if anyone can help me please? I created a portal block, based on the "Clock" block, and it works -
http://www.brummiesfans.com/main//style ... _news.html

...except that it doesn't work in the bottom left hand corner of the Portal.
http://www.brummiesfans.com/main

Does anyone know why this should be?

Thanks

Martin

Re: Strange Portal Block problem

Posted: Fri Apr 24, 2009 10:20 pm
by MadFly
hmmm...

All i could think that might be the problem is that there is somewhere a code error on the main page. Happened to me before. (on the "test page" (for example) everything was working perfect, but then on the "live" page it just did not want to work.)

I would suggest that you go through the codes of both those pages and make sure that both are exactly the same...

Good luck :thumbsup:

Re: Strange Portal Block problem

Posted: Sat Apr 25, 2009 10:18 am
by uk_martin
There is no difference to the code. The "working" page is inserted into the Portal page via "<- insert -> tags, so it inherits the coding off the working page.

This puzzles me.

Re: Strange Portal Block problem

Posted: Sat Apr 25, 2009 11:48 am
by LDM
Hello Martin,

Can you paste the code into a post in code tags. Will have a look.

Re: Strange Portal Block problem

Posted: Sun Apr 26, 2009 6:02 pm
by uk_martin
Hi

Thanks for the offer of help. The Block code is:

Code: Select all

<!--version $Id: clock.html 302 2008-08-13 01:48:29Z icedcold $ //-->
<div class="portal-panel">
	<div class="inner">
		<span class="portal-corners-top"><span></span></span>
			<h3><img src="{T_THEME_PATH}/images/portal/rss.jpg" width="18px" height="18px" alt=""/>Live News</h3>
<table width="150">
<tr>
<td>
			<div style="text-align: center;">
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
 codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
 width="150" height="220" id="CoffeeCupNewsReader" align="middle">
<param name="movie" value="tickers/bbc_news.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffff00" />
<embed src="tickers/bbc_news.swf" quality="high" bgcolor="#ffff00" width="150" height="220"
 name="CoffeeCupNewsReader" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
 pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>	 
			</div>
</td>
</tr>
</table>
			<br />
		<span class="portal-corners-bottom"><span></span></span>
	</div>
</div>

<br style="clear:both" />
Basically it's the ".../block/clock.html" file with the "Object" code for the Ticker inserted into it in place of the code for the Clock Flash Object.

The Flash News Ticker was created in CoffeCup's RSS News Ticker creation software and the Object Code was generated in the CoffeeCup software as part of their publishing process.

Hope that this helps.

Thanks

Martin

Re: Strange Portal Block problem

Posted: Sun Apr 26, 2009 6:26 pm
by LDM

Code: Select all

<embed src="tickers/bbc_news.swf" quality="high" bgcolor="#ffff00" width="150" height="220"
I'm assuming you have a tickers folder in the root of the site?

Re: Strange Portal Block problem

Posted: Sun Apr 26, 2009 7:26 pm
by uk_martin
The Flash files are in ...styles/prosilver/template/portal/block/tickers/

The rss_news.html file refers to them correctly when called as stand-alone files. This then works, as can be seen in the example in the opening post.

Are you suggesting that when the rss_news.html file is "called" by portal_body.html, that paths revert back to the root of the site?

Re: Strange Portal Block problem

Posted: Sun Apr 26, 2009 7:29 pm
by LDM
Yep by the look of that, the flash ticker is calling from tickers/bbc_news.swf so it would be looking for a tickers directory in the root with bbc.swf in there.

Re: Strange Portal Block problem

Posted: Mon Apr 27, 2009 12:07 pm
by uk_martin
Thanks for the help

I've replaced the path to the SWF with the {path to theme} that is in the original attributes to the Clock SWF file and everything works now.

M