Jump to content

dgnzcn

Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by dgnzcn

  1. Yes, maybe i can. But it is php code related problem i think, then i post here.
  2. Yes it is mine, but just like similar this : <div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div> is there any way without save to db??
  3. hi, i have an admin page, i created with layout drag&drop page and i send it to database like this: <div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div> how can i include php files instead of these text. my full frontpage html codes. <!DOCTYPE html> <!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="tr-TR" lang="tr-TR"> <!--<![endif]--> <head> <meta name="description" content="Test Page"> <meta name="copyright" content="x © 2016"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Test Page</title> <link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="assets/css/MegaNavbar.css"/> <link rel="stylesheet" type="text/css" href="assets/css/skins/navbar-inverse.css" title="inverse"> <link rel="stylesheet" type="text/css" href="assets/css/animation/animation.css" title="inverse"> <link rel="shortcut icon" href="./favicon.ico" /> <script src="assets/plugins/jquery/jquery-1.11.1.min.js"></script> <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script> <!-- GALERİ SAYFASI İÇİN --> <script src="assets/plugins/fotogaleri/jquery.bsPhotoGallery.js"></script> <link rel="stylesheet" href="assets/plugins/fotogaleri/jquery.bsPhotoGallery.css"> </head> <body> <div class="container"> <header role="banner"> <img class="" id="logo-main" src="uploads/57c586c5cb907.jpg" width="100%" title="x" alt="x"> <nav class="navbar navbar-inverse swing no-border-radius xs-height75" id="main_navbar" role="navigation"> <!-- nav class="navbar navbar-default HingeUpToDown --> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <ul class="nav navbar-nav navbar-left"> <li><a href="#" class="toggle_fixing"><i class="fa fa-chevron-down"></i> </a></li> </ul> <a class="navbar-brand navbar-left" href="index.php"><i class="fa fa-home"></i> Anasayfa</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="navbar-collapse-1"> <ul class="nav navbar-nav navbar-left"> <li class=''> <a href='index.php?sayfa=blog&link=blog'><i class='fa '></i> Blog</a> </li> </li> <li class=''> <a href='index.php?sayfa=detay&link=nikon-d700-fx-1'><i class='fa fa-align-justify'></i> Nikon D700</a> </li> </li> <li class='active'> <a href='index.php?sayfa=detay&link=test-page'><i class='fa fa-align-justify'></i> Test Page</a> </li> </li> <li class=''> <a href='index.php?sayfa=detay&link=karsinizda-d700-efsanesi-1'><i class='fa '></i> KARŞINIZDA D700</a> </li> </li> </ul> <ul class="nav navbar-nav navbar-right"> <!-- search form --> <form class="navbar-form-expanded navbar-form navbar-left visible-lg-block visible-md-block visible-xs-block" role="search" method="POST" action="index.php?sayfa=arama-sonucu"> <div class="input-group"> <input type="text" class="form-control" data-width="80px" data-width-expanded="170px" placeholder="Arama..." name="arama"> <span class="input-group-btn"><button class="btn btn-default" type="submit"><i class="fa fa-search"></i> </button></span> </div> </form> <li class="dropdown-grid visible-sm-block"> <a data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"><i class="fa fa-search"></i> </a> <div class="dropdown-grid-wrapper" role="menu"> <ul class="dropdown-menu col-sm-6"> <li> <form class="no-margin"> <div class="input-group"> <input type="text" class="form-control"> <span class="input-group-btn"><button class="btn btn-default" type="button"> <i class="fa fa-search"></i></button></span> </div> </form> </li> </ul> </div> </li> <li class="dropdown-full"> <a data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"><i class="fa fa-envelope"></i> İletişim<span class="caret"></span></a> <ul class="dropdown-menu"> <li class="col-xs-4 col-sm-4 col-md-3 col-lg-3"> <h3 style="padding-top:0px; border-bottom: 1px solid #e6e6e6;"><i class="fa fa-envelope"></i> İletişim</h3> <address> <br> <strong>x</strong><br> 1. Sanayi Sitesi 2830 Sk. No:24/2<br> Kat:2 D.211 1.Sanayi Sitesi / İzmir<br> <abbr title="Phone"><span class="glyphicon glyphicon-phone-alt"></span> Tel1:</abbr> <a href="tel:02324492746"> 0 (232) 449 2746<br></a> <abbr title="Phone"><span class="glyphicon glyphicon-phone-alt"></span> Tel2:</abbr> <a href="tel:0"> 0 <br></a> <abbr title="Phone"><span class="glyphicon glyphicon-phone"></span> Gsm1:</abbr> <a href="tel:05325014596"> 0 (532) 501 4596<br></a> <abbr title="Phone"><span class="glyphicon glyphicon-phone"></span> Gsm2:</abbr> <a href="tel:0"> 0 <br></a> </address> <address> <strong><span class="glyphicon glyphicon-envelope"></span> E-Posta:</strong><br> <a href="mailto:bilgi@sanalrenk.com">bilgi@sanalrenk.com</a> </address> </li> <li class="col-xs-8 col-sm-8 col-md-4 col-lg-4"> <div class="row"> <form class="" role="form"> <div class="col-xs-6 col-md-6 "> <div class="form-group"> <input type="text" class="form-control" id="inputName" name="inputName" placeholder="İsminizi yazınız"> </div> </div> <div class="col-xs-6 col-md-6 "> <div class="form-group"> <input type="password" class="form-control" id="inputEmail" name="inputEmail" placeholder="Eposta yazınız"> </div> </div> <div class="col-xs-12 col-md-12 "> <div class="form-group"> <input type="password" class="form-control" id="inputSubject" name="inputSubject" placeholder="Konu yazınız ..."> </div> </div> <div class="col-xs-12 col-md-12 "> <div class="form-group"> <textarea style="resize: none;" class="form-control" id="inputMessage" name="inputMessage" placeholder="Mesajınızı yazınız" rows="4"></textarea> </div> </div> <div class="form-group col-sm-offset-3 col-sm-9"> <button class="btn btn-default pull-right" type="submit"><i class="fa fa-chevron-circle-right"></i> Gönder</button> </div> </form> </div> </li> <li class="col-xs-12 col-sm-12 col-md-5 col-lg-5"> <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6361714.258352032!2d30.75115952496783!3d38.87124507767135!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14b0155c964f2671%3A0x40d9dbd42a625f2a!2zVMO8cmtpeWU!5e0!3m2!1str!2str!4v1472040606714"></iframe> </div> </li> </ul> </li> <!-- dropdown grid --> </ul> </div> </div> </nav> </header> </div> <div class="container"> <div class="row"> <div class="panel-body"><div class="row"><div class="column col-md-4 col-sm-4 col-xs-4"><!--gm-editable-region-->In this div tags i need include Leftmenu-Module.php<!--/gm-editable-region--></div><div class="column col-md-8 col-sm-8 col-xs-8"><!--gm-editable-region-->In this div tags i need include Gallery-Module.php<!--/gm-editable-region--></div></div><div class="row"></div><hr> <!-- Footer --> <footer> <div class="row"> <div class="col-lg-12"> x © 2016 </div> </div> </footer> </div> </div> <script> //Start navbar toggle fix top bottom $(document).on('click', '.toggle_fixing', function(e) { e.preventDefault(); if ($('#main_navbar').hasClass('navbar-fixed-top')) { $('#main_navbar').toggleClass('navbar-fixed-bottom navbar-fixed-top'); $(this).children('i').toggleClass('fa-chevron-down fa-chevron-up'); } else { $('#main_navbar').toggleClass('navbar-fixed-bottom'); $(this).children('i').toggleClass('fa-chevron-down fa-chevron-up'); if ($('#main_navbar').parent('div').hasClass('container')) $('#main_navbar').children('div').addClass('container').removeClass('container-fluid'); else if ($('#main_navbar').parent('div').hasClass('container-fluid')) $('#main_navbar').children('div').addClass('container-fluid').removeClass('container'); FixMegaNavbar(navHeight); } if ($('#main_navbar').hasClass('navbar-fixed-top')) {$('body').css({'margin-top': $('#main_navbar').height()+'px', 'margin-bottom': ''});} else if ($('#main_navbar').hasClass('navbar-fixed-bottom')) {$('body').css({'margin-bottom': $('#main_navbar').height()+'px', 'margin-top': ''});} }) //End navbar toggle fix top bottom //Start Fix MegaNavbar on scroll page var navHeight = $('#main_navbar').offset().top; FixMegaNavbar(navHeight); $(window).bind('scroll', function() {FixMegaNavbar(navHeight);}); function FixMegaNavbar(navHeight) { if (!$('#main_navbar').hasClass('navbar-fixed-bottom')) { if ($(window).scrollTop() > navHeight) { $('#main_navbar').addClass('navbar-fixed-top') $('body').css({'margin-top': $('#main_navbar').height()+'px'}); if ($('#main_navbar').parent('div').hasClass('container')) $('#main_navbar').children('div').addClass('container').removeClass('container-fluid'); else if ($('#main_navbar').parent('div').hasClass('container-fluid')) $('#main_navbar').children('div').addClass('container-fluid').removeClass('container'); } else { $('#main_navbar').removeClass('navbar-fixed-top'); $('#main_navbar').children('div').addClass('container-fluid').removeClass('container'); $('body').css({'margin-top': ''}); } } } //End Fix MegaNavbar on scroll page //Next code used to prevent unexpected menu close when using some components (like accordion, tabs, forms, etc), please add the next JavaScript to your page $( window ).load(function() { $(document).on('click', '.navbar .dropdown-menu', function(e) {e.stopPropagation();}); }); </script> </body> </html>
  4. i fixed it like this: $Tabid = $sonuc['id']; $ikon = $sonuc['ikon']; $isim = $sonuc['isim']; $kisa_aciklama = $sonuc['kisa_aciklama']; $aktiftab = $sonuc['aktif']; if ($aktiftab == 'evet')
  5. Hi to everyone! i write bootstrap dynamic tabs from mysql. But there was problem displaying to active tab's content if i refresh page. active tab content not displaying. but it is showing if i clicked to tabs. i checked <li class="active"> is ok, but <div class="tab-pane fade ? ?"> active in is missing, and then tab content not displaying. How can i fix issue? Thanks. ?php if($_GET['link']){ $link = $_GET['link']; } echo '<div class="row">'; echo '<div class="col-lg-12">'; echo '<ul id="myTab" class="nav nav-tabs nav-justified">'; $sorgula = "select * from tablar WHERE link = '$link' ORDER BY sira ASC"; $liste = mysqli_query($baglan, $sorgula); while ($sonuc = mysqli_fetch_assoc($liste)) { $Tabid = $sonuc['id']; $ikon = $sonuc['ikon']; $isim = $sonuc['isim']; $kisa_aciklama = $sonuc['kisa_aciklama']; $sira1[] = $sonuc['sira']; // $sira1[] değişkenine dönen tüm veriyi dizi olarak aktarır $enkucuksira = min($sira1); $enbuyuksira = max($sira1); if ($enkucuksira != $enbuyuksira) {?> <li class=""><a href="#<?php echo $Tabid;?>" data-toggle="tab"><i class="fa <?php echo $ikon;?>"></i> <?php echo $isim;?></a></li> <?php }else{?> <li class="active"><a href="#<?php echo $Tabid;?>" data-toggle="tab"><i class="fa <?php echo $ikon;?>"></i> <?php echo $isim;?></a></li> <?php }};?> </ul> <div id="myTabContent" class="tab-content"> <?php $sorgula = "select * from tablar WHERE link = '$link' ORDER BY sira ASC"; $liste = mysqli_query($baglan, $sorgula); while ($sonuc = mysqli_fetch_assoc($liste)) { $Tabid = $sonuc['id']; $ikon = $sonuc['ikon']; $isim = $sonuc['isim']; $kisa_aciklama = $sonuc['kisa_aciklama']; $sira1[] = $sonuc['sira']; // $sira1[] değişkenine dönen tüm veriyi dizi olarak aktarır $enkucuksira = min($sira1); $enbuyuksira = max($sira1); if ($enkucuksira != $enbuyuksira) {?> <div class="tab-pane fade" id="<?php echo $Tabid;?>"> <h4> <?php echo $isim;?></h4> <p><?php echo $kisa_aciklama = html_entity_decode($kisa_aciklama, ENT_QUOTES, "utf-8");?></p> </div> <?php }else{?> <div class="tab-pane fade active in" id="<?php echo $Tabid;?>"> <h4><?php echo $isim;?></h4> <p><?php echo $kisa_aciklama = html_entity_decode($kisa_aciklama, ENT_QUOTES, "utf-8");?></p> </div> <?php }};?> <hr> </div> </div> </div>
  6. hi, thanks for the great answers. both codes works fine but i choice last short codes,. really thanks. i think my false, i am not using these: .find(":input").prop("disabled", true) and this $("." + this.value + " :input").prop("disabled", false)
  7. hi, i have one text box and one drop down menu controlled two radio buttons. this value="hariciLink" is posting values, but this value="dahiliLink" is posting values is empty. Why, where is my wrong? <script type="text/javascript"> $(document).ready(function(){ $('input[type="radio"]').click(function(){ if($(this).attr("value")=="hariciLink"){ $(".box").not(".hariciLink").hide(); $(".hariciLink").fadeIn(300); } if($(this).attr("value")=="dahiliLink"){ $(".box").not(".dahiliLink").hide(); $(".dahiliLink").fadeIn(300); } }); }); </script> <div class="form-group"> <label for="ikon" class="col-lg-2 control-label">Bağlantı</label> <div class="col-lg-10"> <div class="radio"> <label><input type="radio" name="link" value="hariciLink" required> Harici Link</label> </div> <div class="radio"> <label><input type="radio" name="link" value="dahiliLink" required> Dahili Link</label> </div> </div> </div> <div class="box form-group dahiliLink"> <label for="link" class="col-lg-2 control-label">Seçiniz</label> <div class="col-lg-10 selectContainer"> <select name="link" value="" class="form-control" required> <option value="black">Black</option> <option value="blue">Blue</option> <option value="green">Green</option> <option value="orange">Orange</option> <option value="red">Red</option> <option value="yellow">Yellow</option> <option value="white">White</option> </select> </div> </div> <div class="box form-group hariciLink"> <label for="link" class="col-lg-2 control-label">Link</label> <div class="col-lg-10"> <input type="text" name="link" placeholder="Örnek: http://www.websayfam.com" class="form-control" required/> </div> </div>
  8. not working friend. thanks for your reply. i fix like this: <div id="wowslider-container1"> <div class="ws_images"> <ul> <?php do { ?> <li><img src="uploads/<?php echo $row_louvers['foto_dosya']; ?>" alt="1" title="<?php echo $row_louvers['foto_baslik']; ?>" id="wows1_0"/></li> <?php } while ($row_louvers = mysql_fetch_assoc($louvers)); ?> </ul> </div> <div class="ws_bullets"> <div> <?php do { ?><a href="#" title="<?php echo $row_Recordset1['foto_baslik']; ?>"><span> <img src="uploads/<?php echo $row_Recordset1['foto_dosya']; ?>" alt="1" width="117" height="48"/></span></a><?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </div> </div> <div class="ws_script" style="position:absolute;left:-99%"> <div class="ws_shadow"></div>
  9. thanks again for reply, but giving error message like this: Parse error: syntax error, unexpected '$counter' (T_VARIABLE), expecting ',' or ';' in
  10. thanks for your reply, but i can not understand what you mean because my english is not good enought. sory for this. here is my codes, if you can edit for work correctly, then i will be say thanks.. <div id="wowslider-container1"> <div class="ws_images"> <ul> <?php do { ?> <li><img src="uploads/<?php echo $row_louvers['foto_dosya']; ?>" alt="1" title="<?php echo $row_louvers['foto_baslik']; ?>" id="wows1_0"/></li> </ul> </div> <div class="ws_bullets"> <div> <a href="#" title="THUMBNAIL"><span> <img src="uploads/<?php echo $row_louvers['foto_dosya']; ?>" alt="1" width="117" height="48"/></span></a></div><?php } while ($row_louvers = mysql_fetch_assoc($louvers)); ?> </div> <div class="ws_script" style="position:absolute;left:-99%"> <div class="ws_shadow"></div> </div>
  11. thanks again. your answer worked forme. i have another problem. repeat region code need work together with main image and THUMBNAIL image. how can i configure it. <div id="wowslider-container1"> <div class="ws_images"> <ul> <?php do { ?> <li><img src="uploads/<?php echo $row_louvers['foto_dosya']; ?>" alt="1" title="<?php echo $row_louvers['foto_baslik']; ?>" id="wows1_0"/></li> </ul> </div> <div class="ws_bullets"> <div> <a href="#" title="THUMBNAIL"><span> <img src="uploads/<?php echo $row_louvers['foto_dosya']; ?>" alt="1" width="117" height="48"/></span></a> <?php } while ($row_louvers = mysql_fetch_assoc($louvers)); ?> </div> </div>
  12. hi friends, i shared my slider show file, but can not include it. only slider can not include message showing. all paths and variables is correct for that file. i share screenshoot of my database. can you look please ? <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $colname_slider_cek = "-1"; if (isset($_GET['sayfa'])) { $colname_slider_cek = $_GET['sayfa']; } mysql_select_db($database_dene_test, $dene_test); $query_slider_cek = sprintf("SELECT * FROM slider_ekle WHERE sayfa = %s ORDER BY sira ASC", GetSQLValueString($colname_slider_cek, "text")); $slider_cek = mysql_query($query_slider_cek, $dene_test) or die(mysql_error()); $row_slider_cek = mysql_fetch_assoc($slider_cek); $totalRows_slider_cek = mysql_num_rows($slider_cek); mysql_select_db($database_dene_test, $dene_test); $query_Recordset1 = "SELECT * FROM slider ORDER BY foto_sira ASC"; $Recordset1 = mysql_query($query_Recordset1, $dene_test) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <?php if($row_slider_cek['slider_name'] == ['LOUVERS']){ include("slider/louvers/louvers.php"); }else{ echo 'slider can not include'; }?> </body> </html> <?php mysql_free_result($slider_cek); mysql_free_result($Recordset1); ?>
  13. hi thanks for answer. i wanna list all of same aitlik values, but query is emty. her is my full codes. <?php session_start();?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $colname_kategori_cek = "-1"; if (isset($_GET['sayfa'])) { $colname_kategori_cek = $_GET['sayfa']; } mysql_select_db($database_dene_test, $dene_test); $aitlik = mysql_real_escape_string($_SESSION['aitlik']); $query_kategori_cek = sprintf("SELECT * FROM menu_bilgi2 WHERE aitlik = '$aitlik' and sayfa = %s ORDER BY sira ASC", GetSQLValueString($colname_kategori_cek, "text")); $kategori_cek = mysql_query($query_kategori_cek, $dene_test) or die(mysql_error()); $row_kategori_cek = mysql_fetch_assoc($kategori_cek); $totalRows_kategori_cek = mysql_num_rows($kategori_cek); ?> <?php // this sets variables in the session $_SESSION['aitlik'] = $row_kategori_cek['id']; echo $_SESSION['aitlik']; ?>
  14. hi, i try to following codes from mysql "id" value to "aitlik" session variable but giving following error . Notice: Undefined variable: row_kategori_cek in /Library/WebServer/Documents/test/cat_menu.php on line 5 <?php // this sets variables in the session $_SESSION['aitlik'] = $row_kategori_cek['id']; echo $_SESSION['aitlik']; ?>
  15. hi, i combined two js code in one, gradient slider wroking and changed codes in text area. this is ok. but gradient colors can not displaying in textarea and also horizontal and vertical menu can not changing colors and codes. what is my wrong ? <div class="export"> <textarea name="baslikrengi_<?php echo $cnt1; ?>" cols="32" class="export" id="baslikrengi_<?php echo $cnt1; ?>"><?php echo KT_escapeAttribute($row_rskayan_icerikler['baslikrengi']); ?></textarea></div> <select id="orientation" onchange="changeOrientation();"> <option value="horizontal">Horizontal</option> <option value="vertical" selected="selected">Vertical</option> </select> <div class="gradient3"></div> <script> $(document).ready(function(){ $('.gradient3').ClassyGradient({ gradient: '#00ffff 0%,#008900 30%,#f00044 70%,#0042d2 100%', onChange: function(stringGradient,cssGradient) { $('.export').val(cssGradient); } }); }); $(document).ready(function() { $('.gradient3').ClassyGradient({ gradient: '#ebf1f6 0%,#ff9cff 40%,#ff6aff 61%,#ff2db7 100%', target: '.export' }); }); function changeOrientation() { var orientation = $('#orientation :selected').val(); $('.gradient3').data('ClassyGradient').setOrientation(orientation); } </script <script> $(document).ready(function() { $('.gradient').ClassyGradient(); }); </script>
  16. yes it is defined. if there are same value for id include a file. still researcing correct code.
  17. Hi, my gallery codes working but if there a only one image it is always replay, have can i modify my codes if there are only one image replay is off. jQuery.fn.fadeSlideShow=function(options){return this.each(function(){settings=jQuery.extend({width:'100%', height:'100%',speed:2400,interval:1000,ListElement:'fssList',ListLi:'fssLi',ListLiActive:'fssActive',addListToId:false,allowKeyboardCtrl:true,autoplay:true},options);jQuery(this).css({width:settings.width,height:settings.height,position:'fixed',overflow:'hidden'});jQuery('> *',this).css({position:'fixed',width:settings.width,height:settings.height});Slides=jQuery('> *',this).length;Slides=Slides-1;ActSlide=Slides;jQslide=jQuery('> *',this);fssThis=this;autoplay=function(){intval=setInterval(function(){jQslide.eq(ActSlide).fadeOut(settings.speed);if(settings.ListElement){setActLi=(Slides-ActSlide)+1;if(setActLi>Slides){setActLi=0;} jQuery('#'+settings.ListElement+' li').removeClass(settings.ListLiActive);jQuery('#'+settings.ListElement+' li').eq(setActLi).addClass(settings.ListLiActive);} if(ActSlide<=0){jQslide.fadeIn(settings.speed);ActSlide=Slides;}else{ActSlide=ActSlide-1;}},settings.interval);if(settings.PlayPauseElement){jQuery('#'+settings.PlayPauseElement).html(settings.PauseText);}} stopAutoplay=function(){clearInterval(intval);intval=false;if(settings.PlayPauseElement){jQuery('#'+settings.PlayPauseElement).html(settings.PlayText);}} jumpTo=function(newIndex){if(newIndex<0){newIndex=Slides;} else if(newIndex>Slides){newIndex=0;} if(newIndex>=ActSlide){jQuery('> *:lt('+(newIndex+1)+')',fssThis).fadeIn(settings.speed);}else if(newIndex<=ActSlide){jQuery('> *:gt('+newIndex+')',fssThis).fadeOut(settings.speed);} ActSlide=newIndex;if(settings.ListElement){jQuery('#'+settings.ListElement+' li').removeClass(settings.ListLiActive);jQuery('#'+settings.ListElement+' li').eq((Slides-newIndex)).addClass(settings.ListLiActive);}} if(settings.ListElement){i=0;li='';while(i<=Slides){if(i==0){li=li+'';}else{li=li+'';} i++;} List='<ul id="'+settings.ListElement+'">'+li+'<\/ul>';if(settings.addListToId){jQuery('#'+settings.addListToId).append(List);}else{jQuery(this).after(List);} jQuery('#'+settings.ListElement+' a').bind('click',function(){index=jQuery('#'+settings.ListElement+' a').index(this);stopAutoplay();ReverseIndex=Slides-index;jumpTo(ReverseIndex);return false;});} if(settings.PlayPauseElement){if(!jQuery('#'+settings.PlayPauseElement).css('display')){jQuery(this).after('');} if(settings.autoplay){jQuery('#'+settings.PlayPauseElement).html(settings.PauseText);}else{jQuery('#'+settings.PlayPauseElement).html(settings.PlayText);} jQuery('#'+settings.PlayPauseElement).bind('click',function(){if(intval){stopAutoplay();}else{autoplay();} return false;});} if(settings.NextElement){if(!jQuery('#'+settings.NextElement).css('display')){jQuery(this).after('<a href="#" id="'+settings.NextElement+'">'+settings.NextElementText+'<\/a>');} jQuery('#'+settings.NextElement).bind('click',function(){nextSlide=ActSlide-1;stopAutoplay();jumpTo(nextSlide);return false;});} if(settings.PrevElement){if(!jQuery('#'+settings.PrevElement).css('display')){jQuery(this).after('<a href="#" id="'+settings.PrevElement+'">'+settings.PrevElementText+'<\/a>');} jQuery('#'+settings.PrevElement).bind('click',function(){prevSlide=ActSlide+1;stopAutoplay();jumpTo(prevSlide);return false;});} if(settings.allowKeyboardCtrl){jQuery(document).bind('keydown',function(e){if(e.which==39){nextSlide=ActSlide-1;stopAutoplay();jumpTo(nextSlide);}else if(e.which==37){prevSlide=ActSlide+1;stopAutoplay();jumpTo(prevSlide);}else if(e.which==32){if(intval){stopAutoplay();} else{autoplay();} return false;}});} if(settings.autoplay){autoplay();}else{intval=false;}});};
  18. hi i write a code but not working. i wanna do this: id row if have 2 or more same value include a file but not working. where is my wrong? <?php if($js_inc["id"] >= 2){ include "fullscreenslideshow/inc.js.php"; }?>
  19. hi, i am building a website, everything was ok except following image gallery. http://www.oggi.com.tr/tr/kategori/koleksiyonlar i mainly do it that gallery but i can not build and can not integrate child images. gallery images and their child images will come from database. your codes will integrate to my pages, my pages is ready. just need gallery codes and database links. then i will integrate it to my page. website link structure is like this: index.php?git=detay&id=$id how much money do you make for this similar gallery for me : http://www.oggi.com.tr/tr/kategori/koleksiyonlar thanks.
  20. hi thanks for answer but i can not edit my codes, it is too complex for me.
  21. hi, i have this menu code, have can i edit this codes with seo friendly URL currently link structure is : domainname.com/index.php?git=detay&id=771 i wanna create this SEO url: domainname.com/pagename/page my codes: <?php //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($aitlik) { $select = "select * from menu_bilgi2 where aitlik = $aitlik ORDER BY sira asc"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini döndürüyorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar görünecek. Veri tabanında da ana başlıkların aitliklerini -1 olarak atamıştık*/ function menuGetir($aitlik = -1,&$menuler) { $select = "select * from menu_bilgi2 where aitlik = $aitlik order by sira ASC"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } while(($veri=mysql_fetch_array($sorgu))) { if($veri['urun_mu']==1) { //urun_id sini $veri['link'] ile değil $veri['id'] ile karşılaştırmalıyız. Aksi taktider ürün bulunmaz. $select2 = "select * from menu_bilgi2 where id ='".$veri['id']."'"; $sorgu2 = mysql_query($select2); $veri2=mysql_fetch_array($sorgu2); // bu satırda linki hangi sayfaya verdiysen yolBul() fonksiyonunu da o sayafada kullanmalısın. //Ben yine bulunduğum sayfaya(index.php) yönlendirdiğim için fonksiyonu bu sayfada çağırdım. $menuler .= "<li><a href='index.php?git=detay&id=".$veri2['id']."'>".$veri['baslik']."</a>\n"; } else { $menuler .= "<li><a href='".$veri['link']."'>".$veri['baslik']."</a>\n"; } if(varmisinYokmusun($veri['id'])) { //Varım diyor $menuler .= "<ul>\n"; menuGetir($veri['id'],$menuler); $menuler .= "</ul>\n</li>\n"; } else { //Yokum diyorrrrrrrrrrr $menuler .= "</li>\n"; } } } //YOL BULLLLLLLLLLLLLLLLLLLL function yolBul($id,&$konum) { $select = "select * from menu_bilgi2 where id =".$id; $sorgu = mysql_query($select); if(!$sorgu) { return false; } $veri=mysql_fetch_array($sorgu); if($veri['aitlik']!=-1) { //Eğer aitlik -1 değilse herhangi bir linkin alt linki demektir. //Bu yüzden ait olduğu linkin id sini (aitlik) fonksiyona göndererek //Onunda ait olduğu linki buluyorum $menu_bilgi = array("id"=>$veri["id"],"ad"=>$veri['baslik']); array_push($konum,$menu_bilgi); yolBul($veri['aitlik'],$konum); } else { $menu_bilgi = array("id"=>$veri["id"],"ad"=>$veri['baslik']); array_push($konum,$menu_bilgi); } } //YOL BULLLLLLLLLLLLLLLLLLL SONUUUUUU ?>
  22. is there any coding issue in my script?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.