|
» Online Users: 76 |
| 0 members and 76 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 10: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
|
|
|
|
|
|
|
|
|
Poker Chips - Clay and composite poker chips for home games.
|
|
|
About this Page This is a discussion on Blocks on the right side ? within the Site design forums, part of the General category; Ok, when I change my startpage in PHP-Nuke from `News` in `Index` I do not get the right-side ... |
|
 |
|
 |
|
 |

11-15-2002, 06:39 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 12
|
|
|
Blocks on the right side ?
Ok, when I change my startpage in PHP-Nuke from `News` in `Index` I do not get the right-side blocks anymore.
How do I chanch the way blocks appear on the left and right side?
Please help me out,......
Nemesco (Netherlands)
Sorry for asking twice, it will not happen again... :roll:
|

11-15-2002, 08:30 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
Re: Blocks on the right side ?
|
Originally Posted by Nemesco
|
Ok, when I change my startpage in PHP-Nuke from `News` in `Index` I do not get the right-side blocks anymore.
How do I chanch the way blocks appear on the left and right side?
Please help me out,......
Nemesco
|
Look in theme.php
For something like this under the Function theme footer.
right after it is a { then some stuff, then you will see.
right after blocks right is a closing }
You need to remove the
and the { right after it and } right after
Got it?
mikem
|

11-15-2002, 11:07 AM
|
|
Senior Member
|
|
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
|
|
|
Thanks mikem, this looks interesting. I think it will probably cause problems with the sizing of some items that appear crammed in the center. I am thinking of giving it a try but I forsee possible consequences.
|

11-15-2002, 11:12 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 12
|
|
|
Thnx, I'll try what I can do,.. I'll let you know when it's working.
thnx thnx thnx
|

11-15-2002, 04:16 PM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 12
|
|
I tryed to work it out, but I think I need to see an example, I'll send a little pies of the script, maybey it's easyer to explain then.... I hope I'ts not to much asked. It's not the meaning that you do all the work, but I really like to learn and only need an example...
|
Quote:
|
function themefooter() {
global $time_start, $blockpos1, $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
//Global variable scope issue
$blockpos1 ="R";
$browser = getenv("HTTP_USER_AGENT");
echo "</TD>\n";
echo "<TD HEIGHT=\"100%\" background=\"themes/CyberNuke/images/mainnav_rm.gif\" WIDTH=26></TD>\n"
."</TR><TR>\n"
."<TD><IMG HEIGHT=19 SRC=\"themes/CyberNuke/images/mainnav_bl.gif\" WIDTH=22 alt=\"\"></TD>\n"
."<TD HEIGHT=19 background=\"themes/CyberNuke/images/mainnav_bot.gif.gif\" WIDTH=\"100%\"></TD>\n";
if (ereg("Gecko", "$browser")) {echo "<spacer type=\"block\" WIDTH=\"100%\" HEIGHT=\"19\">";}
echo "<TD><IMG HEIGHT=19 SRC=\"themes/CyberNuke/images/mainnav_br.gif\" WIDTH=26 alt=\"\"></TD>\n"
."</TR></tbody></TABLE>\n\n";
echo"<TD><IMG SRC=\"themes/CyberNuke/images/pix-t.gif\" WIDTH=\"4\" HEIGHT=\"4\" alt=\"\">\n"
."</TD>\n";
if ($index == 1) {
echo "<TD ALIGN=\"right\" WIDTH=\"200\">"
."";
// BLOCKS DISPLAY FOR RIGHT PANE
blocks('right');
} else {
echo "<TD ALIGN=\"right\" WIDTH=\"15\">"
."<IMG SRC=\"themes/CyberNuke/images/pix-t.gif\" WIDTH=\"15\" HEIGHT=\"1\" alt=\"\">
";
}
echo "</TD>\n</TR>\n</TABLE>\n\n";
// footer add-on
echo "
<div ALIGN=center>";
include ("themes/CyberNuke/marqueurs.php");
marqueur();
include("themes/CyberNuke/bottom_links.php");
if (ereg("MSIE", "$browser")) {
echo "
U gebruikt Microsoft Internet Explorer.
"
."Browser data : $browser"
."
<A HREF=\"#top\">Terug naar boven...</a>
\n";
}
if (ereg("Gecko", "$browser")) {
echo "
U gebruikt Netscape Navigator.
"
."Browser data : $browser";
}
echo "
<div ALIGN=\"center\">\n"
."\n"
."</div>\n";
footmsg();
echo "</div>";
// end of footer add-on (footer can be placed elsewhere if block cut)
|
I hope you can help me...
nemesco
|

11-15-2002, 05:30 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
Ok. Are you still wanting to have the right blocks show on EVERY page?
If Yes, the bit of script I posted is right there in that script you posted.
See
in your code?
that is what I am talking about.
Here is your code re-worked to shwo the riht blocks on every page.
Warning-Pasting code on Forums can sometiimes cause it to lose it's format.
|
Code:
|
function themefooter() {
global $time_start, $blockpos1, $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
//Global variable scope issue
$blockpos1 ="R";
$browser = getenv("HTTP_USER_AGENT");
echo "</TD>\n";
echo "<TD HEIGHT=\"100%\" background=\"themes/CyberNuke/images/mainnav_rm.gif\" WIDTH=26></TD>\n"
."</TR><TR>\n"
."<TD><IMG HEIGHT=19 SRC=\"themes/CyberNuke/images/mainnav_bl.gif\" WIDTH=22 alt=\"\"></TD>\n"
."<TD HEIGHT=19 background=\"themes/CyberNuke/images/mainnav_bot.gif.gif\" WIDTH=\"100%\"></TD>\n";
if (ereg("Gecko", "$browser")) {echo "<spacer type=\"block\" WIDTH=\"100%\" HEIGHT=\"19\">";}
echo "<TD><IMG HEIGHT=19 SRC=\"themes/CyberNuke/images/mainnav_br.gif\" WIDTH=26 alt=\"\"></TD>\n"
."</TR></tbody></TABLE>\n\n";
echo"<TD><IMG SRC=\"themes/CyberNuke/images/pix-t.gif\" WIDTH=\"4\" HEIGHT=\"4\" alt=\"\">\n"
."</TD>\n";
echo "<TD ALIGN=\"right\" WIDTH=\"200\">"
."";
// BLOCKS DISPLAY FOR RIGHT PANE
blocks('right');
echo "<TD ALIGN=\"right\" WIDTH=\"15\">"
."<IMG SRC=\"themes/CyberNuke/images/pix-t.gif\" WIDTH=\"15\" HEIGHT=\"1\" alt=\"\">
";
echo "</TD>\n</TR>\n</TABLE>\n\n";
// footer add-on
echo "
<div ALIGN=center>";
include ("themes/CyberNuke/marqueurs.php");
marqueur();
include("themes/CyberNuke/bottom_links.php");
if (ereg("MSIE", "$browser")) {
echo "
U gebruikt Microsoft Internet Explorer.
"
."Browser data : $browser"
."
<A HREF=\"#top\">Terug naar boven...</a>
\n";
}
if (ereg("Gecko", "$browser")) {
echo "
U gebruikt Netscape Navigator.
"
."Browser data : $browser";
}
echo "
<div ALIGN=\"center\">\n"
."\n"
."</div>\n";
footmsg();
echo "</div>";
// end of footer add-on (footer can be placed elsewhere if block cut) |
You can see the spaces where I removed code that prevents the right blocks from showing on every page OTHER than the index.
mikem
|

11-16-2002, 06:27 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 12
|
|
Its working. . . . . but I didn't got the clue. Mayby when I've read it more than once
I have some more themes, and I'd like to do things myself, but these themes look a little different than the one above.
Can you give me some more specific details, what I have to leave out of the script or have to change....
|
Code:
|
function themefooter()
{
global $index, $bgcolor1, $eXtreme_Colors;
if ($index == 1)
{
?>
</td>
<td valign="top" width="160">
<?
blocks(right);
}
?> |
The previous theme is working fine, even the forum..... ;-)
|

11-16-2002, 07:17 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
It's simple...Last time I'm explaining this one. My hands are tired from typing this AGAIN!
8O
Your Code:
|
Code:
|
function themefooter()
{
global $index, $bgcolor1, $eXtreme_Colors;
if ($index == 1)
{
?>
</td>
<td valign="top" width="160">
<?
blocks(right);
}
?> |
Fixed Code :
|
Code:
|
function themefooter()
{
global $index, $bgcolor1, $eXtreme_Colors;
?>
</td>
<td valign="top" width="160">
<?
blocks(right);
?> |
LOOK closely at what I removed. You have an IF statement. and then soem stuff tha is in between a { and a } if you remove the If statement, you do not need the { and } either around the variable that follows the IF statement..
mikem
|

11-16-2002, 07:52 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 12
|
|
Got it al now, and I'm understanding it allso...  ops: I'm new to php, so please forgive me....  ops:
Nemesco
|

11-16-2002, 09:48 AM
|
|
Senior Member
|
|
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
|
|
|
I just want to thank both mikem and Nemesco, for working this out! I have learned a lot by this and I did this simple 2 line code change ( it's 2 seperate lines with PHP Master Edit!), and I love it. I don't know why PHP-Nuke is not set up with this as an option anyway. It would be nice if someone could make an Admin mod to have a dialog to do this. :!:
I should have put this in requests, but I didn't know how it would be explained any better than it is put here. Thanks.
|
 |
|
| 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
|
|
|
|