Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
Xbox Leaderboards 9
Cookiebar Panel 72
AD Gallery 153
SyntaxHighlighte... 63
Newsletters v4.03 168
Facebook Like Box 206
Newsletters v4.02 79
Metro 236
Facebook Connect 215
Shoutbox Panel 185
Redactor for PHP... 127
MI Floating Side... 133
Facebook Login/R... 180
Avatar Studio v2.03 215
Relationship Sta... 123
Popular Addons
iTheme2 5911
Arise 5871
User Control v1.23 4683
Event Calendar 4135
Photowidget panel 3923
Radio-Theme red2... 3396
Highslide Gallery 3361
CSS/JavaScript D... 3277
Facebook Connect... 3056
Dynamic Menu 2947
Slideshow Lightb... 2770
L-AMANT 2689
Enigma 2671
2Dark 2625
Black 2620
View Thread
Who is here? 1 guest(s)
 Print Thread
Empty <p> tags
freimanisg
Hello!
First of all, see our site: http://lkfa.lv/fu...?page_id=1
You'll see a break before text almost in each page. There is two empty <p> tags before 'news', that code is printing out. And i don't know where to find and fix this problem. Anybody knows where to remove these tags? Please, help!
 
Craig
Yes it's because you have a panel enabled there but the panel has no content in it. I think.

Check all your panels in Admin >>> System >>> Panels.
 
http://www.fusiontube.co.uk/
freimanisg
Craig wrote:

Yes it's because you have a panel enabled there but the panel has no content in it. I think.

Check all your panels in Admin >>> System >>> Panels.


Ok... I disabled all of panels that should be in center. The same problem... Sad
 
Craig
Ok can you paste your theme.php here please?
 
http://www.fusiontube.co.uk/
freimanisg
From /fusion/themes/Gillette/theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_BULLET", "<span class='bullet'>&middot;</span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

global $settings, $main_style, $locale;

//Header
echo "<table cellpadding='0' cellspacing='0' width='1010' align='center'>\n<tr>\n";
echo "<td class='full-header'>\n".showbanners()."</td>\n";
echo "</tr>\n</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='1010' align='center'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";

//Content
echo "<table cellpadding='0' cellspacing='0' width='1010' align='center' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";

//Footer
echo "<table cellpadding='0' cellspacing='0' width='1010' align='center'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n";
echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
if (!$license) { echo "<br /><br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
echo "</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";

}

function closetable() {

echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
echo "</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {

global $panel_collapse; $panel_collapse = $collapse;

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {

global $panel_collapse;

if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";

}
?>


I think that empty <p> tags appears inside of U_CENTER.CONTENT.L_CENTER
But which php file it renders?
 
Craig
What version of PHP-Fusion are you using?

Can you please paste your viewpage.php here please?
 
http://www.fusiontube.co.uk/
freimanisg
We upgraded it to v7.00.05
My friend few weeks ago copied all site files (and exported all db tables) 1:1 to a new server. Maybe this factor somehow affected?
This is viewpage.php


<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
...
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
require_once INCLUDES."comments_include.php";
require_once INCLUDES."ratings_include.php";
include LOCALE.LOCALESET."custom_pages.php";

if (!isset($_GET['page_id']) || !isnum($_GET['page_id'])) { redirect("index.php"); }
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }

$result = dbquery("SELECT * FROM ".DB_CUSTOM_PAGES." WHERE page_id='".$_GET['page_id']."'");
if (dbrows($result) != 0) {
$data = dbarray($result);
add_to_title($locale['global_200'].$data['page_title']);
opentable($data['page_title']);
if (checkgroup($data['page_access'])) {
ob_start();
eval("?>".stripslashes($data['page_content'])."<?php ");
$custompage = ob_get_contents();
ob_end_clean();
if ($settings['tinymce_enabled']) {
$custompage = explode("<!-- pagebreak -->", $custompage);
$pagecount = count($custompage);
echo $custompage[$_GET['rowstart']];
if ($pagecount > 1) {
echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF."?page_id=".$_GET['page_id']."&amp;")."\n</div>\n";
}
} else {
echo $custompage;
}
} else {
echo "<div style='text-align:center'><br />\n".$locale['400']."\n<br /><br /></div>\n";
}
} else {
add_to_title($locale['global_200'].$locale['401']);
opentable($locale['401']);
echo "<div style='text-align:center'><br />\n".$locale['402']."\n<br /><br /></div>\n";
}
closetable();
if (dbrows($result) && checkgroup($data['page_access'])) {
if ($data['page_allow_comments']) { showcomments("C", DB_CUSTOM_PAGES, "page_id", $_GET['page_id'],FUSION_SELF."?page_id=".$_GET['page_id']); }
if ($data['page_allow_ratings']) { showratings("C", $_GET['page_id'], FUSION_SELF."?page_id=".$_GET['page_id']); }
}

require_once THEMES."templates/footer.php";
?>
 
Craig
Do you not want to upgrade to 7.01 then 7.02?
 
http://www.fusiontube.co.uk/
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
script like this? auto tags? General Discussion 1 15-05-2012 21:48
YouTube tags not working Content Administration 8 20-04-2012 15:25
Adding html content under body tags Themes Support 3 29-02-2012 05:29
Tags System Panel Official releases [Infusions] 32 14-02-2012 05:10
empty screen HELP Installation Issues 12 26-01-2012 19:47
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue