Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 7:12 am Reply with quote

Hi, When i add a custom_footer.php file its coming below the default footer. is there anyway i can make it top of the default RN footer. thanks.
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jun 19, 2010 7:52 am Reply with quote

Open footer.php and move lines 69-71
Code:


   if (file_exists('includes/custom_files/custom_footer.php')) {
      include_once('includes/custom_files/custom_footer.php');
   }

above line 68:
Code:


themefooter();

or to your desired location.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
zacklk
PostPosted: Sat Jun 19, 2010 8:03 am Reply with quote

thanks Palbin. but when i move it up its not coming 100% width. it's showing the size of center blocks. its there anyway to make it 100% width just like the footer.
 
Palbin
PostPosted: Sat Jun 19, 2010 8:33 am Reply with quote

First off what you want to do can not be done dynamically across more than one them. The custom_footer is intended to be used so that it shows on all themes, but since you want to be "in" the theme you can't use it.

The best bet you have is to open theme.php and edit the themefooter() function of your theme and add the necessary html.
 
zacklk
PostPosted: Sat Jun 19, 2010 9:17 am Reply with quote

is there anyway i can call a php file there? with "include" call?
 
zacklk
PostPosted: Sat Jun 19, 2010 9:36 am Reply with quote

is there anyway i can call a php file there? with "include" call?
 
Palbin
PostPosted: Sat Jun 19, 2010 9:48 am Reply with quote

Depending on how you theme is written y9ou should be able to include a php file anywhere within the themefooter function.
 
zacklk
PostPosted: Sat Jun 19, 2010 10:08 am Reply with quote

im using "fisubice" theme. just made it to fixed width and customized colors. nothing in the code has been change. i really appreciate if you can tell me how to call the php file. thanks you so much.
 
Palbin
PostPosted: Sat Jun 19, 2010 10:44 am Reply with quote

Ok I'm guessing to some point on where you want this exactly. I am assuming this is your custom footer file includes/custom_files/custom_footer.php. I would remain it to something else so we don't have to worry about changing the current custom_footer functionality. Maybe just call it custom_footer2.php or what ever.

Open themes/fisubice/theme.php and find lines 138-139:
Code:


    echo '</td></tr></table><table width="100%"><tr><td>&nbsp;</td></tr></table>';
    echo '<center>'."\n";

Insert the folloing line between the two.
Code:


    echo '</td></tr></table><table width="100%"><tr><td>&nbsp;</td></tr></table>';
    include 'includes/custom_files/custom_footer2.php';
    echo '<center>'."\n";
 
zacklk
PostPosted: Sat Jun 19, 2010 11:04 am Reply with quote

thanks palbin. you rock Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©