Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
broose
Regular
Regular


Joined: Feb 17, 2006
Posts: 94

PostPosted: Mon Apr 30, 2007 1:05 am Reply with quote

how can i remove the right hand side blocks in just the Forums.

cheers
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Mon Apr 30, 2007 2:40 am Reply with quote

Which of the standard Raven Nuke themes are you using?
 
View user's profile Send private message Send e-mail
broose
PostPosted: Mon Apr 30, 2007 2:47 am Reply with quote

im not using one that came with it, i am using fiblack3d

cheers
 
broose
PostPosted: Mon Apr 30, 2007 2:54 am Reply with quote

argh one thing, im not using 2.10 im using 2.0.2
 
Guardian2003
PostPosted: Mon Apr 30, 2007 3:05 am Reply with quote

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
PostPosted: Tue May 01, 2007 12:21 am Reply with quote

not sure what you mean by "wrap it like this"


cheers
 
broose
PostPosted: Tue May 01, 2007 12:28 am Reply with quote

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
PostPosted: Tue May 01, 2007 4:00 am Reply with quote

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
Regular


Joined: Feb 16, 2004
Posts: 69

PostPosted: Sun May 06, 2007 4:30 pm Reply with quote

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
Only registered users can see links on this board! Get registered or login!

Thanks!
 
View user's profile Send private message
Guardian2003
PostPosted: Sun May 06, 2007 4:43 pm Reply with quote

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
PostPosted: Sun May 06, 2007 5:04 pm Reply with quote

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

PostPosted: Sun May 06, 2007 5:17 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
dssripper
PostPosted: Sun May 06, 2007 5:24 pm Reply with quote

evaders...
Thanks for the info,
however, thats what I put and
I get a blank page.

Dss
 
mgy93
New Member
New Member


Joined: Jan 18, 2008
Posts: 20

PostPosted: Sat Jan 19, 2008 11:14 am Reply with quote

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);
}
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Jan 19, 2008 12:41 pm Reply with quote

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 
View user's profile Send private message
mgy93
PostPosted: Sat Jan 19, 2008 12:44 pm Reply with quote

ok but now i have no left blocks anywhere!
 
mgy93
PostPosted: Sat Jan 19, 2008 12:47 pm Reply with quote

nvm i edited it to work Smile 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
PostPosted: Sat Jan 19, 2008 1:12 pm Reply with quote

just making sure that if i put Index_File2 , it wouldnt create anyproblesms? it alllows me to put just left blocks. is that ok?

O AND I MADE A small thing on this at:
Only registered users can see links on this board! Get registered or login!

just incase anyone else wants it or if u want to put it on here.
 
Gremmie
PostPosted: Sun Jan 20, 2008 11:21 am Reply with quote

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
New Member


Joined: Oct 04, 2007
Posts: 22

PostPosted: Wed Feb 06, 2008 4:37 pm Reply with quote

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')
 
View user's profile Send private message
bahiti
New Member
New Member


Joined: Aug 05, 2006
Posts: 8
Location: Texas

PostPosted: Sat May 10, 2008 1:07 pm Reply with quote

mgy93 wrote:
just making sure that if i put Index_File2 , it wouldnt create anyproblesms? it alllows me to put just left blocks. is that ok?

O AND I MADE A small thing on this at:
Only registered users can see links on this board! Get registered or login!

just incase anyone else wants it or if u want to put it on here.


Ok . I just did this .. and now I have nothing but whitepages. Uploaded the orginial files .. still .. white pages .. suggestion here?
 
View user's profile Send private message Visit poster's website
bahiti
PostPosted: Sat May 10, 2008 8:25 pm Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©