Author |
Message |
broose
Regular


Joined: Feb 17, 2006
Posts: 94
|
Posted:
Mon Apr 30, 2007 1:05 am |
|
how can i remove the right hand side blocks in just the Forums.
cheers |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Apr 30, 2007 2:40 am |
|
Which of the standard Raven Nuke themes are you using? |
|
|
|
 |
broose

|
Posted:
Mon Apr 30, 2007 2:47 am |
|
im not using one that came with it, i am using fiblack3d
cheers |
|
|
|
 |
broose

|
Posted:
Mon Apr 30, 2007 2:54 am |
|
argh one thing, im not using 2.10 im using 2.0.2 |
|
|
|
 |
Guardian2003

|
Posted:
Mon Apr 30, 2007 3:05 am |
|
I am moving this post from RN Themes to 'Themes' as the fix is not dependant on whether you are using Raven Nuke or not.
You will need to modify the the function themefooter in yout themes theme.php file most likely.
Find the line blocks(right); and wrap it like this
Code:
if ($name=='Forums') {}
else {
blocks(left);
}
|
|
|
|
|
 |
broose

|
Posted:
Tue May 01, 2007 12:21 am |
|
not sure what you mean by "wrap it like this"
cheers |
|
|
|
 |
broose

|
Posted:
Tue May 01, 2007 12:28 am |
|
it looks like this but what should it look like after
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
$tmpl_file = "themes/fiblack3d/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right); |
|
|
|
 |
Guardian2003

|
Posted:
Tue May 01, 2007 4:00 am |
|
Code:
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
$tmpl_file = "themes/fiblack3d/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
if ($name=='Forums') { }
else {
blocks(right);
}
|
|
Last edited by Guardian2003 on Sun May 06, 2007 4:46 pm; edited 1 time in total |
|
|
 |
dssripper
Regular


Joined: Feb 16, 2004
Posts: 69
|
Posted:
Sun May 06, 2007 4:30 pm |
|
I need to remove my right blocks on my forum too.
I have posted my themefooter function
Any help would be appreciated!
I am using gametech theme
Tried to post my code..but sentinel didn't like it
link to my theme.php
http://www.bikers4christ.com/theme.txt
Thanks! |
|
|
|
 |
Guardian2003

|
Posted:
Sun May 06, 2007 4:43 pm |
|
The principle is exactly the same as I posted above. You need to locate the blocks(right); in the themefooter footer and wrap it as I have done in the previous post.
Are you OK with that or do you need me to actually modify it for you. |
|
|
|
 |
dssripper

|
Posted:
Sun May 06, 2007 5:04 pm |
|
Guardian2003 wrote: | The principle is exactly the same as I posted above. You need to locate the blocks(right); in the themefooter footer and wrap it as I have done in the previous post.
Are you OK with that or do you need me to actually modify it for you. |
Code:
."<td width=\"170\" valign=\"top\">\n";
if ($name=='Forums') { }
else {
blocks(right);
}
include("themes/GameTech/footer.php");
}
|
When I make those changes... i get a blank page |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun May 06, 2007 5:17 pm |
|
The relevant code is
Code:
blocks(right);
TO
if ($name=='Forums') { }
else {
blocks(right);
}
|
|
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
dssripper

|
Posted:
Sun May 06, 2007 5:24 pm |
|
evaders...
Thanks for the info,
however, thats what I put and
I get a blank page.
Dss |
|
|
|
 |
mgy93
New Member


Joined: Jan 18, 2008
Posts: 20
|
Posted:
Sat Jan 19, 2008 11:14 am |
|
hi. i tried doing this and it doesnt work! here is the code for my right blocks section in theme.php
//Right Blocks
echo "</td>"
."<td width=\"5\" valign=\"top\"><img src=\"themes/Exoid/themes/Acidtech/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>"
."<td width=\"180\" valign=\"top\">";
if ($name=='Forums') {}
else {
blocks(right);
} |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sat Jan 19, 2008 12:41 pm |
|
What is $name?
If you want right blocks only on your home page, try changing what you have to this:
Code:
if (defined('INDEX_FILE'))
{
echo "</td>"
."<td width=\"5\" valign=\"top\"><img src=\"themes/Exoid/themes/Acidtech/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>"
."<td width=\"180\" valign=\"top\">";
blocks(right);
}
|
(I'm assuming your are using RavenNuke or a patched Nuke.) |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
mgy93

|
Posted:
Sat Jan 19, 2008 12:44 pm |
|
ok but now i have no left blocks anywhere! |
|
|
|
 |
mgy93

|
Posted:
Sat Jan 19, 2008 12:47 pm |
|
nvm i edited it to work thanks for your help! but is there a way to keep the left blocks? here is the code for my left block section:
if (defined('INDEX_FILE'))
{
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">"
."<tr valign=\"top\">"
."<td width=\"28\" valign=\"top\" background=\"themes/Acidtech/images/leftborder.gif\"><img src=\"themes/Acidtech/images/leftborder.gif\" width=\"28\" height=\"1\" border=\"0\"></td>";
echo "<td width=\"180\" valign=\"top\">";
blocks('left');
} |
|
|
|
 |
mgy93

|
Posted:
Sat Jan 19, 2008 1:12 pm |
|
|
|
 |
Gremmie

|
Posted:
Sun Jan 20, 2008 11:21 am |
|
No what I gave you was for right blocks. The left blocks are handled elsewhere in your theme. I probably shouldn't have said anything without seeing all your theme code. |
|
|
|
 |
echopros
New Member


Joined: Oct 04, 2007
Posts: 22
|
Posted:
Wed Feb 06, 2008 4:37 pm |
|
change in theme.php :
if ($index=== 1))
to
(defined('INDEX_FILE'))
and if you want to show the block in an other module go to his index.php and remove this :
define('INDEX_FILE') |
|
|
|
 |
bahiti
New Member


Joined: Aug 05, 2006
Posts: 8
Location: Texas
|
Posted:
Sat May 10, 2008 1:07 pm |
|
Ok . I just did this .. and now I have nothing but whitepages. Uploaded the orginial files .. still .. white pages .. suggestion here? |
|
|
|
 |
bahiti

|
Posted:
Sat May 10, 2008 8:25 pm |
|
Nevermind .. after searching for hours on how to fix it .. got it back like it was other than my right hand blocks but that is an easy fix. |
|
|
|
 |
|