Author |
Message |
southern
Client

Joined: Jan 29, 2004
Posts: 624
|
Posted:
Mon Feb 05, 2007 2:47 pm |
|
I have the html for FB's copyright showing at the bottom of my site
Quote: |
Web site engine code is Copyright © 2003 by <a href="http://phpnuke.org"><font class="footmsg_l">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href="http://www.gnu.org"><font class="footmsg_l">GNU/GPL license</font></a>.
|
I don't mind credit where credit is due but I don't want it showing as html. How do I get it to show proper? Thanks |
_________________ Computer Science is no more about computers than astronomy is about telescopes.
- E. W. Dijkstra
Last edited by southern on Sat Feb 10, 2007 12:42 am; edited 1 time in total |
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Mon Feb 05, 2007 4:20 pm |
|
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Mon Feb 05, 2007 6:55 pm |
|
In addition to Jakec's question, when you get to it, what version is this? You have it under 7.1???
In order for the code to be presented as you have shown it, it would have to not be "interpreted" by the browser or by PHP. Otherwise the href would be a true href and the font a font. So maybe it's enclosed in single quotes somehow? Or maybe you have some kind of a mix of versions that's causing this, programs from one version and tables from another?
The footer text itself is read in from the nuke_config table during mainfile.php processing. Then the active theme themefooter() function works in conjunction with the footer.php program in your root directory to display the footer. If any of these pieces are wrong or inconsistent you can see the type of errors you are seeing. If you have a test system you could echo out the values of the variables in $foot1, $foot2 and $foot3 in mainfile to get a handle on what's going on. |
|
|
|
 |
southern

|
Posted:
Tue Feb 06, 2007 2:09 pm |
|
jakec wrote: | Is this a new install? |
No, same old 7.1. I'm waiting for RavenNuke76 2.10 to finally upgrade. |
|
|
|
 |
southern

|
Posted:
Tue Feb 06, 2007 2:17 pm |
|
fkelly wrote: | In addition to Jakec's question, when you get to it, what version is this? You have it under 7.1???
In order for the code to be presented as you have shown it, it would have to not be "interpreted" by the browser or by PHP. Otherwise the href would be a true href and the font a font. So maybe it's enclosed in single quotes somehow? Or maybe you have some kind of a mix of versions that's causing this, programs from one version and tables from another?
The footer text itself is read in from the nuke_config table during mainfile.php processing. Then the active theme themefooter() function works in conjunction with the footer.php program in your root directory to display the footer. If any of these pieces are wrong or inconsistent you can see the type of errors you are seeing. If you have a test system you could echo out the values of the variables in $foot1, $foot2 and $foot3 in mainfile to get a handle on what's going on. |
Well, I had previously upgraded to chatserv's patched 3.1 for nuke 7.1 which entailed uploading 7.2 patch files as well as 7.1 files. Recently I had to replace some /includes and root files and I u/led some 7.2 patched files w/o running the installer. Could the 7.2 files be out of sync with 7.1 tables? If I reinstall thew patched 3.1 this may fix it?
Would this also affect an admin's ability to post images?
http://www.ravenphpscripts.com/postp94200.html#94200 |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Feb 06, 2007 10:28 pm |
|
Patched 7.2 was designed for 7.1 as well. I don't think there's anything out of sync. |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
southern

|
Posted:
Wed Feb 07, 2007 6:06 pm |
|
evaders99 wrote: | Patched 7.2 was designed for 7.1 as well. I don't think there's anything out of sync. |
Just to make sure I reinstalled chatserv's patch which is 3.3 now and no problems were reported except in the forums version, I have 0.22 not 0.17. But the footer html is still there
http://www.southernwolf.net/footer.html
How do I get rid of FB's confounded copyright-in-html?
Could the problem reside in the nuke_config table? I've had a little... ah... problem with that recently, and other html I put in foot1 and 2 in Preferences also showed as plain html so I removed it until I get the copyright thing fixed. |
|
|
|
 |
southern

|
Posted:
Wed Feb 07, 2007 10:09 pm |
|
So I checked nuke_config in phpmyadmin and when I tried to change the Copyright table I got
Quote: |
: Missing parameter: field
|
Now what is this field missing and how do I fix it? Thanks much |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Feb 07, 2007 10:20 pm |
|
Were you using the sql popup window or the sql tab? |
|
|
|
 |
southern

|
Posted:
Thu Feb 08, 2007 10:45 am |
|
Neither. I checked the box next to nuke_config in the main window of my myphpadmin and then mous ed over the Change icon, it said Change, and I clicked it and got the field missing error... I didn't necessarily want to change it just look to see if FB's copyright is in single or double quotes or triple. |
|
|
|
 |
Raven

|
Posted:
Thu Feb 08, 2007 11:26 am |
|
Select BROWSE and then if you need to edit it select the edit icon (pencil) |
|
|
|
 |
southern

|
Posted:
Thu Feb 08, 2007 1:40 pm |
|
OK I did that, main window/nuke_config/Browse/checked the box/clicked Edit/scrolled down... removed
Quote: |
Web site engine code is Copyright &copy; 2003 by <a href="http://phpnuke.org"><font class="footmsg_l">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href="http://www.gnu.org"><font class="footmsg_l">GNU/GPL license</font></a>.
|
as a test, clicked Save and return to previous page...Go... and got
Quote: |
Missing parameter: goto (FAQ 2.8)
|
I looked at my footer and it is still there like bark on a tree so my edit wasn't saved. |
|
|
|
 |
Raven

|
Posted:
Fri Feb 09, 2007 1:09 am |
|
If you follow that link you will see that this release of phpMyAdmin sucks. Of course, that's just my opinion - I have tried everything in that FAQ and I have managed to reduce the occurrences but not stop them altogether.
The sql code that you need is this:
Code:
global $prefix, $db;
$sql = 'UPDATE '.$prefix.'_config SET COLUMN_NAME=\'\';';
@sql_query($sql);
if (mysql_error()) die("Update was unsuccessful.<br />MySQL said: '.mysql_error());
|
COLUMN_NAME needs to be replaced with whatever the field is actually named.
If the query croaks, try removing the @ from @sql_query. |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Fri Feb 09, 2007 8:02 am |
|
It looks like the code is doing a htmlentities on the text in the database before outputing it. Weird. You might try to find the code in footer.php or in your theme in themefooter() and check that out. If there is a htmlentities() or html_special_char() call, remove it. |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 8:50 am |
|
Raven wrote: | If you follow that link you will see that this release of phpMyAdmin sucks. Of course, that's just my opinion - I have tried everything in that FAQ and I have managed to reduce the occurrences but not stop them altogether.
The sql code that you need is this:
Code:
global $prefix, $db;
$sql = 'UPDATE '.$prefix.'_config SET COLUMN_NAME=\'\';';
@sql_query($sql);
if (mysql_error()) die("Update was unsuccessful.<br />MySQL said: '.mysql_error());
|
COLUMN_NAME needs to be replaced with whatever the field is actually named.
If the query croaks, try removing the @ from @sql_query. |
Looks good except I don't know what the field is actually named, there is just a field missing or so it says. A comparison with a normal 7.1 nuke_config table might help. |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 9:10 am |
|
Gremmie wrote: | It looks like the code is doing a htmlentities on the text in the database before outputing it. Weird. You might try to find the code in footer.php or in your theme in themefooter() and check that out. If there is a htmlentities() or html_special_char() call, remove it. |
Yeh it's weird. It all started when I put on a postnuke theme by mistake. I'll look at those files...
footer.php is the patched 3.3
Code:
define('NUKE_FOOTER', true);
function footmsg() {
global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time, $footmsg;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = _PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS;
$footmsg = "<span class=\"footmsg\">\n";
if (!empty($foot1)) {
$footmsg .= $foot1."<br>\n";
}
if (!empty($foot2)) {
$footmsg .= $foot2."<br>\n";
}
if (!empty($foot3)) {
$footmsg .= $foot3."<br>\n";
}
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
// IF YOU REALLY NEED TO REMOVE IT AND HAVE MY WRITTEN AUTHORIZATION CHECK: http://phpnuke.org/modules.php?name=Commercial_License
// PLAY FAIR AND SUPPORT THE DEVELOPMENT, PLEASE!
$footmsg .= $copyright."<br>$total_time<br>\n</span>\n";
echo $footmsg;
}
|
the themefooter() from my current theme is just a themefooter(). |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 9:35 am |
|
Could it have something to do with NS 2.5.05 Edits for core files/mainfile.php
Code:
[ FIND 7.0-7.5 ]------------------------------------------
#
if (!defined('ADMIN_FILE') && !file_exists('includes/nukesentinel.php')) {
foreach ($_GET as $sec_key => $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*body*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue)) ||
(eregi("forum_admin", $sec_key)) ||
(eregi("inside_mod", $sec_key))) {
die ($htmltags);
}
}
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
die ($htmltags);
}
}
}
#
#-----[ COMMENT OUT ]------------------------------------------
#
//if (!defined('ADMIN_FILE') && !file_exists('includes/nukesentinel.php')) {
// foreach ($_GET as $sec_key => $secvalue) {
// if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
// (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) ||
// (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
// (eregi("\"", $secvalue)) ||
// (eregi("forum_admin", $sec_key)) ||
// (eregi("inside_mod", $sec_key))) {
// die ($htmltags);
// }
//}
//foreach ($_POST as $secvalue) {
// if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
// die ($htmltags);
// }
// }
//}
|
I don't have that code commented out in my mainfile.php cause I get a blank page if I try it.
edit: I commented it out OK but the html still there like blue on the sky... or like, no offense FB, smell on s**t. |
|
|
|
 |
Gremmie

|
Posted:
Fri Feb 09, 2007 10:50 am |
|
Search for $foot1, $foot2, $copyright, etc. in mainfile.php. It is possible they are getting read out of the database correctly, but then htmlentities() or some other incorrect transformation is being done on them.
If your theme has a themefooter() doesn't that get called instead of footmsg()? Have you looked at your theme's themefooter()? |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 11:54 am |
|
Gremmie wrote: | Search for $foot1, $foot2, $copyright, etc. in mainfile.php. It is possible they are getting read out of the database correctly, but then htmlentities() or some other incorrect transformation is being done on them.
If your theme has a themefooter() doesn't that get called instead of footmsg()? Have you looked at your theme's themefooter()? |
This is part of my mainfile.php corresponding to the nuke_config table
Code:
define('NUKE_FILE', true);
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
$result = $db->sql_query("SELECT * FROM ".$prefix."_config");
$row = $db->sql_fetchrow($result);
$sitename = $row['sitename'];
$nukeurl = $row['nukeurl'];
$site_logo = $row['site_logo'];
$slogan = $row['slogan'];
$startdate = $row['startdate'];
$adminmail = stripslashes($row['adminmail']);
$anonpost = $row['anonpost'];
$Default_Theme = $row['Default_Theme'];
$foot1 = $row['foot1'];
$foot2 = $row['foot2'];
$foot3 = $row['foot3'];
$commentlimit = intval($row['commentlimit']);
$anonymous = $row['anonymous'];
$minpass = intval($row['minpass']);
$pollcomm = intval($row['pollcomm']);
$articlecomm = intval($row['articlecomm']);
$broadcast_msg = intval($row['broadcast_msg']);
$my_headlines = intval($row['my_headlines']);
$top = intval($row['top']);
$storyhome = intval($row['storyhome']);
$user_news = intval($row['user_news']);
$oldnum = intval($row['oldnum']);
$ultramode = intval($row['ultramode']);
$banners = intval($row['banners']);
$backend_title = $row['backend_title'];
$backend_language = $row['backend_language'];
$language = $row['language'];
$locale = $row['locale'];
$multilingual = intval($row['multilingual']);
$useflags = intval($row['useflags']);
$notify = intval($row['notify']);
$notify_email = $row['notify_email'];
$notify_subject = $row['notify_subject'];
$notify_message = $row['notify_message'];
$notify_from = $row['notify_from'];
$footermsgtxt = $row['footermsgtxt'];
$email_send = intval($row['email_send']);
$attachmentdir = $row['attachmentdir'];
$attachments = intval($row['attachments']);
$attachments_view = intval($row['attachments_view']);
$download_dir = $row['download_dir'];
$defaultpopserver = $row['defaultpopserver'];
$singleaccount = intval($row['singleaccount']);
$singleaccountname = $row['singleaccountname'];
$numaccounts = $row['numaccounts'];
$imgpath = $row['imgpath'];
$filter_forward = intval($row['filter_forward']);
$moderate = intval($row['moderate']);
$admingraphic = intval($row['admingraphic']);
$httpref = intval($row['httpref']);
$httprefmax = intval($row['httprefmax']);
$CensorMode = intval($row['CensorMode']);
$CensorReplace = $row['CensorReplace'];
$copyright = $row['copyright'];
$Version_Num = floatval($row['Version_Num']);
$domain = str_replace("http://", "", $nukeurl);
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$start_time = $mtime;
|
Maybe this is where the missing field exists or should in the table. My themefooter(), open table, close table etc. I will look to see about footmsg()...
What about
Code:
$domain = str_replace("http://", "", $nukeurl);
|
Should that be set to my domain? |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 2:21 pm |
|
I commented out the line
Code:
$copyright = $row['copyright'];
|
in mainfile.php and the html is gone like fart on the wind... just a last resort but heck under GNU/GPL I don't have to give FB credit for nuke 7.1. It'll do til I can figure out this, if ever. |
|
|
|
 |
Gremmie

|
Posted:
Fri Feb 09, 2007 2:33 pm |
|
Have you looked in your nuke_config table in phpMyAdmin? Is there normal HTML in the copyright field? Or has it all been somehow htmlentity'ized (so there is stuff that looks like "lt;a href=" blah blah >")? |
|
|
|
 |
Gremmie

|
Posted:
Fri Feb 09, 2007 2:34 pm |
|
I would also find your theme's themefooter() function and see what, if anything, it does with the $copyright variable. |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 3:15 pm |
|
Gremmie wrote: | Have you looked in your nuke_config table in phpMyAdmin? Is there normal HTML in the copyright field? Or has it all been somehow htmlentity'ized (so there is stuff that looks like "lt;a href=" blah blah >")? |
It was htmlentitized, it looks just like your example:
Quote: |
Web site engine code is Copyright &copy; 2003 by <a href="http://phpnuke.org"><font class="footmsg_l">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href="http://www.gnu.org"><font class="footmsg_l">GNU/GPL license</font></a>.
|
That's what I saw in my nuke_config/copyright. Is the htmlentitizing significant? |
|
|
|
 |
southern

|
Posted:
Fri Feb 09, 2007 3:28 pm |
|
Gremmie wrote: | I would also find your theme's themefooter() function and see what, if anything, it does with the $copyright variable. |
The only copyright in my theme's themefooter() is the theme maker's not FB's. FB's is loaded from mainfile... I think lol |
|
|
|
 |
Gremmie

|
Posted:
Fri Feb 09, 2007 3:56 pm |
|
southern wrote: | It was htmlentitized, it looks just like your example:
|
Oh ok....that's the problem then. If you use phpMyAdmin to un-entity-ize it, it will display correctly in your footer.
Just edit the copyright field in nuke_config by hand and
Replace < with <
> with >
" with "
That should get you all of it hopefully. |
|
|
|
 |
|