Strange Portal Block problem

Post any general problems, information or issues on ModphpBB3 in here.
Post Reply
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Strange Portal Block problem

Post 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
User avatar
MadFly
Forum Member
Forum Member
Posts: 24
Joined: Wed Apr 08, 2009 10:46 pm

Re: Strange Portal Block problem

Post 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:
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Re: Strange Portal Block problem

Post 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.
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: Strange Portal Block problem

Post by LDM »

Hello Martin,

Can you paste the code into a post in code tags. Will have a look.
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Re: Strange Portal Block problem

Post 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
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: Strange Portal Block problem

Post 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?
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Re: Strange Portal Block problem

Post 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?
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: Strange Portal Block problem

Post 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.
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Re: Strange Portal Block problem

Post 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
Post Reply