Welcome Message in ...
 
Notifications
Clear all

Welcome Message in Header

3 Posts
2 Users
0 Reactions
1,627 Views
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

info in siggy
this is test site and skin is loooong way from being completed, cannibalised from a previous skin, so dont be alarmed at is mixed style, lol
http://www.math.net.au/test/efic/index.php?skin=PretenderCentre

I am trying a different layout and want to move my welcome message into the header area for one skin only and have it display on every page

moved the welcome div out of the index.tpl into the header.tpl

	<!-- START BLOCK : header -->
<body>
<div id="wrapper"></div>
<div id="container">
<!-- INCLUDESCRIPT BLOCK : ./myscript.php --><br />
<div id="banner"></div>
<div id="welcome">{welcome}</div><br />
<div id="menu">{menu_content}</div>

<div id="submenulist">
{menu2_content}
</div>

<div id="mainpage">
<!-- END BLOCK : header -->

and it wont show up. put it back in index.tpl and it shows up.  Added other blocks like categories and could get them to show up in the header after changing status from 2 to 1 so they were active for this skin only, and not just index page.

Welcome message won't show however and not sure what i am doing wrong or what setting, perhaps in variables needs tweaking. Tried adding

$blocks["welcome"]['tpl'] = 0;
$blocks["welcome"]["status"] = '1';

to the variables.php, imitating the settings for categories that got it working, but since the welcome inst really a block i didnt think that was going to work and it didnt. I aslo removed my script to see if that was somehow intefereing with it and it wasnt.

thanks
jacci


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 03/03/2008 8:27 pm
(@carissa)
Posts: 791
Member Moderator
 

Look at your source code; it's all messed up. For some reason, the body tag doesn't show up until after the header block. That's odd because it's not like that in your tpl, so I'm assuming you have an html error on one of your tpl files.


 
Posted : 03/03/2008 9:09 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Thanks Carissa,
just had a look on ie7, opera and firefox, and they all showing me this on source code

<link rel="stylesheet" type="text/css" href="'skins/PretenderCentre/style.css'></head> "  <br><body>
<div id="wrapper"></div>
<div id="container">
<p class="qt">You are pathetic!</p><p class="qt1">A Prison Story: Miss Parker</p><div id="banner"></div>

<div id="welcome"></div><br />
<div id="menu"><div id="menu"><ul><li id="menu_current"><a href=""index.php?PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Home" id="current">Home</a></li><li ><a href="" http://www.pretendercentre.com/forum/index.php" ;" title="Forum" target="_blank">Forum</a></li><li ><a href=""search.php?PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Search">Search</a></li><li ><a href=""browse.php?PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Browse">Browse</a></li><li ><a href=""viewpage.php?page=art&amp;PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Art">Art</a></li><li ><a href=""viewpage.php?page=credit&amp;PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Skin Credits">Skin Credits</a></li><li ><a href=""contact.php?PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Contact Us">Contact Us</a></li><li ><a href=""user.php?action=login&amp;PHPSESSID=ce7c0331d7eace504112ca147666e1dc"" title="Login">Login</a></li></ul></div></div>

<div id="submenulist">

and this is my header.tpl

	<!-- START BLOCK : header -->
<body>
<div id="wrapper"></div>
<div id="container">
<!-- INCLUDESCRIPT BLOCK : ./quotes.php --><br />
<div id="banner"></div>
<div id="welcome">{welcome}</div><br />
<div id="menu">{menu_content}</div>

<div id="submenulist">
{menu2_content}
</div>

<div id="mainpage">
<!-- END BLOCK : header -->

the body tag is showing up right after the </head>    and flowing properly as far as i can tell, although maybe i am looking at the wrong thing completely

the only thing that seems to be missing is the welocom content, although since that is a static message then it is a simple matter of handcoding it into that div, so it isnt a huge tragedy  (didnt think of doing that until just now)

thanks


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 03/03/2008 9:46 pm
Share: