#1 2013-06-23 18:18:15

ruberninja1
Endora uživatel
Registrován: 2012-12-01
Příspěvky: 416

PHP Fusion pomoc

Zdravím, byl by někdo ochotný mi pomoct ? Mám takový problém, potřeboval bych smazat to co je v označeném rámečku, a vůbec nevím jak..
anhnsgd2jq8zrpjfmvwc38sfeshnmnzh.png

Zde máte obsah theme.php

<?php
   function render_comments($c_data, $c_info){
        global $locale, $settings;
       opentable($locale['c100']);
        if (!empty($c_data)){
            echo "<div class='comments floatfix'>\n";
                $c_makepagenav = '';
               if ($c_info['c_makepagenav'] !== FALSE) { 
                echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n"; 
           }
               foreach($c_data as $data) {
               $comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
               echo "<div class='tbl2 clearfix floatfix'>\n";
               if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
             echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
               echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
               echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
        if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
                echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
            }
            echo $c_makepagenav;
           if ($c_info['admin_link'] !== FALSE) {
               echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
            }
            echo "</div>\n";
        } else {
            echo $locale['c101']."\n";
        }
        closetable();   
    }

if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>&middot;</span>");
define("THEME_WIDTH", "1017");
require_once INCLUDES."theme_functions_include.php";


function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$aidlink;

SetLocale(LC_ALL, "Slovak");
$datum = StrFTime("%d.%c.%Y ", Time());
$cas = StrFTime ("%H:%M:%S %z %B". Time());


      
           //Header
	echo "<table cellpadding='0' cellspacing='0' class='center' width='".THEME_WIDTH."'>\n<tr>\n";

	echo "</tr>\n</table>\n";                                                                                                           
  echo "<table cellspacing='0' cellpadding='0' width='1017' class='outer-border center'>\n<tr>\n";                                                                                                                                         
  echo "<td>\n";
  echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  echo"<td align='center' class='header' ></td>


<table align='center' cellspacing='0' cellpadding='0' width='1017px' height='51px'  >
	<tr>
	<td width='1017'>
		<ul id='menu' >
	
	<li><a href='".BASEDIR."news.php'>Domů</a></li>
	<li><a href='".BASEDIR."forum/index.php'>Forum</a></li>
	<li><a href='".BASEDIR."http://mc.xplay-games.eu/'>Banlist</a></li>
	<li><a href='".BASEDIR."contact.php'>Kontakt</a></li>
	<li><a href='".BASEDIR."downloads.php'>Ke stažení</a></li>
	<li><a href='".BASEDIR."vip.html'><span style='color:yellow'>VIP</span></a></li>
	<li><a href='".BASEDIR."viewpage.php?page_id=4'><span style='color:green'>Podpořte nás</span></a></li>
	</ul>
	</td>
	</tr>
	</table>

<table align='center' cellpadding='0' cellspacing='0' width='1017'>\n<tr>
<td cellspacing='0' cellpadding='0' width='700' class='slide'>";

echo "<script type='text/javascript' src='js/jquery-1.3.1.min.js'></script>
<script type='text/javascript'>

$(document).ready(function() {		
	
	//Execute the slideShow
	slideShow();

});

function slideShow() {

	//Set the opacity of all images to 0
	$('#gallery a').css({opacity: 0.0});
	
	//Get the first image and display it (set it to full opacity)
	$('#gallery a:first').css({opacity: 1.0});
	
	//Set the caption background to semi-transparent
	$('#gallery .caption').css({opacity: 0.7});

	//Resize the width of the caption according to the image width
	$('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});
	
	//Get the caption of the first image from REL attribute and display it
	$('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))
	.animate({opacity: 0.7}, 400);
	
	//Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds
	setInterval('gallery()',6000);
	
}

function gallery() {
	
	//if no IMGs have the show class, grab the first image
	var current = ($('#gallery a.show')?  $('#gallery a.show') : $('#gallery a:first'));

	//Get next image, if it reached the end of the slideshow, rotate it back to the first image
	var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first'));	
	
	//Get next image caption
	var caption = next.find('img').attr('rel');	
	
	//Set the fade in effect for the next image, show class has higher z-index
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	//Hide the current image
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
	
	//Set the opacity to 0 and height to 1px
	$('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });	
	
	//Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
	$('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '50px'},500 );
	
	//Display the content
	$('#gallery .content').html(caption);
	
	
}

</script>
<style type='text/css'>
body{
	font-family:arial
}

.clear {
	clear:both
}

#gallery {
	position:relative;
	height:176px
}
	#gallery a {
		float:center;
		position:absolute;
	}
	
	#gallery a img {
		
		-moz-border-radius: 0px;
		-webkit-border-radius: 0px;
	}
	
	#gallery a.show {
		z-index:500
	}

	#gallery .caption {
		z-index:600; 
		background-color:#000; 
		color:#ffffff; 
		height:50px; 
		width:100%; 
		position:absolute;
		bottom:0;
	
		
	}

	#gallery .caption .content {
		margin:5px
	}
	
	#gallery .caption .content h3 {
		margin:0;
		padding:0;
		color:#036596;
	}
	

