Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

News and Log In problems. Need Support for fixing that.

Asked Modified Viewed 2,119 times
L
LT-DominiC-LT
L
Learning Php - Fusion system wink
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

I have 2 problems, and I don't know how o fix it.

So, the 1-st problem is News.
www.part.lt/img/744b66afba004db86a5c080ed128b9ec278.jpg
Here is the image. The problom is that the picture ant the text is not in the right place. How i know the text must begin with the picture like this...
www.part.lt/img/0919917b8d2d20bd6b6087f4b8575e9e812.jpg (this picture is from other site ^^)

The next problem is that, when you log in or log off, the welcome or bye screen is not in the center, but in left. Here is the screens
www.part.lt/img/0308a77a3c7bdfe080606d1c949a4172314.jpg
www.part.lt/img/81710fe23350d8453fb829817b0400bc577.jpg

Here is the theme code:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php

/************************/
/* Settings/Nustatymai */
/************************/
if (!defined("IN_FUSION")) { die("Access Denied"); }

require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "988";
$theme_width_l = "180";
$theme_width_r = "180";

function render_page($header_content) {
global $theme_width,$settings,$locale,$main_style,$userdata,$aidlink;

echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<tr><td height='150' background='".THEME."images/baner2.jpg' align='right' valign='middle'>
<table width='988' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>&nbsp;</td>
<td width='220' align='center'>";
// Jei narys, prisijungimas atrodo taip
if (iMEMBER) {
openside($userdata['user_name']);
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
<tr>
<td>n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>n";
} else {
echo "<center><img src='".THEME."images/noavatar.jpg' width='50' height='50' style='border:1px solid #999999'></center>n";
}
echo "</td>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Asmeninės žinutės</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a>n";"
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>

n";
// Jei ne narys
} else {
openside("Prisijungimas");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right'>Vardas: </td>
<td>&nbsp;<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'>Slaptažodis: </td>
<td>&nbsp;<input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td>&nbsp;<input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptažodis</a>n";
}
echo"</div>n";
}
closeside();
echo "</td>
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>
</td>";
echo "</tr></table></td></tr></table>n";
// End banner code / Banerio kodo pabaiga
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>n<tr>";
echo "<td>n";
echo "n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."n";
echo "</td>";
echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
<td width='5'></td>
<td width='69' valign='top'><a href='".BASEDIR."news.php'><img src='".THEME."images/home.GIF' border=0' alt='Namai'></a></td>
<td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forum.GIF' border=0' alt='Forumas'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/news.GIF' border=0' alt='TaisyklÄ—s'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/gallery.GIF' border=0' alt='Paslaugos'></td>
<td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.GIF' border=0' alt='Siuntiniai'></td>
<td width='564' class='dark'><marquee>".parseubb(parsesmileys("PB Masters - Paint Ball Masters ;)"))."</marquee></td>
<td width='69' valign='top'><a href='".BASEDIR."contact.php'><img src='".THEME."images/contacts.GIF' border=0' alt='Kontaktai'></td>
<td width='5'></td>
</tr>
</table>n";
echo "<table cellpadding='0' cellspacing='0' align='center' width='969px' 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";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<td width='20%' height='20' class='white' align='left'>";
echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHPFusion</a></b>";
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b>Perkodavo:</b> <a href='http://www.ltfusion.lt' target='_blank'>www.ltfusion.lt</a> | <b>Design by <a href='mailto:Qrmiz@mail.lt'>Qrmiz</a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=true) {
global $theme_width,$locale,$settings;

echo "</tr>n</table>n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<td width='20%' height='20' class='white' align='left'>";
if ($license == false) {
echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHPFusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b>Design by <a href='mailto:Qrmiz@mail.lt'>Qrmiz</a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}

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

global $locale;

echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'><center>$subject</center></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "PaskelbÄ—: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "Data: ".showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>Placiau...</a> ·n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>Komentarų: ".$info['news_comments']."</a> · ";
echo "SkaitÄ—: ".$info['news_reads']." ";
echo "<a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table><br>n";
}

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

global $locale;

echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table><br>n";
}

// Open table begins
function opentable($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>n";
}
?>[/syntaxhighlighter]

Waiting for support.

P.S. Sorry for my very bad English and small screens. I'm on low net zone :D
0 replies
There are no post found.

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

L
L
Learning Php - Fusion system wink
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet