PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

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

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: 2403
Location: Pennsylvania

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

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.
View user's profile Send private message Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 8:03 am Reply with quote Back to top

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.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2403
Location: Pennsylvania

PostPosted: Sat Jun 19, 2010 8:33 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 9:17 am Reply with quote Back to top

is there anyway i can call a php file there? with "include" call?
View user's profile Send private message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 9:36 am Reply with quote Back to top

is there anyway i can call a php file there? with "include" call?
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2403
Location: Pennsylvania

PostPosted: Sat Jun 19, 2010 9:48 am Reply with quote Back to top

Depending on how you theme is written y9ou should be able to include a php file anywhere within the themefooter function.
View user's profile Send private message Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 10:08 am Reply with quote Back to top

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.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2403
Location: Pennsylvania

PostPosted: Sat Jun 19, 2010 10:44 am Reply with quote Back to top

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";
View user's profile Send private message Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Jun 19, 2010 11:04 am Reply with quote Back to top

thanks palbin. you rock Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum