Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
View Thread
Official Home of PHP-Fusion » General Addon and Modification Support » Themes Support
Who is here? 1 guest(s)
 Print Thread
Banners in theme
Jack Daniels
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...
 
http://linuxvefurinn.is
NetriX
Only tested on v7.01.05 so beware.

Edit your news.php file.

At or around line 117 it should look like.

Download source  Code
if ($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
www.php-fusion.us/images/smiley/usa.gifPHP-Fusion USA - Official NSS Support/Developmentwww.php-fusion.us/images/smiley/usa.gif

www.php-fusion.co.uk/infusions/addondb/img/approved_dev.png
 
http://www.php-fusion.us/
Jack Daniels
Did not work on my site. Just get errors.
 
http://linuxvefurinn.is
NetriX
Are you using v7.01.05? And what errors exactly?
www.php-fusion.us/images/smiley/usa.gifPHP-Fusion USA - Official NSS Support/Developmentwww.php-fusion.us/images/smiley/usa.gif

www.php-fusion.co.uk/infusions/addondb/img/approved_dev.png
 
http://www.php-fusion.us/
Jack Daniels
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.
 
http://linuxvefurinn.is
Jack Daniels
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; [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td align='center' class='full-header'>\n".showbanners()."</td>\n";[/syntaxhighlighter]
Think .showbanners() is the problem but cant fix it.
 
http://linuxvefurinn.is
Craig
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
Regards
 
http://www.phpfusionmods.co.uk/
Jack Daniels
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
 
http://linuxvefurinn.is
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Theme info Themes Support 4 18-04-2014 16:34
Infused Theme Official releases [Themes] 5 05-04-2014 12:59
Omni Responsive Theme Official releases [Themes] 6 04-04-2014 16:28
theme maestro + header html5 Themes Support 3 30-03-2014 20:28
Tattoo Theme Official releases [Themes] 8 28-03-2014 05:38
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel fromVenue