Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Banner Replacement Issue

Asked Modified Viewed 1,922 times
V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
asked
Senior Member

Ok I am trying to replace this piece of code

echo "<div id='banner_bg'>
<img src='".THEME."images/manutd/banner.jpg' alt='team banner' align='left' />\n";

With this

<?php
include THEME."bannerrotator/bannerrotator.php";
?>


OR

<?php
echo "<center>";
include THEME."bannerrotator/bannerrotator.php";
echo "</center>";
?>


How can I accomplish this.

Merged on Oct 27 2012 at 18:00:18:
I am using the Football theme. You will find it here. http://elink2biz.com/home.php

I am trying to replace the banner where the man and trophy is, with the banner Rotator.

Not going very well. The actual location of the banner code is on line 57. I just can't get it to work for some reason.

<?php
if (!defined("IN_FUSION")) {
    die("Access Denied");
}

// Downloaded from PHPFusionMods.com
// Check us out. ;)
// ---------------------------------

define("THEME_BULLET", "<img src='".THEME."images/manutd/menu_arrow.png' alt='' />");

require_once INCLUDES . "theme_functions_include.php";

set_image("up", THEME."images/up.gif");
set_image("down", THEME."images/down.gif");
set_image("left", THEME."images/left.gif");
set_image("right", THEME."images/right.gif");

set_image("newthread", THEME."forum/newthread.gif");
set_image("reply", THEME."forum/reply.gif");
set_image("forum_edit", THEME."forum/edit.gif");
set_image("quote", THEME."forum/quote.gif");
set_image("pm", THEME."forum/pm.gif");
set_image("web", THEME."forum/web.gif");
set_image("email", THEME."forum/email.gif");
set_image("profile", THEME."forum/profile.gif");

set_image("folder", THEME."forum/folder.gif");
set_image("folderhot", THEME."forum/folderhot.gif");
set_image("folderlock", THEME."forum/folderlock.gif");
set_image("foldernew", THEME."forum/foldernew.gif");
set_image("stickythread", THEME."forum/stickythread.gif");

function render_page($license = false)
{
global $settings, $main_style, $locale;
echo "\n<!-- GET THIS THEME AT PHPFUSIONMODS.COM -->\n\n";

echo "<div id='page_bg_black'>";
echo "<a name='up' id='up'></a>\n";
echo "<div id='main_bg' class='main_bg_center'>\n";
echo "<div id='middle_bg'>\n";
echo "<div id='logo_bg'>\n";
echo "<img src='".THEME."images/manutd/logo.png' alt='logo' align='left' /><a href='/joomla15/index.php' class='logo logo_times'>".$settings['sitename']."</a>\n";
echo "<div id='user4'>";
echo "<form action='".BASEDIR."search.php' method='get'>\n";
echo "<div class='search'>";
echo "<input type='text' class='inputbox' name='stext' />";
echo "</div></div></form>\n";
echo "<br clear='all' />\n";
echo "</div>\n";
echo "\n";
echo "<div id='user3'>\n";
echo "<div id='pillmenu'><ul id='mainlevel-nav'>".showsublinks()."</ul></div>\n";
echo "<br clear='all' />\n";
echo "</div>\n";
echo "<div id='banner_bg'><img src='".THEME."images/manutd/banner.jpg' alt='team banner' align='left' />\n";
echo "<div id='newsflash'>\n";
echo "\n";
echo "\n";
echo "<table class='contentpaneopen'>\n";
echo "<tr>\n";
echo "<td valign='top' colspan='2'>The site is currently under construction.<br /><br />Please check back later, thanks.<br /><br />
<a href='http://www.elink2biz.com/'>Elink2biz.Com</a> - Admin</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<br clear='all' />\n";
echo "</div>\n";
echo "<div id='maincolumn'>\n";
//echo "<div class='path'><span class='breadcrumbs pathway'>\n";
//echo "Home</span></div>\n";
echo "<div class='nopad'>";
echo "<table class='blog' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td valign='top'>\n";
echo "<div>\n";

echo U_CENTER.CONTENT.L_CENTER;


echo "</td>\n";
echo "</tr>\n";
echo "\n";
echo "</table>\n";
echo "</div>\n";
echo "</div>\n";

if (LEFT) {
   echo "<div id=\"leftcolumn\">";
   echo LEFT;
   echo "</div>";
}
if(RIGHT) {
   echo "<div id=\"rightcolumn\">";
   echo RIGHT;
   echo "</div>";
}
echo '<br clear="all" /></div>
               
         
        <p id="power_by" align="center">
            '.stripslashes($settings['footer']);
   if (!$license) { echo "<br /><br />\n".showcopyright()."<br />"; }
   echo '
            Designed by: <a href="http://www.themza.com" target="_blank" title="free web templates">ThemZa</a> Converted by <a href="http://www.phpfusionmods.com/" target="_blank" title="NetriX">NetriX</a>.&nbsp;Valid <a href="http://validator.w3.org/check/referer">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
        </p>
       
   </div>\n</div>';
}