</style>

</div></td>";

if (iMEMBER) {
echo "<td cellspacing='0' cellpadding='0'  width='1017' style='padding-right:0px;' class='log'>";
	$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
	echo "<table width='' border='0' cellspacing='0' cellpadding='0' style='padding-left: 00px; padding-top: 0px;'>
  
<tr>
  <td>";
	if ($userdata['user_avatar'] != "") {
	echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:2px solid #0077b5'></center>\n";
	} else {
	echo "<center><img src='".THEME."images/noavatar.png' width='100' height='100' style='border:2px solid #dddddd'></center>\n";
	}
	echo "</td>
<td><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='admin'>&nbsp;&nbsp;MY PROFILE</a><br>
<a href='".BASEDIR."edit_profile.php' class='admin'>&nbsp;&nbsp;EDIT PROFILE</a><br>
<a href='".BASEDIR."messages.php'  class='admin'>&nbsp;&nbsp;MESSAGES</a><br>
<a href='".BASEDIR."members.php' class='admin'>&nbsp;&nbsp;MEMBERS</a>
<br><br><br><a href='".BASEDIR."setuser.php?logout=yes' class='admin'>&nbsp;&nbsp;LOG OFF<span style='color: #a7fe00;'>[x]</span></a><br>";
echo"</td>
<td width='30'></td>
<td>
<br><br><br>";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
		echo "<a href='".ADMIN."index.php".$aidlink."' class='admin' align='left'>ADMINISTRATION</a>";
	}

echo"</td>

<td><br>
</td></table>";

	

} else {
echo "<td cellspacing='0' cellpadding='0' width='1017' class='log2' >";
	echo "<table width='200' border='0' cellspacing='0' cellpadding='0' align='right'>
	
	<form name='loginform' method='post' action='".FUSION_SELF."'>
	<table width='0' border='0' cellspacing='0' cellpadding='0' align='center' style='padding-left: 1px; padding-top: 20px;'>
	
  <tr>
    <td align='left'  style='padding-right: 0px;'></td>
      <td><input type='text' name='user_name' value='Nick' onfocus=\"if(this.value=='Nick'){this.value='';}\" onblur=\"if(this.value==''){this.value='Nick';}\" class='log-textbox' style='width:200px; height:32px;'>

  </tr>
  <tr>
  <td height='5'></td>
  <td></td>
  </tr>
  <tr>
    <td align='left'  style='padding-left: 0px;'></td>
    <td><input type='password' name='user_pass' value='slaptazodis' onfocus=\"if(this.value=='slaptazodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptazodis';}\" class='log-textbox' style='width:200px; height:32px;'>
	</tr>
    </table>
  	<table width='308' border='0' cellspacing='0' cellpadding='0' align='right'  style=' padding-top: 10px; padding-left: 70px;'>
  <tr>
    <td align='left'>
    <td><input type='submit' name='login' value='' class='log-button'><br> <a style=' color : #026094;font-family : Arial; font-size : 12px; font-weight: bold;' href=".BASEDIR."register.php>Registrace</a> | <a style='color : #026094;font-family : Arial; font-size : 12px; font-weight: bold;' href=".BASEDIR."lostpassword.php>Ztracené heslo</a>

  </form></div></table>";
}

echo"</td>



</tr>


</tr>
</table>

       </table>\n";


 


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

			</table>";

				echo"</td>";
				echo "</tr>\n</table>\n";

//footer
 	echo "<table align='center' cellpadding='0' cellspacing='0' align='center' width='1017' class='footer'><tr><td align='left' style='padding-bottom:0px; padding-right:15px;'>
<span style='font-family: arial; font-weight: regular; font-size: 12px; font-style: sharp; color: #434343; '>
<br>

<span align='center'style='color: #434343;'>
 <center>Majitel webu a serverů,  <a href='https://www.facebook.com/martin.cvejn'>Martin Cvejn</a> - <a href='http://www.xplay-games.eu/profile.php?lookup=1'>Marty</a><br>
 &nbsp;&nbsp;&nbsp; Powered by PHP-Fusion copyright © 2002 - 2013 by Nick Jones.
<br>
&nbsp;&nbsp;&nbsp;&nbsp;</a></span>";


}

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

	echo "<table cellpadding='1' cellspacing='1' width='700'>\n<tr>\n";
	echo "<td class='capmain'>".$subject."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td align='left' class='main-body'>".$info['cat_image'].$news."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td align='left' class='main-body'>\n";
  echo "&nbsp;<span style='color: #000000; font-weight:bold; font-size: 12px;'>&nbsp;&nbsp;Napsal:".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."&nbsp;&nbsp;&nbsp;Dne: ".showdate("newsdate", $info['news_date'])."
<span style='color: #026698; font-weight:bold; font-size: 12px; align=right;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>PŘEČÍST CELOU NOVINKU";
	echo "</td>\n</tr>\n</table>\n";

}


function render_article($subject, $article, $info) {
	
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td width='100%' class='capmain'>".$subject."</td>";
	echo "</tr></table>";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
	echo "</td>\n";
	echo "</tr><tr>\n";
	echo "</tr>\n</table>\n";
		echo"<img src='".THEME."images/blank.gif' height='5' style='display:block'>";
}

function opentable($title) {

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

}

function closetable() {

	echo "</td>\n</tr>\n</table>\n";

}



function openside($title) {

  echo "<table cellpadding='0' cellspacing='0' width='308'>
<tr>
<td class='panele'><div style='font-family : Arial; font-size : 12px;text-transform: uppercase;  padding-top: 5px;'>$title</div></td>
</tr>";
  echo "<table cellpadding='0' cellspacing='0' width='308'>
<tr>
<td class='side-body'>\n";

}

function closeside() {

	global $panel_collapse;
	if ($panel_collapse == true) { echo "</div>\n"; }
	echo "<tr>";
	echo "<td class='side-close'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
	echo "</tr></table>\n";
}

function open($title) {

	echo "<table cellpadding='0' cellspacing='0' width='330' align='center'>\n<tr>\n";
	echo "<td class='capmain'>".$title."</td>\n";
	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='330' align='center'>\n<tr>\n";
	echo "<td class='main-body'>\n";

}

function close() {

 echo "</td>\n";
 echo "</tr></table>\n";


}
?>  

Offline

#2 2013-06-23 18:30:10

Trade
Endora rádce
Místo: Česká republika
Registrován: 2013-01-22
Příspěvky: 3,596
Web

Re: PHP Fusion pomoc

Jedná se o slide. V souboru style.css když smažete

.slide {
    background: url('images/1.png') no-repeat;
	height: 185px;
	width: 709px;
	padding-left: 0px;
	padding-bottom: 0px;
}

, tak rámeček zmizí.

Slide si také můžete zkusit smazat přímo v souboru theme.php


Kontaktujte nás | FAQ
Email: fk@endora.cz

Offline

#3 2013-06-23 18:33:31

ruberninja1
Endora uživatel
Registrován: 2012-12-01
Příspěvky: 416

Re: PHP Fusion pomoc

Kdyby to bylo tak jednoduché tak bych nezakládal tento topic, bohužel když smažu ten slide v style.css tak ten rámeček tam stále je, akorád zmizí to šedé pozadí

Offline

#4 2013-06-23 18:35:33

Trade
Endora rádce
Místo: Česká republika
Registrován: 2013-01-22
Příspěvky: 3,596
Web

Re: PHP Fusion pomoc

Musíte si potom smazat slide funkci ze souboru, ve kterém se vyskytuje.


Kontaktujte nás | FAQ
Email: fk@endora.cz

Offline

#5 2013-06-23 18:37:17

ruberninja1
Endora uživatel
Registrován: 2012-12-01
Příspěvky: 416

Re: PHP Fusion pomoc

No mělo by to být v theme.php , ale otamtud to bohužel vymazat neumím, vy byste to prosím vás uměl ?

Offline

#6 2013-06-23 18:44:32

Trade
Endora rádce
Místo: Česká republika
Registrován: 2013-01-22
Příspěvky: 3,596
Web

Re: PHP Fusion pomoc

Kdybyste smazal ze souboru theme.php tabulku na slide

<table align='center' cellpadding='0' cellspacing='0' width='1017'>\n<tr>
<td cellspacing='0' cellpadding='0' width='700' class='slide'>";

, tak by se slide neměl zobrazovat.

Ale díval jsem se, že ten slide načítá i pravý bok  (přihlášení), tak je možné, že odstraněním se to rozhodí.


Kontaktujte nás | FAQ
Email: fk@endora.cz

Offline

#7 2013-06-23 18:48:27

ruberninja1
Endora uživatel
Registrován: 2012-12-01
Příspěvky: 416

Re: PHP Fusion pomoc

Pokud smažu to co jste mi napsal, tam mi stránky vykazují error, ale pokud to jinak smazat nepůjde, tak se to může smazat i s tím MyProfile apd.. panelem

Offline

#8 2013-06-23 19:07:57

ruberninja1
Endora uživatel
Registrován: 2012-12-01
Příspěvky: 416

Re: PHP Fusion pomoc

Nějaká rada ještě ?

Offline

Zápatí

Založeno na FluxBB | CZ a SK