|
» Online Users: 53 |
| 0 members and 53 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
Tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
About this Page This is a discussion on How to get banners in header next to logo on right side. within the Site design forums, part of the General category; We have been playing with this problem of moving the banners from the top of the page to the right ... |
|
 |
|
 |
|
 |

01-18-2003, 08:58 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
How to get banners in header next to logo on right side.
We have been playing with this problem of moving the banners from the top of the page to the right side of the header next to the Logo.
chatserv over at http://nukecops.com has a method for doing this on Standard type themes. However, this method WILL NOT work on ANY of our themes since our themes use html files. I asked him to repeat the method for use with themes that use HTML like NukeNews, but that method won't work either.
Here are his write-ups on how to put the banners on the right side of the header if you DO use the types of themes he has made this hack for.
http://www.nukecops.com/modules.php?...=viewtopic&t=6
I did actually get one of our theme packs to put the banners in the right side of the header, but in order to make it work, I had to take the header.html file and convert it to a php file, then I moved the "if banners=" statement from the theme.php and placed it in my new header.php file. I then replaced the call for the header.html file in the theme.php to include the header.php instead of call the header.html. It works perfectly, but it is a lot of work. Also it definately is not something a novice could pull off easily, even with instructions.
I will be talking to coldblooded on this and seeing if we want to mayeb plan on releasing our themes from now on with this feature added to all our upcoming theme packs.
I for one don't use banners and could care less about this. But there has been quite a few inquiries about it from other users, so me being the community guy, I looked into it.
thanks for your time
mikem
|

02-12-2003, 07:46 PM
|
|
Junior Member
|
|
Join Date: Feb 2003
Posts: 2
|
|
Any progress on this yet? I am trying to do the same thing on my site. Also, I want to put the seach and topics in header bar.
I used to have (please note I am not a computer guy by trade, only by trial so this may be offencive for some to look at:
|
Code:
|
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $nukeurl, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
# |---------------------------------------------|
# | Main Header Secion Section |
# |---------------------------------------------|
echo "<body bgcolor=\"#ffffff\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\n";
# |---------------------------------|
# | Logo Banner Search |
# | Topic |
# | Forum Search |
# |---------------------------------|
echo "<table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" height=\"120\" border=\"0\" bgcolor=\"#6487dc\"><tr>\n"
."<td bgcolor=\"#ffffff\" align=\"left\" valign=\"center\" width=\"220\"><a href=\"index.php\"><img src=\"themes/subSilver/images/logo.gif\" align=\"left\" alt=\""
._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
."<form action=\"http://www.cashflowportal.com/modules.php?name=Search\" method=\"post\">\n";
if ($banners) {
echo "<td bgcolor=\"#ffffff\" align=\"center\" valign=\"center\" width=\"65%\">";
include("banners.php");
echo "</td>\n";
}
else {
echo "<td bgcolor=\"#ffffff\" align=\"center\" valign=\"top\" width=\"65%\"><a href=\"http://sourceforge.net\"><img src=\"http://sourceforge.net/sflogo.php?group_id=49122&type=7\" align=\"left\" alt=\"Sourceforge\" border=\"0\"></a></td>\n";
}
echo "<td bgcolor=\"#ffffff\" align=\"right\" valign=\"center\" width=\"220\" >\n"
."<font class=\"content\" color=\"#000000\">Search The Forum\n"
."
"
."
"
."<font class=\"content\" color=\"#000000\">".translate("Search")." \n"
."<input type=\"text\" name=\"query\" size=\"14\"></font></form>\n"
."<form action=\"search.php\" method=\"get\"><font class=\"content\">\n"
."".translate("Topics")." \n";
$toplist = mysql_query("select topicid, topictext from $prefix"._topics." order by topictext");
echo "<select name=\"topic\"onChange='submit()'>\n"
."<option value=\"\">".translate("All Topics")."</option>\n";
while(list($topicid, $topics) = mysql_fetch_row($toplist)) {
if ($topicid==$topic) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "</select></font></td></form>\n"
."</tr></table>\n" |
And it worked quite nicely. It took me over 6 hours to make it work in fact. Now that it's done, I want to do the same thing in the new phpib2.
Thanks for any suggestions or help.
Mark
|

02-12-2003, 08:10 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
In order to make it work in most of our theme packs. You would have to convert the header.html file to a header.php file
Then move the if banners statement to the new header.php file.
Then change the includes in the theme.php to instead of grabbing the old header.html, it uses header.php
Not an easy task...That is why we have not done it to our theme packs.
mikem
|

02-12-2003, 10:00 PM
|
|
Junior Member
|
|
Join Date: Feb 2003
Posts: 2
|
|
 So no future plans (say 1 month) to do this?
Also, I have the phpib2 theme and the radio buttons have an annoying :x box around them, any way to turn this off :?:
my site is www.cashflowportal.com you can see the survey on the right hand side.
:arrow: Finally, this is my first attempt at any sort of web programming.  Hard work. I would love some honest comments back from a pro :!:
This is about a total of 25 hours work... any suggestions?
|

02-12-2003, 10:13 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
If you "have" to have the banenr in the right side next to your logo. I'll convert the necessary files for you for a fee. I know Nuke is GNU, but this is a Customization and takes time to do. PM me for more information if you're interested.
As for the Borders around the selection boxes in your Survey.
Get this file and replace your themes/phpib2/styles/style.css file with it.
I'll update the theme pack with this file also.
Oh and I think your site looks great. Well organized, and of course it looks good sporting one of our theme packs
The only suggestion I have is for you to try and make New topic Icons so they are all the same...maybe a little more uniform...
mikem
|

03-10-2003, 01:21 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Canada
Posts: 15
|
|
ok, this is what I'm doing/done.
I'm using the template DarkBlue, and I've made the header.html with three columns so that I can have my logo on the left, my advert. in the middle, and donations/web hits on the right... now of course I'd probably use the fix suggested above, BUT I need to insert either <? virtual("/banner/ads.pl") ?>(.php) OR (.shtml) to my website because the banner modual just doesn't seem to want to work with those types of advert.
I've tried re-naming teh header to .shtml, to see if I could get it to work that way, but nothing, I tried editing theme.php to see if I could just insert raw html, but it didn't work, prob. because I didn't do it right, gonna try out that last bit again to see if I really did do it wrong in the 1st place
So, really what is it that I should do to fix my problem?
Buzzsaw
|

03-10-2003, 01:46 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Canada
Posts: 15
|
|
|
nm, looks like I solved my own problem, I just mainly changed the following
$tmpl_file = "themes/DarkBlue/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
into
include("themes/DarkBlue/header.html");
// $tmpl_file = "themes/DarkBlue/header.html";
// $thefile = implode("", file($tmpl_file));
// $thefile = addslashes($thefile);
// $thefile = "\$r_file=\"".$thefile."\";";
// eval($thefile);
// print $r_file;
I don't really know why they bothered to do this in the 1st place, I could see where it would need to be done in forums/comments/news posts to prevent users from making a mess out of the page, but this, is it really necessary?
|

03-10-2003, 01:57 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Location: Canada
Posts: 15
|
|
|
well... ok... now the header is a little broken, and so now I could see where the code is usefull...
$theuser and $public_msg are now showing up, what I'm guessing is that when the code was sifted through the information in the file that it also replaced those two lines to lets say "welcome Cyber-Freak!"...
which of course would have been handled much better if theme.php set that up at the start rather than having to get it sorted out first...
ok, so I'm starting to run out of ideas, and my last one had it so that I called header.php instead... it still didn't work :cry:
|

03-10-2003, 08:43 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: USA
Posts: 89
|
|
I did this in pure ghetto fashion  Rather than rewrite the code I just edited the banner to include my logo to the left. And then removed the logo out of the header. So my header just includes the links bar basically and it only 10 pixils high or whatever and the banner has now become what looks to be my sites header.
Doesn't look all that bad. And works for me until something better comes along 
|

03-10-2003, 11:38 AM
|
|
Moderator
|
|
Join Date: Jan 2003
Posts: 338
|
|
|
Would like to point out that my method does work with themes that have a header.html file, converting the header.html file into php and either inserting the code into the themeheader function or leaving it as a separate header.php file is pretty much the same thing, mikem just says it won't work because he`s jealous of how friendly my sheep are to me :P
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|