HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


(SOLVED)header is not displayed in all pages...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#60814 (In Topic #13220)
Avatar

Well-settled

hi, someone know the reason because my flash header is displayed just in some pages and not in all?
where i can take a look for this problem?
I have insert the flash in the header .tpl, and is displayed in the start page and some other, but not in all.
Thanks very much!!!!!!!!!!!


Last edit: by roypitt
Back to the top
 
Posted
Rating:
#60819
Avatar

Well-settled

some litle help please? thanks!!!!!
Back to the top
 
Posted
Rating:
#60824
Avatar

Please show us your header.tpl.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60827
Avatar

Well-settled

HI Chris thanks for replay.
here my header.tpl:

Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
Powered by {$BRAND_NAME*}
{VERSION_NUMBER*} version

{$BRAND_BASE_URL*}
-->

<html id="main_website_html" xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$LANG*}" lang="{$LANG*}" dir="{!dir}">
<head profile="http://www.w3.org/2003/g/data-view http://dublincore.org/documents/dcq-html/ http://gmpg.org/xfn/11 http://www.w3.org/2006/03/hcard">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset={CHARSET}" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />

<title>{+START,IF_NON_EMPTY,{HEADER_TEXT}}{HEADER_TEXT*} &ndash; {+END}{$SITE_NAME*}</title>
<meta name="description" content="{+START,IF,{$NEQ,{DESCRIPTION},{!NA}}}{DESCRIPTION*}{+END}" />
<meta name="keywords" content="{KEYWORDS*}" />
<meta name="copyright" content="{$COPYRIGHT`}" />
<meta name="author" content="{$SITE_NAME*}" />
<meta name="self_url" content="{SELF_URL*}" />
<meta name="base_url" content="{$BASE_URL*}" />
<link rel="schema.OCPCORE" href="http://ocportal.com/ocpcore.rdf" />{+START,IF_NON_EMPTY,{$META_DATA,rating}}<meta name="OCPCORE.Rating" content="{$META_DATA*,rating}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,numcomments}}<meta name="OCPCORE.NumComments" content="{$META_DATA*,numcomments}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,site_newestmember}}<meta name="OCPCORE.Site_NewestMember" content="{$META_DATA*,site_newestmember}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,site_nummembers}}<meta name="OCPCORE.Site_NumMembers" content="{$META_DATA*,site_nummembers}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,site_bestmember}}<meta name="OCPCORE.Site_BestMember" content="{$META_DATA*,site_bestmember}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,forum_numtopics}}<meta name="OCPCORE.Forum_NumTopics" content="{$META_DATA*,forum_numtopics}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,forum_numposts}}<meta name="OCPCORE.Forum_NumPosts" content="{$META_DATA*,forum_numposts}" />{+END}
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" /><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" /><meta name="DC.Language" content="{$LANG*}" />{+START,IF_NON_EMPTY,{$META_DATA,created}}<meta name="DCTERMS.Created" content="{$META_DATA*,created}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,publisher}}<meta name="DC.Publisher" content="{$META_DATA*,publisher}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,created}}<meta name="DC.Creator" content="{$META_DATA*,creator}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,modified}}<meta name="DCTERMS.Modified" content="{$META_DATA*,modified}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,type}}<meta name="DC.Type" content="{$META_DATA*,type}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,title}}<meta name="DC.Title" content="{$META_DATA*,title}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,identifier}}<meta name="DC.Identifier" content="{$FIND_SCRIPT*,pagelink_redirect}?id={$META_DATA*&,identifier}" />{+END}{+START,IF_NON_EMPTY,{$META_DATA,description}}<meta name="DC.Description" content="{$META_DATA*,description}" />{+END}

<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="GENERATOR" content="{$BRAND_NAME*}" />

{REFRESH}

{+START,IF,{$DEV_MODE}}<base href="http://example.com/" /><!-- Totally break relative URLs so we know if they're used - we shouldn't ever use them, as they reflect path assumptions -->{+END}

<link rel="icon" href="{$CUSTOM_BASE_URL*,0,1}/favicon.ico" type="image/x-icon" />
{+START,IF,{$HAS_SPECIFIC_PERMISSION,see_software_docs}}{+START,IF_NON_EMPTY,{$DOCUMENT_HELP}}<link rel="help" href="{$DOCUMENT_HELP*}" />{+END}{+END}
{+START,IF,{$EQ,{$ZONE},docs}}
<link rel="search" type="application/opensearchdescription+xml" title="{$SITE_NAME*} {$ZONE*}" href="{$FIND_SCRIPT*,opensearch}?filter=:id=comcode_pages:search_under=docs" />
{+START,IF_NON_EMPTY,{$META_DATA,opensearch_totalresults}}<meta name="totalResults" content="{$META_DATA*,opensearch_totalresults}" />{+END}
{+START,IF_NON_EMPTY,{$META_DATA,opensearch_startindex}}<meta name="startIndex" content="{$META_DATA*,opensearch_startindex}" />{+END}
{+START,IF_NON_EMPTY,{$META_DATA,opensearch_itemsperpage}}<meta name="itemsPerPage" content="{$META_DATA*,opensearch_itemsperpage}" />{+END}
{+END}

{$,Preload all the panels so that the CSS and JS is known for them. Technically not needed (pre-processing would get it) but this also increases the efficiency.}
{$SET,panel_top,{$LOAD_PANEL,top}}
{$SET,panel_bottom,{$LOAD_PANEL,bottom}}
{$SET,panel_left,{$SET,in_panel,_true}{$SET,interlock,_false}{$LOAD_PANEL,left}{$SET,interlock,_false}{$SET,in_panel,_false}}
{$SET,panel_right,{$SET,in_panel,_true}{$SET,interlock,_false}{$LOAD_PANEL,right}{$SET,interlock,_false}{$SET,in_panel,_false}}

<script type="text/javascript">// <![CDATA[
{+START,IF,{$AND,{$EQ,,{$_GET,keep_has_js}},{$NOT,{$JS_ON}}}}
if ((window.location.href.indexOf('upgrader.php')==-1) && (window.location.search.indexOf('keep_has_js')==-1)) {$,Redirect with JS on, and then hopefully we can remove keep_has_js after one click. This code only happens if JS is marked off, no infinite loops can happen.}
window.location=window.location.href+((window.location.search=='')?(((window.location.href.indexOf('.htm')==-1)&&(window.location.href.indexOf('.php')==-1))?(((window.location.href.substr(window.location.href.length-1)!='/')?'/':'')+'index.php?'):'?'):'&')+'keep_has_js=1{+START,IF,{$DEV_MODE}}&keep_devtest=1{+END}';
{+END}
{+START,IF,{$NOT,{$BROWSER_MATCHES,ie}}}{+START,IF,{$HAS_SPECIFIC_PERMISSION,sees_javascript_error_alerts}}window.take_errors=true;{+END}{+END}
var {+START,IF,{$CONFIG_OPTION,is_on_timezone_detection}}server_timestamp={$FROM_TIMESTAMP%},{+END}ocp_lang='{$LANG;}',ocp_theme='{$THEME;}';
//]]></script>
<script type="text/javascript" src="{$BASE_URL*}/stmenu.js"></script>

{$CSS_TEMPCODE}

{+START,IF_PASSED,EXTRA_HEAD}
{EXTRA_HEAD}
{+END}

{$JS_TEMPCODE,header}
</head>

{$,You can use body_inner to help you create fixed width designs; never put fixed-width stuff directory on ".re_body" or "body" because it will affects things like the preview or banner frames or popups}
<body class="re_body" id="main_website"><div id="body_inner">

{+START,IF,{SHOW_TOP}}
<div class="global_top"><div class="float_surrounder">

<a href="{$PAGE_LINK*,:}" rel="home"><img class="logo" src="{LOGOURL*}" title="{!FRONT_PAGE}" alt="{!FRONT_PAGE}" /></a>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="980" height="160">
<param name="movie" value="cabeceratop.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent"><param name="LOOP" value="true"><param name="PLAY" value="true">
<embed src="cabeceratop.swf"
width="980"
height="160" loop="true"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
pluginspage="http://www.macromedia.com/go/getflashplayer"
allowScriptAccess="always" play="true" />
</object>
<a accesskey="s" class="accessibility_hidden">{!SKIP_NAVIGATION}</a>

<div class="global_zones">
{+START,IF,{$CONFIG_OPTION,use_custom_zone_menu}}
{$BLOCK,block=side_stored_menu,param=zone_menu,type=zone}
{+END}
{+START,IF,{$NOT,{$CONFIG_OPTION,use_custom_zone_menu}}}
{$BLOCK,block=side_stored_menu,param=_zone_menu,type=zone}
{+END}
</div>
{+START,IF,{$AND,{$HAS_ACTUAL_PAGE_ACCESS,admin,adminzone},{$OR,{$EQ,{$ZONE},adminzone},{$EQ,{$ZONE},cms}}}}
<div class="adminzone_search">
<form action="{$URL_FOR_GET_FORM*,{$PAGE_LINK,adminzone:admin:search}}" method="get" class="inline">
{$HIDDENS_FOR_GET_FORM,{$PAGE_LINK,adminzone:admin:search}}

<div>
<label for="search_content">{!search:SEARCH_FOR}</label>:
<input type="text" id="search_content" name="search_content" value="{+START,IF,{$MATCH_KEY_MATCH,adminzone:admin:search}}{$_GET*,search_content}{+END}" /><input type="submit" value="{!search:SEARCH}" />
</div>
</form>
</div>
{+END}
{+START,IF,{$NOT,{$OR,{$EQ,{$ZONE},adminzone},{$AND,{$HAS_ZONE_ACCESS,adminzone},{$EQ,{$ZONE},cms}}}}}
{$SET,BANNER,{$BANNER}} {$,This is to avoid evaluating the banner parameter twice}
{+START,IF_NON_EMPTY,{$GET,BANNER}}
<div class="global_banner" style="text-align: {!en_right}">{$GET,BANNER}</div>
{+END}
{+END}
</div></div>
{+END}

{$,These are for displaying system errors you hopefully will never see, but they are not fatal to the software - for example, inability to send out an e-mail}
{+START,IF_PASSED,DEFERRED_ERRORS}
<div class="recoverable_errors">
{+START,BOX,{!DEFERRED_ERRORS},,light}
{+START,LOOP,DEFERRED_ERRORS}
<p>{_loop_var*}</p>
{+END}
{+END}
</div>
{+END}
Back to the top
 
Posted
Rating:
#60828
Avatar

cabeceratop.swf is a relative URL, you probably uploaded it to one particular zone folder and hence it only works from that zone folder.
Put {$BASE_URL}/ before it and make sure the file is in the welcome zone folder (base folder).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#60829
Avatar

Well-settled

ok Chris! that was the problem, now is ok!
thanks very much !!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: