» Log in
User Name:

Password:

Not a member yet?
Register Now!
» 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
Texas electricity - save on electric rates
Rimonabant
www.rimonabant-weight-loss.com
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

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 ...



Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2002, 06:39 AM
Junior Member
 
Join Date: Nov 2002
Location: Netherlands
Posts: 12
Send a message via ICQ to Nemesco Send a message via MSN to Nemesco
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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 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.

Code:
    if ($index == 1)
right after it is a { then some stuff, then you will see.

Code:
	blocks(right);
right after blocks right is a closing }

You need to remove the
Code:
    if ($index == 1)
and the { right after it and } right after
Code:
	blocks(right);
Got it?

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-15-2002, 11:12 AM
Junior Member
 
Join Date: Nov 2002
Location: Netherlands
Posts: 12
Send a message via ICQ to Nemesco Send a message via MSN to Nemesco
Thnx, I'll try what I can do,.. I'll let you know when it's working.

thnx thnx thnx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-15-2002, 04:16 PM
Junior Member
 
Join Date: Nov 2002
Location: Netherlands
Posts: 12
Send a message via ICQ to Nemesco Send a message via MSN to Nemesco
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 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
Code:
blocks('right');
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-16-2002, 06:27 AM
Junior Member
 
Join Date: Nov 2002
Location: Netherlands
Posts: 12
Send a message via ICQ to Nemesco Send a message via MSN to Nemesco
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..... ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-16-2002, 07:52 AM
Junior Member
 
Join Date: Nov 2002
Location: Netherlands
Posts: 12
Send a message via ICQ to Nemesco Send a message via MSN to Nemesco
Got it al now, and I'm understanding it allso... ops: I'm new to php, so please forgive me.... ops:

Nemesco
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
blocks in right side don't appear? silver32 Theme packs 21 11-20-2007 02:06 PM
Can't get blocks at Right Side Greg-1912 Nuke 7.x - Blocks 2 11-13-2006 04:09 PM
No blocks on either side shahzad Nuke 7.x - Themes 1 03-15-2006 10:10 PM
How to display blocks side by side?? where can i get it?? SlashDot Nuke 7.x - Blocks 0 12-04-2004 11:59 AM
Not on every page right side blocks,.. Nemesco Purged Topics 1 11-15-2002 08:08 AM


All times are GMT -5. The time now is 05:23 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31