Nejste přihlášeni
Zdravim, chci se zeptat jak na webu zablokuju to..Aby nikdo nemohl na stránce pužít pravé tlačítko myši ?
Offline
Osobně nedoporučuji. Vše se stejně dá obejít, když víte jak.
Postup je to popsán i na "Určitě nejlepší stránce"
1. Murphyho zákon:
Na počátku nebylo nic. I to se pokazilo!
stránky: CMS test
kontakt - instalace systémů, MySQL, FTP přístup, ...
Instalační balíky vybraných CSM
Problémy spojené s provozem služeb Endora, řešte na tomto fóru.
Offline
Ano vím, ale já bych to přeci jen rád věděl.. Zkoušel jsem to přes
document.oncontextmenu=returnFalse
Pokud je to ono..tak to nefunguje
Offline
Chce to hledat...
http://www.jakpsatweb.cz/javascript/pri ... citko.html
1. Murphyho zákon:
Na počátku nebylo nic. I to se pokazilo!
stránky: CMS test
kontakt - instalace systémů, MySQL, FTP přístup, ...
Instalační balíky vybraných CSM
Problémy spojené s provozem služeb Endora, řešte na tomto fóru.
Offline
Takže po přidání u php fusion například do news.php....nepůjde kliknout pravým tlačítkem na celou stránku ?
onmousedown="if((event.button == 2)||(event.button==3)) alert('Neklikej!')"
Offline
Můžete použít přímo plugin k tomu určený http://www.phpfusion-mods.net/infusions ... mod_id=611, ale samozřejmě by to jde i přes javascript, jak psal kolega výše.
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Nahrál jsem ten plugin do FTP, ale nic se nestalo
Offline
Je třeba ho i v administrační sekci nainstalovat. Můžete také použít
<body oncontextmenu="return false" onmousedown="return false" onselectstart="return false" ondragstart="return false">
.
Jestli chcete zakázat pravé tlačítko v news.php, tak tento kód vložte na začátek souboru.
Pokud ho chcete zakázat na celé stránce, tak tento script vložte do themes/šablona/theme.php
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Já bych to potřeboval zakázat všude... a v Administraci to na naistalování bohužel není..
Offline
Pokud ho chcete zakázat všude, tak využijte návod z příspěvku výše.
Vložit kód
<body oncontextmenu="return false" onmousedown="return false" onselectstart="return false" ondragstart="return false">
do themes/šablona/theme.php na začátek souboru.
Záleží na tom, jakou šablonu používáte. Je možné, že ve Vaší šabloně se soubor theme.php může jmenovat header.php, případně že vše bude v index.php ve Vaší šabloně.
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Nefunguje mi to..Stránka mi ukazuje error
Parse error: syntax error, unexpected '<' in /home/users/ruberninja1/xplay-games.eu/web/themes/Sgaming/theme.php on line 366
Offline
Vkládáte kód hned na první řádek souboru theme.php? Ještě před <?php.
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Ne.. vkládám to tam takto:
<?php
<body oncontextmenu="return false" onmousedown="return false" onselectstart="return false" ondragstart="return false">
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</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."viewpage.php?page_id=1'><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>
<li><a href='".BASEDIR."http://144.76.5.39:5583/'><span style='color:orange'>On-line Mapa</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 id='gallery' style='padding-left:0px; padding-bottom:0px;'>
<a>
<img src='".THEME."images/2slide.png' alt='Popis' width='700' height='176' title='' alt='' rel='<h3>Xplay-games.eu</h3>Xplay-games.eu Minecraft portál.'/>
</a>
<a>
<img src='".THEME."images/4slide.png' alt='Popis' width='700' height='176' title='' alt='' rel='<h3>Xplay-games.eu</h3>Zakupte si VIP, a výhody dostanete ihned.'/>
</a>
<div class='caption'><div class='content'></div></div>
</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'> MY PROFILE</a><br>
<a href='".BASEDIR."edit_profile.php' class='admin'> EDIT PROFILE</a><br>
<a href='".BASEDIR."messages.php' class='admin'> MESSAGES</a><br>
<a href='".BASEDIR."members.php' class='admin'> MEMBERS</a>
<br><br><br><a href='".BASEDIR."setuser.php?logout=yes' class='admin'> 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 href='https://www.facebook.com/martin.cvejn'>Martin Cvejn</a> & <a href='http://www.xplay-games.eu/profile.php?lookup=1'>Marty</a><br>
Powered by <a href='http://phpfusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2010 by Nick Jones.
<br>
</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 " <span style='color: #000000; font-weight:bold; font-size: 12px;'> Napsal:".profile_link($info['user_id'], $info['user_name'], $info['user_status'])." Dne: ".showdate("newsdate", $info['news_date'])."
<span style='color: #026698; font-weight:bold; font-size: 12px; align=right;'> <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
Do theme.php vložte
<body oncontextmenu="return false" onmousedown="return false" onselectstart="return false" ondragstart="return false">
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</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."viewpage.php?page_id=1'><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>
<li><a href='".BASEDIR."http://144.76.5.39:5583/'><span style='color:orange'>On-line Mapa</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 id='gallery' style='padding-left:0px; padding-bottom:0px;'>
<a>
<img src='".THEME."images/2slide.png' alt='Popis' width='700' height='176' title='' alt='' rel='<h3>Xplay-games.eu</h3>Xplay-games.eu Minecraft portál.'/>
</a>
<a>
<img src='".THEME."images/4slide.png' alt='Popis' width='700' height='176' title='' alt='' rel='<h3>Xplay-games.eu</h3>Zakupte si VIP, a výhody dostanete ihned.'/>
</a>
<div class='caption'><div class='content'></div></div>
</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'> MY PROFILE</a><br>
<a href='".BASEDIR."edit_profile.php' class='admin'> EDIT PROFILE</a><br>
<a href='".BASEDIR."messages.php' class='admin'> MESSAGES</a><br>
<a href='".BASEDIR."members.php' class='admin'> MEMBERS</a>
<br><br><br><a href='".BASEDIR."setuser.php?logout=yes' class='admin'> 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 href='https://www.facebook.com/martin.cvejn'>Martin Cvejn</a> & <a href='http://www.xplay-games.eu/profile.php?lookup=1'>Marty</a><br>
Powered by <a href='http://phpfusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2010 by Nick Jones.
<br>
</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 " <span style='color: #000000; font-weight:bold; font-size: 12px;'> Napsal:".profile_link($info['user_id'], $info['user_name'], $info['user_status'])." Dne: ".showdate("newsdate", $info['news_date'])."
<span style='color: #026698; font-weight:bold; font-size: 12px; align=right;'> <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";
}
?>
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Ale dal jsem to nad to php, děkuji za pomoc funguje to
Offline
I když udělalo to trošku bordel..Když najede na <!-- w --><a class="postlink" href="http://www.xplay-games.eu">www.xplay-games.eu</a><!-- w --> a kliknete na VIP...Tak to ukáže špatně+error
Offline
Musíte si najít vhodnější umístění, kam kód vložíte. Ale jak už Vám psal kolega výše, pokud byste hledal, tak najdete řešení. Návod, jak zablokovat pravé tlačítko je několik.
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Aha koukám, že to nedělá ten kod... Ale nevím, proč se to takhle udělalo..ještě včera to šlo normálně..Nevíte co stím mám udělat ?
http://www.xplay-games.eu/viewpage.php?page_id=1
Offline
Máte problém s funkcí render_comments. Více naleznete např. zde http://www.phpfusion.cz/forum/viewthrea ... ad_id=1611
V souboru theme.php nemáte definovanou funkci render_comments().
Kontaktujte nás | FAQ
Email: fk@endora.cz
Offline
Nic jsem z toho nepochopil..Hledám v theme.php render_comments
A není to tam, tudiž vůbec nevím co stím mám dělat, a co mám vůbec zkopírovat
Offline
Hledám špatně je to v comments_include.php
render_comments($c_arr['c_con'], $c_arr['c_info']);
Ale co stím teď
Offline
Co jste nepochopil v odkazované diskuzi?
Toto mluví za vše.
1. Murphyho zákon:
Na počátku nebylo nic. I to se pokazilo!
stránky: CMS test
kontakt - instalace systémů, MySQL, FTP přístup, ...
Instalační balíky vybraných CSM
Problémy spojené s provozem služeb Endora, řešte na tomto fóru.
Offline
Toto nechápu:
otevři si design Gillete z té verze fusionu, kterou máš a najdi si tam tu funkci a překopíruj si ji.
Když dám na web Gillete..tak co z toho mám zkopírovat když comments_includes.php je ve složce Includes..co z toho mám zkopírovat..
Offline
Ahoj, máš design pro starou verzi PHP-Fusionu a nebo naopak máš nový design pro starou verzi PHP-Fusionu.
1. Murphyho zákon:
Na počátku nebylo nic. I to se pokazilo!
stránky: CMS test
kontakt - instalace systémů, MySQL, FTP přístup, ...
Instalační balíky vybraných CSM
Problémy spojené s provozem služeb Endora, řešte na tomto fóru.
Offline
A proč mi to ještě včera šlo normálně ? za tu dobu se snad nic nezměnilo ne ?
Offline