function render_news($subject, $news, $info)
{
   global $_GET; $image = "";
   
   $image = $info['cat_image'];
   
opentable($subject);
echo $news."<hr />\n";
echo newsposter($info, " &middot;") . newsopts($info, "&middot;") . itemoptions("N",$info['news_id']);
closetable();
}

function render_article($subject, $article, $info)
{
opentable($subject);
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article);
echo "<hr />\n";
echo "<div style='text-align:center'>";
echo articleposter($info," &middot;").articlecat($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
echo "</div>\n";
closetable();
}

function render_comments($c_data, $c_info){
   global $locale;
   
   opentable($locale['c100']);
   if (!empty($c_data)){
      echo "<div class='comments floatfix'>\n";
         $c_makepagenav = '';
         if ($c_info['c_makepagenav'] !== false) {
         echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
      }
         foreach($c_data as $data) {
         echo "<div class='tbl2'>\n";
         if ($data['edit_dell'] !== false) {
            echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n";
         }
         echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
         echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
         echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
         echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
      }
      echo $c_makepagenav;
      if ($c_info['admin_link'] !== false) {
         echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
      }
      echo "</div>\n";
   } else {
      echo $locale['c101']."\n";
   }
   closetable();   
}

function opentable($title)
{
?>
<table width="550px"> 
<tr>
<td class="contentheading" width="100%"><?php echo $title; ?></td>
</tr>
<tr>
   <td width="100%"  valign="top" colspan="0">
<?php
}

function closetable()
{
?>
   </td>
</tr>
</table>
<?php
}

function openside($title, $collapse = false, $state = "on")
{
global $panel_collapse;
$panel_collapse = $collapse;
echo "<div class=\"moduletable\">
<h3>{$title}</h3>
<br /><div class='pc'>";
}

function closeside()
{
global $panel_collapse;
echo "</div></div>";
}
?>


Can someone please help me with this.

Merged on Oct 28 2012 at 10:09:55:
Look for most of you this is easy. For me it's not. If there was a theme out there I could use, I would and wouldn't go through all this trouble, but there is not. There are alot of themes, and alot of them have elements I want and like, so I have to try and piece things together. As of right now, I am not doing to great. Thus prolonging the actual launch of my site.

Merged on Oct 28 2012 at 11:13:37:
This is actually very close to what I am looking for. I did some photoshopping so you could get an idea. Simple, Clean, and using only Light gray, darker gray, and white.

sourcerealmmapping.com/infusions/image_hosting/thumbs/dd8b912467955f6c53d8ef5d6ff28287.jpg
Edited by Vyper69 on 28-10-2012 17:13,
0 replies

2 posts

P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Can you explain more - what do you need?
0 replies
V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
answered
Senior Member

I am looking for a clean feel to the theme like above. Straight lines no curves. I hate rounded edges, The big ggrey box under the add is a panel with columns with a division between the comluns. This is to place links in each field.

below that woud be multiple panels

the right panel needs to be wider than the center panel

at the top i want to use the banner rotator

Also need 2 different registraion links. 1 for business, and 1 for non-business.

basically what the image shows is how i would like it to be set up, the only colors used would be gray's and whites.

The add doesn't have to be there, I was just seeing how it looked.

I hope this helped.
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
V
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet