1
General Help & Support / Re: There was an uncatched exception. Call to undefined function mysql_db_query()
« Last post by svsanchez on May 03, 2024, 04:22:31 AM »Thank you for your help!!!
Published WebsiteBaker 2.13.5 Patch 223
We refer to topic
Error message in the admin area
2024-01-17: download on wiki…
Published WebsiteBaker 2.13.5 R220
2023-12-21 : download on wiki…
2023-12-29 : read more about…
PHP-8.3 released. 2023-11-23
PHP-8.0 and before has End of Live
2021-12-02 : read more about…
The new versioning strategy (Part 1)
2022-12-07 : read more about…
Published WebsiteBaker Portable v10 PHP 8.1.7
2022-04-16 : read more about…
<ul>
<li class="menu-sibling">
<a href="https://skylog.bg/pages/bg.php" class="" title="BG"><span><img src="<?php echo WB_URL; ?>/media/flags/bg.png" alt="BG" title="BG"></span></a>
</li>
<li class="menu-sibling">
<a href="https://skylog.bg/pages/en.php" class="" title="EN"><span><img src="<?php echo WB_URL; ?>/media/flags/en.png" alt="EN" title="EN"></span></a>
</li>
</ul>
<?php
ob_start();
show_menu2(1, SM2_ROOT, SM2_CURR, SM2_ALL, '<li class="[class]"><a href="[url]" class="[class]"><span><img src="' . WB_URL . '/media/flags/[menu_title].png" name="[page_title]"></span></a>', "</li>", '<ul>', '</ul>', true, '<ul>');
$sFlagmenu = ob_get_contents();
ob_end_clean();
echo $sFlagmenu;
?>
<?php
// no direct file access
if(count(get_included_files())==1) header("Location: ../index.php",TRUE,301);
?><!DOCTYPE html>
<html lang="bg">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php
if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else
{ echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<?php
$includefile = WB_PATH . '/modules/wbstats/count.php';
if (file_exists($includefile)) {
include_once $includefile;
}
if (function_exists('simplepagehead')) {
simplepagehead('/', 1, 0, 1);
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/css/fitgrid.css" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/css/styles.css" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/css/sm-core-css.css" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/css/sm-clean.css" />
<link rel="stylesheet" type="text/css" href="<?php echo WB_URL;?>/include/font-awesome/css/font-awesome.css" />
<?php
register_frontend_modfiles('css');
register_frontend_modfiles('jquery');
register_frontend_modfiles('js');
// buffering contents
ob_start();
page_content(1);
$page_content_1 = ob_get_contents();
ob_end_clean();
if(defined('TOPIC_BLOCK2') AND TOPIC_BLOCK2 != '') {
$page_content_2 = TOPIC_BLOCK2;
} else {
ob_start();
page_content(2);
$page_content_2 = ob_get_contents();
ob_end_clean();
}
ob_start();
page_content(3);
$page_content_3 = ob_get_contents();
ob_end_clean();
?>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR;?>/js/jquery.sticky.js"></script>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR;?>/js/jquery.smartmenus.min.js"></script>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR;?>/js/jquery.backstretch.min.js"></script>
<script type="text/javascript">
$(function() {
$('#main-menu').smartmenus({
mainMenuSubOffsetX: -1,
mainMenuSubOffsetY: 4,
subMenusSubOffsetX: 6,
subMenusSubOffsetY: -6
});
});
</script>
<script>
if (window.innerWidth >=960) {
$(window).load(function(){
$("#main-nav").sticky({ topSpacing: 0 });
});
}
</script>
<?php
$headerbild_id = "0";
$takeit=false;
if (file_exists(WB_PATH . '/media/headerbilder/header_0.jpg')) {
$headerbild_id = 0;
$takeit = true;
}
if (PARENT == 0) {
if (file_exists(WB_PATH . '/media/headerbilder/header_' . PAGE_ID . '.jpg')) {
$headerbild_id = PAGE_ID;
$takeit = true;
}
} else {
if (file_exists(WB_PATH . '/media/headerbilder/header_' . PARENT . '.jpg')) {
$headerbild_id = PARENT;
$takeit = true;
}
if (file_exists(WB_PATH . '/media/headerbilder/header_' . PAGE_ID . '.jpg')) {
$headerbild_id = PAGE_ID;
$takeit = true;
}
}
?>
</head>
<body>
<header>
<div class="center">
<div class="row">
<div class="logo">
<a href="<?php echo WB_URL; ?>"><img src="<?php echo TEMPLATE_DIR; ?>/logo.png" width="210" height="58" alt="<?php echo WEBSITE_TITLE; ?>" border="0" /></a>
</div>
<div class="fg7 meta fg-no-mobile">
<?php
show_menu2(
$aMenu = 2,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_MAX+1,
$aOptions = SM2_ALL,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul>',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<ul>'
);?>
</div>
</div>
</div>
</header>
<nav role="navigation" id="main-nav">
<div class="center">
<div class="row orow">
<input id="main-menu-state" type="checkbox" />
<label class="main-menu-btn" for="main-menu-state">
<span class="main-menu-btn-icon"></span> Toggle main menu visibility
</label>
<?php show_menu2(
$aMenu = 1,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul>',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<ul id="main-menu" class="sm sm-clean">'
);?>
</div>
</div>
</nav>
<?php if ($page_content_3 !='') { ?>
<div>
<?php echo $page_content_3; ?>
</div>
<?php } else { ?>
<div class="schmuckbild fg-no-mobile">
</div>
<?php } ?>
<div class="main">
<div class="center">
<div class="row">
<?php if ($page_content_2 != '') { ?>
<div class="fg9">
<article>
<h1><?php echo PAGE_TITLE; ?></h1>
<?php echo $page_content_1; ?>
</article>
</div>
<div class="fg3">
<aside>
<?php echo $page_content_2; ?>
</aside>
</div>
<?php } else { ?>
<div class="fg12">
<article>
<h1><?php echo PAGE_TITLE; ?></h1>
<?php echo $page_content_1; ?>
</article>
</div>
<?php } ?>
</div>
<div class="row fg-no-desktop">
<div class="fg12 meta">
<?php
show_menu2(
$aMenu = 2,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_MAX+1,
$aOptions = SM2_ALL,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul>',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<ul>'
);?>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
var $mainMenuState = $('#main-menu-state');
if ($mainMenuState.length) {
// animate mobile menu
$mainMenuState.change(function(e) {
var $menu = $('#main-menu');
if (this.checked) {
$menu.hide().slideDown(250, function() { $menu.css('display', ''); });
} else {
$menu.show().slideUp(250, function() { $menu.css('display', ''); });
}
});
// hide mobile menu beforeunload
$(window).bind('beforeunload unload', function() {
if ($mainMenuState[0].checked) {
$mainMenuState[0].click();
}
});
}
});
</script>
<?php if ($takeit==true) { ?>
<script>
$(".schmuckbild").backstretch(["<?php echo WB_URL . '/media/headerbilder/header_' . $headerbild_id . '.jpg';?>"]);
</script>
<?php } ?>
<?php page_footer(); ?>
</body>
</html>
I couldn't use the standard WB selector (wherever I put it it crashed the template)
// fetch page language
$sPageLang = strtolower(isset($wb->page) || ($wb instanceof frontend) ? $wb->page['language'] : 'EN');
// fetch page_id for loaded page, you need it for canonical
$iPageId = (isset($wb->page) || ($wb instanceof frontend) ? $wb->page['page_id'] :(PAGE_ID ?? ($page_id ?? 0)));
// Dummy function if Lingual Snippet not loaded
if (!function_exists('LangPageId')) {
function LangPageId() {
global $iPageId;
return $iPageId;
}
}
// get the page_id from language in level 0 for a given language
if (\function_exists('getLangStartPageIds')) {
$iLangStartPage = (int)(getLangStartPageIds($sPageLang));
}
// get the page trail from languages in level 0 as array
$aLangStartPageIds = [];
if (\function_exists('getLangStartPageIds')) {
$aLangStartPageIds = getLangStartPageIds();
}
// to show flags in frontend
$iMultiLang = 0;
$iLangFound = count($aLangStartPageIds);
switch ($iLangFound):
case 0:
$iMultiLang = 1;
break;
case 1:
$iMultiLang = 0;
break;
default:
$iMultiLang = 1;
endswitch;
$sMultiLang = '';
if (function_exists('language_menu')) {
$sMultiLang = language_menu('png', false);
$iMultiLang = intval(!empty($sMultiLang) ? 1 : $iMultiLang);
}
echo '<div >';
echo '<span id="lang" style="height: 2.925em;">';
if (trim($sMultiLang) != '') {
echo $sMultiLang;
}
echo '</span>';
echo '</div>';
.langmenu { margin-left :auto; margin-right :auto; padding :5px 24px; min-height :0.6em; text-align :left; display :table-cell; vertical-align :middle; }
.langmenu {position: relative; }
.langmenu img { border :0; max-width: 100%; width: 34px; }
.langmenu a.default img { filter :alpha(opacity=100); -moz-opacity :1.0; opacity :1.0; }
.langmenu a:hover img,
.langmenu a.current img { filter :alpha(opacity=30); -moz-opacity :.3; opacity :.3; text-decoration: none; }
.langmenu a:hover { text-decoration: none; }
<style>
* {
margin: 0;
padding: 0;
}
body {
background: #e6ebf1;
/* height: 40vh; */
}
.slider-area h3 {
text-align: center;
/* font-family: impact; */
/* font-size: 60px; */
/* font-weight: 500; */
/* text-transform: uppercase; */
/* letter-spacing: 2px; */
margin: 50px 0 50px 0;
/* color: #fff; */
}
.wrapper {
display: flex;
width: 100%;
margin: 0 auto;
overflow: hidden;
border-radius: 110px;
padding: 1.5rem;
background: #e6ebf1;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.item {
animation: animate 25s alternate linear infinite;
max-width: 100%;
height: auto;
}
.container:hover .item {
animation-play-state: paused;
}
@keyframes animate {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-400px, 0, 0);
}
}
@media (max-width:767px) {
.slider-area h2 {
font-size: 30px;
}
.wrapper {
width: 95%;
border-radius: 0;
padding: 0;
}
}
</style>
<div class="slider-area">
<h3>Our partners</h3>
<div class="wrapper">
<div class="item"><img alt="" src="https://skylog.bg/media/logotest1.png"></div>
<div class="item"><img alt="" src="https://skylog.bg/media/logotest2.png"></div>
<div class="item"><img alt="" src="https://skylog.bg/media/logotest3.png"></div>
<div class="item"><img alt="" src="https://skylog.bg/media/logotest4.png"></div>
<div class="item"><img alt="" src="https://skylog.bg/media/logotest1.png"></div>
</div>
</div>
<br>
Code: [Select]<?php $result999 = mysqli_query($conn, "SELECT * FROM tb_art_cat WHERE id_categoria_articulo <> 1 ORDER BY id_categoria_articulo ASC"); ?>
$conn = mysqli_connect("name of the host","your_db_username","your_db_password","used_database");
"select * from tb_art_cat where id_categoria_articulo <> 1 order by id_categoria_articulo asc");
"SELECT * from `tb_art_cat` WHERE `id_categoria_articulo` <> 1 ORDER BY `id_categoria_articulo` ASC");