|
Banners in theme
|
| Jack Daniels |
Posted on 26-03-2011 09:38
|

Member

Posts: 77
Joined: 13/10/2010
|
Hi, I use Fusionist theme and I was wandering if there is a posseble to change where the banners shows on the theme.
I use two colum system and wold like banner-1 to show under the head news above the two colums.
You can see my page at http://linuxvefur... |
| |
|
|
| NetriX |
Posted on 26-03-2011 10:23
|

Admin

Posts: 385
Joined: 22/09/2007
|
Only tested on v7.01.05 so beware.
Edit your news.php file.
At or around line 117 it should look like.
Codeif ($settings['news_style'] == "1") {
opentable($locale['global_077']);
echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
echo $news_[0];
echo "</td>\n</tr>\n<tr>\n";
global $settings;
if ($settings['sitebanner1']) {
eval("?><td style='width:100%;vertical-align:top;' colspan='3'><div style='text-align:center;'>".stripslashes($settings['sitebanner1'])."</div></td></tr>\n<?php ");
}
echo "<tr>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[1];
echo "</td>\n<td style='width:10px'><img src='".get_image("blank")."' alt='' width='10' height='1' /></td>\n<td style='width:50%;vertical-align:top;'>\n";
echo $news_[2];
echo "</td>\n</tr>\n</table>\n";
closetable();
}
Tested and working
Demo: http://demo.phpfu...
Edited by NetriX on 26-03-2011 23:02
|
| |
|
|
| Jack Daniels |
Posted on 26-03-2011 20:27
|

Member

Posts: 77
Joined: 13/10/2010
|
Did not work on my site. Just get errors. |
| |
|
|
| NetriX |
Posted on 26-03-2011 22:59
|

Admin

Posts: 385
Joined: 22/09/2007
|
Are you using v7.01.05? And what errors exactly?
|
| |
|
|
| Jack Daniels |
Posted on 27-03-2011 07:45
|

Member

Posts: 77
Joined: 13/10/2010
|
Yes I'm using v7.01.05 and the error was unexpecting } in file and when I took that out I just get more errors. |
| |
|
|
| Jack Daniels |
Posted on 02-04-2011 08:50
|

Member

Posts: 77
Joined: 13/10/2010
|
Got this working but now its a problem I can't find out cause when I set in banner the logo wipes out and the banner takes over in the header.
Have read and change the names and code and can't find out how I can get rid of it and hold the logo and banner on the site.
The script in the theme.php ( does not matter what theme) can be the problem, not sure about it.
Line; 50 in the Fusionist theme is; echo "<td align='center' class='full-header'>\n".showbanners()."</td>\n";
Think .showbanners() is the problem but cant fix it. |
| |
|
|
| Craig |
Posted on 02-04-2011 14:40
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Since your talking about Banners have you had a look at this new Banner Tutorial how to use the Built in Banner System.
It's worth a read...
http://www.php-fu...icle_id=41
|
| |
|
|
| Jack Daniels |
Posted on 02-04-2011 22:55
|

Member

Posts: 77
Joined: 13/10/2010
|
Look at that, thanks man.
Merged on Apr 24 2011 at 09:36:05:
Ok sorry but this is not working for me.
The problem is that when I set banner one in it appears on the topbanner where the logo of the page is and take it over and that is not what I had in mind.
How can I get rid of the banner in the head? In other case it Works fine in beatwean news 1 and 2.
Edited by Jack Daniels on 24-04-2011 08:36
|
| |
|