[solved]Site header question
Posted: Sun Sep 26, 2010 7:25 pm
I am migrating a site from phpWebsite to CMSMS. The original site is at http://sstsng.com/.
If you look at the site and refresh the page you will notice that the photo changes with each refresh. The new site is at http://sstsmg.com.sscms/ and I would like to be able to do the same thing with this site. However I am having trouble getting it to work. I am fairly good with html, php and css but have not worked much with smarty before. It seems that wherever I place the code it has no effect on the page. The code from the old site is
I would guess that it should go in the defaultTheme.php for the site in this section bui I have not been able to get it working so far.
Any suggestions?
If you look at the site and refresh the page you will notice that the photo changes with each refresh. The new site is at http://sstsmg.com.sscms/ and I would like to be able to do the same thing with this site. However I am having trouble getting it to work. I am fairly good with html, php and css but have not worked much with smarty before. It seems that wherever I place the code it has no effect on the page. The code from the old site is
Code: Select all
</__body>
<a href="."></a>
<table>
<tr><td><img src="{THEME_DIRECTORY}/images/poweredby.jpg" alt="SSTS logo" border="0" />
</td><td><img src="{THEME_DIRECTORY}/images/spacer_100px.jpg" alt="spacer" border="0" />
</td><td>
<img src="{THEME_DIRECTORY}images/header/rotator.php" align="middle" alt="Auto Images" />
</td><td><h2>The Sorry Safari Touring Society</h2><br /><h3> - A gathering of MG enthusiasts</h3></td></tr>
</table>
Code: Select all
{
echo '<div><p class="logocontainer"><img src="themes/default/images/logo.gif" alt="" /><span class="logotext">'.lang('adminpaneltitle').' - '. $this->cms->siteprefs['sitename'] .' '.lang('welcome_user').': '.$this->cms->variables['username'].'</span></p></div>';
echo "<div class=\"topmenucontainer\">\n\t<ul id=\"nav\">";
foreach ($this->menuItems as $key=>$menuItem) {
if ($menuItem['parent'] == -1) {
echo "\n\t\t";
$this->renderMenuSection($key, 0, -1);
}
}
Any suggestions?