Author |
Message |
triksta
New Member


Joined: Aug 05, 2007
Posts: 19
|
Posted:
Wed Aug 29, 2007 10:31 pm |
|
I've looked in the index.php file of the main install and the footer.html as well as the theme.php in the themes folder to make sure everything matches up as far as $Foot1, $foot2, etc etc. It all does, but why when I go to the preferences in the Admin panel, and insert text into any of the footer boxes, none of them show on the theme? Have any suggestions?
To see this live and in action, go to http://www.cg.j-dachsminis.com
It is actually on a subdomain until I get it up and running. This issue also follows any theme I put up except Fisubice. Also, on the current theme, can you tell me where to look to remove the html coding above the header on the page?
Any and all help would be greatly appreciated. I am running RN v2.10.01.
Trikky |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Thu Aug 30, 2007 11:17 am |
|
This is from memory, but I think footer.php checks to see if there is a themefooter function. If so, it calls it. Otherwise it outputs a default footer for you, and I think in most Nukes it references those footer messages. Check to see if your theme has a themefooter() function. If so, it may not be echoing out those footer lines. |
_________________ 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 |
|
|
 |
triksta

|
Posted:
Thu Aug 30, 2007 10:57 pm |
|
Here is the code for the footer section of my theme.php. Im not quite sure exactly what I am looking at or for. Maybe you can see somethin that would cause this not to work..?
Code:/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
$index = defined('INDEX_FILE') ? 1 : 0;
if ($index == 1) {
$tmpl_file = "themes/Labs/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright<br>$totaltime";
$tmpl_file = "themes/Labs/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
|
|
|
|
|
 |
triksta

|
Posted:
Thu Aug 30, 2007 11:00 pm |
|
Also, note that I did change the theme back to the Labs theme to show the html coding up above the header. Any insight on where that crap is located so I can remove it would be great as well, lol thanks.
p.s. when I right click the text, and go to properties to see if its part of the header, it is not, it says the location is index.php so I know its not in the header.php file, or so I think. lol me=pathetic.
Trikky |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Aug 31, 2007 6:03 am |
|
I am thinking that we need to see this file too:
$tmpl_file = "themes/Labs/footer.html";
Because we can see that the $foot1,2,3 variables are being declared global, which is what I was concerned about.
Don't know what you mean by "show the html coding up above the header", but, just to let you know that your home page will load index.php and then everything else is included from that other the other included sciprts, therefore, as far as the browser is concerned the page is "index.php" (or when you are in a module, it is modules.php).
Since what you are concerned with seems to change with the theme, than it has to be a file within there. Some files to check would be theme.php in the themeheader() function or maybe a separate header.html file. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Gremmie

|
Posted:
Fri Aug 31, 2007 7:21 am |
|
Yes, as montego said, let's have a look at the footer.html file. The theme is preparing a $footer_message variable using those $foot1, etc. variables. If that isn't in the footer.html file you won't see it. |
|
|
|
 |
triksta

|
Posted:
Fri Aug 31, 2007 12:37 pm |
|
ok well it wont let me submit the header.html file either.. Says Im trying to attempt a scripting attack. Any ideas on how I can get this up? |
|
|
|
 |
Gremmie

|
Posted:
Fri Aug 31, 2007 3:07 pm |
|
Put it in a text file on your server and provide us a link to it here. |
|
|
|
 |
triksta

|
Posted:
Fri Aug 31, 2007 9:52 pm |
|
Ok here is the link to the text file containing the entire footer.html
Only registered users can see links on this board! Get registered or login!
Now here is the html code that as of right now I managed to disable but I think it has something to do with the Status Bar and showing a message but I cant see it because my browser determines that index.php has errors and the page might not be displayed properly.
Here is a link to that text file regarding the html above the header:
Only registered users can see links on this board! Get registered or login!
Now would you like the error messages that come from the browser or is that somethin that is already a known issue?
Thanks for all the help,
Trikky |
|
|
|
 |
triksta

|
Posted:
Fri Aug 31, 2007 9:54 pm |
|
Now that I verified the links do work, I noticed that the actual text isn't there, only what the html code generates. How do you suppose we get around this.. lol seems like an awful lot of work to get some code up to be looked at.. |
|
|
|
 |
Gremmie

|
Posted:
Fri Aug 31, 2007 10:10 pm |
|
Your theme's footer isn't using the $footer_message, so you don't get to see those texts from preferences.
The html code above your header probably indicates a theme problem. If you got the theme from somewhere see if you can get some support for it. Otherwise you could try to fix it or just ditch it. |
|
|
|
 |
triksta

|
Posted:
Sat Sep 01, 2007 1:26 am |
|
|
|
 |
montego

|
Posted:
Sat Sep 01, 2007 7:01 am |
|
Yes, add $footer_message in footer.html where you want it to show up. Just try it and see what it does. Take a copy of your footer.html first in case you want to quickly replace it.
We learn by doing...  |
|
|
|
 |
triksta

|
Posted:
Sat Sep 01, 2007 9:48 am |
|
Do I add it into the footer.html or theme.php? |
|
|
|
 |
montego

|
Posted:
Sun Sep 02, 2007 8:44 am |
|
|
|
 |
unwired
Regular


Joined: Sep 10, 2007
Posts: 53
|
Posted:
Mon Sep 10, 2007 8:29 pm |
|
Offtopic:
What version of phpnuke are you using or this is ravennuke? |
|
|
|
 |
triksta

|
Posted:
Tue Sep 11, 2007 12:33 am |
|
Im running RavenNuke 2.10.01 as stated in the forum title  |
|
|
|
 |
|