Author |
Message |
zacklk
Regular


Joined: Mar 06, 2010
Posts: 79
|
Posted:
Sat Jun 19, 2010 7:12 am |
|
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. |
|
|
|
 |
Palbin
Site Admin

Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Jun 19, 2010 7:52 am |
|
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:
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. |
|
|
 |
zacklk

|
Posted:
Sat Jun 19, 2010 8:03 am |
|
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

|
Posted:
Sat Jun 19, 2010 8:33 am |
|
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

|
Posted:
Sat Jun 19, 2010 9:17 am |
|
is there anyway i can call a php file there? with "include" call? |
|
|
|
 |
zacklk

|
Posted:
Sat Jun 19, 2010 9:36 am |
|
is there anyway i can call a php file there? with "include" call? |
|
|
|
 |
Palbin

|
Posted:
Sat Jun 19, 2010 9:48 am |
|
Depending on how you theme is written y9ou should be able to include a php file anywhere within the themefooter function. |
|
|
|
 |
zacklk

|
Posted:
Sat Jun 19, 2010 10:08 am |
|
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

|
Posted:
Sat Jun 19, 2010 10:44 am |
|
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> </td></tr></table>';
echo '<center>'."\n";
|
Insert the folloing line between the two.
Code:
echo '</td></tr></table><table width="100%"><tr><td> </td></tr></table>';
include 'includes/custom_files/custom_footer2.php';
echo '<center>'."\n";
|
|
|
|
|
 |
zacklk

|
Posted:
Sat Jun 19, 2010 11:04 am |
|
thanks palbin. you rock  |
|
|
|
 |
|