Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
triksta
New Member
New Member



Joined: Aug 05, 2007
Posts: 19

PostPosted: Wed Aug 29, 2007 10:31 pm Reply with quote

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

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



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

PostPosted: Thu Aug 30, 2007 11:17 am Reply with quote

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.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
triksta







PostPosted: Thu Aug 30, 2007 10:57 pm Reply with quote

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







PostPosted: Thu Aug 30, 2007 11:00 pm Reply with quote

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

PostPosted: Fri Aug 31, 2007 6:03 am Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Fri Aug 31, 2007 7:21 am Reply with quote

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







PostPosted: Fri Aug 31, 2007 12:37 pm Reply with quote

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







PostPosted: Fri Aug 31, 2007 3:07 pm Reply with quote

Put it in a text file on your server and provide us a link to it here.
 
triksta







PostPosted: Fri Aug 31, 2007 9:52 pm Reply with quote

Ok here is the link to the text file containing the entire footer.html

http://www.cg.j-dachsminis.com/footerfile.txt

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:

http://www.cg.j-dachsminis.com/unknownhtml.txt

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







PostPosted: Fri Aug 31, 2007 9:54 pm Reply with quote

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







PostPosted: Fri Aug 31, 2007 10:10 pm Reply with quote

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







PostPosted: Sat Sep 01, 2007 1:26 am Reply with quote

Ok got a fix?
 
montego







PostPosted: Sat Sep 01, 2007 7:01 am Reply with quote

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... Wink
 
triksta







PostPosted: Sat Sep 01, 2007 9:48 am Reply with quote

Do I add it into the footer.html or theme.php?
 
montego







PostPosted: Sun Sep 02, 2007 8:44 am Reply with quote

footer.html
 
unwired
Regular
Regular



Joined: Sep 10, 2007
Posts: 53

PostPosted: Mon Sep 10, 2007 8:29 pm Reply with quote

Offtopic:
What version of phpnuke are you using or this is ravennuke?
 
View user's profile Send private message
triksta







PostPosted: Tue Sep 11, 2007 12:33 am Reply with quote

Im running RavenNuke 2.10.01 as stated in the forum title Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

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 ©