Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 87
7 members and 80 guests
besxjtphmo3aq7e, haingrcolky3rao, ora6fngecounty5, pri6qntabledikg, pro7mfessional6, wha2tptisbest9l, zcchenenxiop
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > General > Site design

Reply
 
LinkBack Thread Tools Display Modes
Blocks on the right side ?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2002
Location: Netherlands
Blocks on the right side ? - 11-15-2002, 07:39 AM

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:
 Send a message via ICQ to Nemesco Send a message via MSN to Nemesco  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Blocks on the right side ?
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Re: Blocks on the right side ? - 11-15-2002, 09:30 AM

Quote:
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
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
11-15-2002, 12:07 PM

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
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2002
Location: Netherlands
11-15-2002, 12:12 PM

Thnx, I'll try what I can do,.. I'll let you know when it's working.

thnx thnx thnx
 Send a message via ICQ to Nemesco Send a message via MSN to Nemesco  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2002
Location: Netherlands
11-15-2002, 05:16 PM

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
 Send a message via ICQ to Nemesco Send a message via MSN to Nemesco  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
11-15-2002, 06:30 PM

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
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2002
Location: Netherlands
11-16-2002, 07:27 AM

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..... ;-)
 Send a message via ICQ to Nemesco Send a message via MSN to Nemesco  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
11-16-2002, 08:17 AM

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
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Nov 2002
Location: Netherlands
11-16-2002, 08:52 AM

Got it al now, and I'm understanding it allso... ops: I'm new to php, so please forgive me.... ops:

Nemesco
 Send a message via ICQ to Nemesco Send a message via MSN to Nemesco  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
11-16-2002, 10:48 AM

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 03:06 PM
Can't get blocks at Right Side Greg-1912 Nuke 7.x - Blocks 2 11-13-2006 05:09 PM
No blocks on either side shahzad Nuke 7.x - Themes 1 03-15-2006 11:10 PM
How to display blocks side by side?? where can i get it?? SlashDot Nuke 7.x - Blocks 0 12-04-2004 12:59 PM
Not on every page right side blocks,.. Nemesco Purged Topics 1 11-15-2002 09:08 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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