Z

Onbaşı
04 Ekim 2009
Tarihinde Katıldı
Takip Ettikleri
0 üye
Görüntülenme (?)
5 (Bu ay: 0)
Gönderiler Hakkında
Z
10 yıl
Çoklu Resim Atan İletişim Formu Kendi Yapımım Denenmiştir!!!
contact_me.php İçinde Olacak Kodlar
<?php 
if($_POST)
{
$to_email = "Size Gelecek Olan E Posta Adresini Yazınız Örnek Gidecek Mail Sizinmail@sizinmail.com"; //Recipient email, Replace with own email here
$from_email = "Mail Geldiğinde Görünecek E Mail Örnek İnfo@siteniz.com"; //From email address (eg: no-reply@YOUR-DOMAIN.com)

//check if its an ajax request, exit if not
if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {
$output = json_encode(array( //create JSON data
'type'=>'error',
'text' => 'Maalesef Talep Ajax POST Olmalı'
));
die($output); //exit script outputting json data
}

//Sanitize input data using PHP filter_var().
$user_name = filter_var($_POST["user_name"], FILTER_SANITIZE_STRING);
$sehir = filter_var($_POST["sehir"], FILTER_SANITIZE_STRING);
$user_email = filter_var($_POST["user_email"], FILTER_SANITIZE_EMAIL);
$country_code = filter_var($_POST["country_code"], FILTER_SANITIZE_NUMBER_INT);
$phone_number = filter_var($_POST["phone_number"], FILTER_SANITIZE_NUMBER_INT);
$subject = filter_var($_POST["subject"], FILTER_SANITIZE_STRING);
$message = filter_var($_POST["msg"], FILTER_SANITIZE_STRING);

//additional php validation
if(strlen($user_name)<4){ // If length is less than 4 it will output JSON error.
$output = json_encode(array('type'=>'error', 'text' => 'İsim Çok Kısa Veya Boş!'));
die($output);
}
if(strlen($sehir)<4){ // If length is less than 4 it will output JSON error.
$output = json_encode(array('type'=>'error', 'text' => 'Sehir Çok Kısa Veya Boş!'));
die($output);
}
if(!filter_var($user_email, FILTER_VALIDATE_EMAIL)){ //email validation
$output = json_encode(array('type'=>'error', 'text' => 'Lütfen Geçerli Bir E-Posta Adresi Giriniz!'));
die($output);
}
if(!filter_var($country_code, FILTER_VALIDATE_INT)){ //check for valid numbers in country code field
$output = json_encode(array('type'=>'error', 'text' => 'Telefon Ülke Kodunu Lütfen Giriniz! Örnek : +90!'));
die($output);
}
if(!filter_var($phone_number, FILTER_SANITIZE_NUMBER_FLOAT)){ //check for valid numbers in phone number field
$output = json_encode(array('type'=>'error', 'text' => 'Telefon Numarasının Tek Basamağını Giriniz'));
die($output);
}
if(strlen($subject)<3){ //check emtpy subject
$output = json_encode(array('type'=>'error', 'text' => 'Lütfen Konu Gereklidir Boş Bırakmayınız!'));
die($output);
}
if(strlen($message)<3){ //check emtpy message
$output = json_encode(array('type'=>'error', 'text' => 'Çok Kısa Bir Mesaj! Lütfen Dolgun Mesaj Yazınız!'));
die($output);
}

//email body
$message_body = "\nFirma Ismi : ".$user_name."\nSehir : " .$sehir."\nGonderen E-Mail Adresi : ".$user_email."\nGonderenin Telefon Numarasi : (".$country_code.") ". $phone_number."\nIstenilen Talep : " .$message ;

### Attachment Preparation ###
$file_attached = false;
$file_attached1 = false;
$file_attached2 = false;
$file_attached3 = false;
$file_attached4 = false;
$file_attached5 = false;
if(isset($_FILES['file_attach'])) //check uploaded file
if(isset($_FILES['file_attach1'])) //check uploaded file
if(isset($_FILES['file_attach2'])) //check uploaded file
if(isset($_FILES['file_attach3'])) //check uploaded file
if(isset($_FILES['file_attach4'])) //check uploaded file
if(isset($_FILES['file_attach5'])) //check uploaded file
{
//get file details we need
$file_tmp_name = $_FILES['file_attach']['tmp_name'];
$file_name = $_FILES['file_attach']['name'];
$file_size = $_FILES['file_attach']['size'];
$file_type = $_FILES['file_attach']['type'];
$file_error = $_FILES['file_attach']['error'];
$file_name1 = $_FILES['file_attach1']['name'];
$file_name2 = $_FILES['file_attach2']['name'];
$file_name3 = $_FILES['file_attach3']['name'];
$file_name4 = $_FILES['file_attach4']['name'];
$file_name5 = $_FILES['file_attach5']['name'];
$file_tmp_name1 = $_FILES['file_attach1']['tmp_name'];
$file_tmp_name2 = $_FILES['file_attach2']['tmp_name'];
$file_tmp_name3 = $_FILES['file_attach3']['tmp_name'];
$file_tmp_name4 = $_FILES['file_attach4']['tmp_name'];
$file_tmp_name5 = $_FILES['file_attach5']['tmp_name'];
$file_size1 = $_FILES['file_attach1']['size'];
$file_size2 = $_FILES['file_attach2']['size'];
$file_size3 = $_FILES['file_attach3']['size'];
$file_size4 = $_FILES['file_attach4']['size'];
$file_size5 = $_FILES['file_attach5']['size'];
$file_type1 = $_FILES['file_attach1']['type'];
$file_type2 = $_FILES['file_attach2']['type'];
$file_type3 = $_FILES['file_attach3']['type'];
$file_type4 = $_FILES['file_attach4']['type'];
$file_type5 = $_FILES['file_attach5']['type'];

//exit script and output error if we encounter any
if($file_error>0)
{
$mymsg = array(
1=>"Yüklenen Dosya Aşıyor upload_max_filesize Yönergesini php.ini",
2=>"Yüklenen Dosya Aşıyor MAX_FILE_SIZE Belirtildi Direktif HTML Formu",
3=>"Gönderilen Dosya Kısmen Yüklendi",
4=>"Hiç Bir Dosya Yüklenemedi",
6=>"Eksik Geçici Klasör" );

$output = json_encode(array('type'=>'error', 'text' => $mymsg[$file_error]));
die($output);
}

//read from the uploaded file & base64_encode content for the mail
$handle = fopen($file_tmp_name, "r");
$content = fread($handle, $file_size);
fclose($handle);
$encoded_content = chunk_split(base64_encode($content));
/////////////////////////////////////////////////////////////////////////////
$handle1 = fopen($file_tmp_name1, "r");
$content1 = fread($handle1, $file_size1);
fclose($handle1);
$encoded_content1 = chunk_split(base64_encode($content1));
/////////////////////////////////////////////////////////////////////////////
$handle2 = fopen($file_tmp_name2, "r");
$content2 = fread($handle2, $file_size2);
fclose($handle2);
$encoded_content2 = chunk_split(base64_encode($content2));
/////////////////////////////////////////////////////////////////////////////
$handle3 = fopen($file_tmp_name3, "r");
$content3 = fread($handle3, $file_size3);
fclose($handle3);
$encoded_content3 = chunk_split(base64_encode($content3));
/////////////////////////////////////////////////////////////////////////////
$handle4 = fopen($file_tmp_name4, "r");
$content4 = fread($handle4, $file_size4);
fclose($handle4);
$encoded_content4 = chunk_split(base64_encode($content4));
/////////////////////////////////////////////////////////////////////////////
$handle5 = fopen($file_tmp_name5, "r");
$content5 = fread($handle5, $file_size5);
fclose($handle5);
$encoded_content5 = chunk_split(base64_encode($content5));
//now we know we have the file for attachment, set $file_attached to true
$file_attached = true;
$file_attached1 = true;
$file_attached2 = true;
$file_attached3 = true;
$file_attached4 = true;
$file_attached5 = true;

}


if($file_attached) //continue if we have the file
if($file_attached1) //continue if we have the file
if($file_attached2) //continue if we have the file
if($file_attached3) //continue if we have the file
if($file_attached4) //continue if we have the file
if($file_attached5) //continue if we have the file
{
$boundary = md5("sanwebe.com");
$boundary1 = md5("sanwebe.com");
$boundary2 = md5("sanwebe.com");
$boundary3 = md5("sanwebe.com");
$boundary4 = md5("sanwebe.com");
$boundary5 = md5("sanwebe.com");

//header
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From:".$from_email."\r\n";
$headers .= "Reply-To: ".$user_email."" . "\r\n";
$headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n";

//plain text
$body = "--$boundary\r\n";
$body .= "Content-Type: text/plain; charset=ISO-8859-1\r\n";
$body .= "Content-Transfer-Encoding: base64\r\n\r\n";
$body .= chunk_split(base64_encode($message_body));

//attachment
$body .= "--$boundary\r\n";
$body .="Content-Type: $file_type; name=\"$file_name\"\r\n";
$body .="Content-Disposition: attachment; filename=\"$file_name\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content;

//attachment1
$body .= "--$boundary1\r\n";
$body .="Content-Type: $file_type1; name=\"$file_name1\"\r\n";
$body .="Content-Disposition: attachment1; filename1=\"$file_name1\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content1;

//attachment2
$body .= "--$boundary2\r\n";
$body .="Content-Type: $file_type2; name=\"$file_name2\"\r\n";
$body .="Content-Disposition: attachment2; filename2=\"$file_name2\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content2;

//attachment3
$body .= "--$boundary3\r\n";
$body .="Content-Type: $file_type3; name=\"$file_name3\"\r\n";
$body .="Content-Disposition: attachment3; filename3=\"$file_name3\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content3;

//attachment4
$body .= "--$boundary4\r\n";
$body .="Content-Type: $file_type4; name=\"$file_name4\"\r\n";
$body .="Content-Disposition: attachment4; filename4=\"$file_name4\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content4;

//attachment5
$body .= "--$boundary5\r\n";
$body .="Content-Type: $file_type5; name=\"$file_name5\"\r\n";
$body .="Content-Disposition: attachment5; filename5=\"$file_name5\"\r\n";
$body .="Content-Transfer-Encoding: base64\r\n";
$body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$body .= $encoded_content5;

}else{
//proceed with PHP email.
$headers = "From:".$from_email."\r\n".
'Reply-To: '.$user_email.'' . "\n" .
'X-Mailer: PHP/' . phpversion();
$body = $message_body;
}

$send_mail = mail($to_email, $subject, $body, $headers);


if(!$send_mail)
{
//If mail couldn't be sent output error. Check your PHP email configuration (if it ever happens)
$output = json_encode(array('type'=>'error', 'text' => 'Posta Göndermek Olmazdı Lütfen Php E-Posta Yapılandırmasını Kontrol Edin.'));
die($output);
}else{
$output = json_encode(array('type'=>'message', 'text' => 'Merhaba '.$user_name .' Firmamız Talebiniz E-Mail Adresimize Ulaşmıştır.'));
die($output);
}
}
?>



index.php veya contact.php De Olması Gereken Kodlar

<script type="text/javascript"> 
$(document).ready(function() {
$("#submit_btn").click(function() {

var proceed = true;
//simple validation at client's end
//loop through each field and we simply change border color to red for invalid fields
$("#contact_form input[required=true], #contact_form textarea[required=true]").each(function(){
$(this).css('border-color','');
if(!$.trim($(this).val())){ //if this field is empty
$(this).css('border-color','red'); //change border color to red
proceed = false; //set do not proceed flag
}
//check invalid email
var email_reg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
if($(this).attr("type")=="email" && !email_reg.test($.trim($(this).val()))){
$(this).css('border-color','red'); //change border color to red
proceed = false; //set do not proceed flag
}
});

if(proceed) //everything looks good! proceed...
{
//data to be sent to server
var m_data = new FormData();
m_data.append( 'user_name', $('input[name=name]').val());
m_data.append( 'sehir', $('input[name=sehir]').val());
m_data.append( 'user_email', $('input[name=email]').val());
m_data.append( 'country_code', $('input[name=phone1]').val());
m_data.append( 'phone_number', $('input[name=phone2]').val());
m_data.append( 'subject', $('select[name=subject]').val());
m_data.append( 'msg', $('textarea[name=message]').val());
m_data.append( 'file_attach', $('input[name=file_attach]')[0].files[0]);
m_data.append( 'file_attach1', $('input[name=file_attach1]')[0].files[0]);
m_data.append( 'file_attach2', $('input[name=file_attach2]')[0].files[0]);
m_data.append( 'file_attach3', $('input[name=file_attach3]')[0].files[0]);
m_data.append( 'file_attach4', $('input[name=file_attach4]')[0].files[0]);
m_data.append( 'file_attach5', $('input[name=file_attach5]')[0].files[0]);

//instead of $.post() we are using $.ajax()
//that's because $.ajax() has more options and flexibly.
$.ajax({
url: 'contact_me.php',
data: m_data,
processData: false,
contentType: false,
type: 'POST',
dataType:'json',
success: function(response){
//load json data from server and output message
if(response.type == 'error'){ //load json data from server and output message
output = '<div class="error">'+response.text+'</div>';
}else{
output = '<div class="success">'+response.text+'</div>';
}
$("#contact_form #contact_results").hide().html(output).slideDown();
}
});


}
});

//reset previously set border colors and hide all message on .keyup()
$("#contact_form input[required=true], #contact_form textarea[required=true]").keyup(function() {
$(this).css('border-color','');
$("#result").slideUp();
});
});
</script>
<link href="style2.css" rel="stylesheet" type="text/css" />
<div class="form-style" id="contact_form">
<div id="contact_results"></div>
<div id="contact_body">
<label><span>Firma İsmi <span class="required">*</span></span>
<input type="text" name="name" id="name" required="true" class="input-field"/>
</label>
<label><span>Şehir <span class="required">*</span></span>
<input type="text" name="sehir" id="sehir" required="true" class="input-field"/>
</label>
<label><span>Email <span class="required">*</span></span>
<input type="email" name="email" required="true" class="input-field"/>
</label>
<label for="subject"><span>Konu</span>
<select name="subject" class="select-field">
<option value="Genel Konu Talebi">Genel Konu Talebi</option>
<option value="Sikayet Etme Talebi">Sikayet Etme Talebi</option>
<option value="Bilgi Alma Talebi">Bilgi Alma Talebi</option>
<option value="Reklam Verme Talebi">Reklam Verme Talebi</option>
<option value="Resim Guncelleme Talebi">Resim Guncelleme Talebi</option>
<option value="Firma Guncelleme Talebi">Firma Guncelleme Talebi</option>
<option value="Firma Isim Guncelleme Talebi">Firma Isim Guncelleme Talebi</option>
</select>
</label>
<label><span>Telefon <span class="required">*</span></span>
<input type="text" name="phone1" maxlength="4" placeholder="Örnek :(+90)" required="true" class="tel-number-field"/>—<input type="text" name="phone2" placeholder="Örnek :(0542 XXX XX XX)" maxlength="15" required="true" class="tel-number-field long" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach" class="input-field" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach1" class="input-field1" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach2" class="input-field2" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach3" class="input-field3" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach4" class="input-field4" />
</label>
<label><span>Resim</span>
<input type="file" name="file_attach5" class="input-field5" />
</label>
<label for="field5"><span>Talebiniz <span class="required">*</span></span>
<textarea name="message" id="message" class="textarea-field" required="true"></textarea>
</label>
<label>
<center><span> </span><input type="submit" id="submit_btn" value="Talebimi Gönder" /></center>
</label>

</div>
Z
10 yıl
Codeintinger Nerede Yanlış Yapıyorum Acil Yardım
Contact.php

< Resime gitmek için tıklayın >

Contact.php İçindeki Kodlar

<?php echo form_open(uri_string(), array('class' => 'form-horizontal')); ?> 
<?=input('name', lang('contact_name'));?>
<?=input('Firma_Ismi', lang('Firma_Ismi'));?>
<?=input('sehir', lang('Firma_Sehir'));?>
<?=input('email', lang('contact_email'));?>
<?=input('Konu', lang('Konu'));?>
<?=input('Telefon', lang('Telefon'));?>
<?=upload('Resim', lang('Resim'));?>
<?=upload('Resim', lang('Resim1'));?>
<?=upload('Resim', lang('Resim2'));?>
<?=upload('Resim', lang('Resim3'));?>
<?=upload('Resim', lang('Resim4'));?>
<?=upload('Resim', lang('Resim5'));?>
<?=textarea('message', lang('contact_message'),'', array('rows' => 5));?>
<?=submit('submit','Gönder');?>
<?php echo form_close(); ?>


CONTROLLERS/CONTACT ICINDEKI SISTEM KODLARI

 function index() 
{
$this->form_validation->set_rules('name', lang('contact_name'), 'trim|required');
$this->form_validation->set_rules('Firma_Ismi', lang('Firma_Ismi'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim1'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim2'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim3'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim4'), 'trim|required');
$this->form_validation->set_rules('Resim', lang('Resim5'), 'trim|required');
$this->form_validation->set_rules('sehir', lang('Firma_Sehir'), 'trim|required');
$this->form_validation->set_rules('Telefon', lang('Telefon'), 'trim|required');
$this->form_validation->set_rules('Konu', lang('Konu'), 'trim|required');
$this->form_validation->set_rules('email', lang('contact_email'), 'trim|required|valid_email');
$this->form_validation->set_rules('message', lang('contact_message'), 'trim|required');
$this->load->library('upload');
$this->load->library('email');
$config['Resim'] = 'uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$this->upload->initialize($config);
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
$data['errors'] = array();
if ($this->form_validation->run())
{
$edata = array(
'Firma_Ismi' => $this->form_validation->set_value('Firma_Ismi'),
'Resim' => $this->form_validation->set_value('Resim'),
'Resim' => $this->form_validation->set_value('Resim1'),
'Resim' => $this->form_validation->set_value('Resim2'),
'Resim' => $this->form_validation->set_value('Resim2'),
'Resim' => $this->form_validation->set_value('Resim3'),
'Resim' => $this->form_validation->set_value('Resim4'),
'Resim' => $this->form_validation->set_value('Resim5'),
'sehir' => $this->form_validation->set_value('sehir'),
'Telefon' => $this->form_validation->set_value('Telefon'),
'Konu' => $this->form_validation->set_value('Konu'),
'name' => $this->form_validation->set_value('name'),
'email' => $this->form_validation->set_value('email'),
'message' => $this->form_validation->set_value('message')
);
if ($this->_send_email($edata))
{
$data['message'] = message_box(lang('contact_success'), 'success');
}
else
{
$data['message'] = message_box(lang('contact_error'), 'error');
}

$this->template->view('system/message', $data)->render();
return;
}
$this->template->set_keyword(lang('contact'));
$this->template->set_description(lang('contact') . ' - ' . get_option('site_name'));
$this->template->set_title(lang('contact') . ' - ' . get_option('site_name'));
$this->template->add_breadcrumb(lang('contact'));

$this->template->view('contact', $data)->render();
}

function _send_email($data)


BENIM SORUNUM DİĞER HERSEY ÇALIŞIYOR FAKAT UPLOAD EDERKEN YAPAMADIM YARDIM EDERSENİZ SEVİNİRİM
Z
10 yıl
Slider Galery Resim İmza Eklemek Yardım!
Arkadaşlar Öncelikle Merhaba Benim Php Css Anlayan Arkadaşlarımdan Bir Ricam İsteğim Olacak Yardımlarınızı Esirgemesseniz Çok Minnetdar Olacağım

Şimdi Benim Sorunum Slider Galery Yaptım Ve Ben Bu Sliderli Resmi Açtığımda Örnek Resimdeki Gibi Bir Sciprt Kod Varsa Yardımcı Olursanız Sevinirim!

Z
11 yıl
JQUERY MODAL YARDIM
İYİ GÜNLER ÖNCELİKLE ARKADAŞLAR BENİM TEK SORUNUM VAR

JQUERY-MODAL KULLANIYORUM SİTEMDE

RESİMLERİ GÖSTERİYORUM YAN YANA GEÇİŞLERİ YAPTIM KÖŞEYE YAZIYLA KAPAT YAPTIM FAKAT BİR TÜRLÜ

İLERİ GERİ BUTONLARINI RESİMLİ KOYAMADIM KODLARI SIRALAYIM BANA DÜZENLEYİP CEVAP YAZARSANIZ ÇOK SEVİMİRİM

jquery.modal.js KODLARI

/* 
* jQuery Modal Plugin v0.1.3
*
* Copyright (c) 2011 Richard Scarrott
*http://www.richardscarrott.co.uk
*
* Dual licensed under the MIT and GPL licenses:
*http://www.opensource.org/licenses/mit-license.php
*http://www.gnu.org/licenses/gpl.html
*
*/

(function ($, undefined) {

$.modal = function (content, options) {
$.modal._open(content, options);
};

$.extend($.modal, {

version: '0.3.0',

isInitialized: false,

isOpen: false,

defaults: {

// settings
width: 'auto',
height: 'auto',
maxWidth: 600,
maxHeight: 600,
fitViewport: true,
keepAspect: false,
modal: true,
transitionSpeed: 200,
closeText: 'close X',
extraClasses: null,
appendTo: 'body',
position: null, // [top, left],
closeSelector: '.modal-content-close',
closeKeyCode: 27, // Esc,
closeOverlay: true,
overlayOpacity: 0.5,
openSpeed: 'fast',
closeSpeed: 'fast',
className: null,
overlayClassName: null,

// callbacks
init: $.noop,
beforeOpen: $.noop,
afterOpen: $.noop,
beforeClose: $.noop,
afterClose: $.noop,
afterResize: $.noop
},

_init: function (options) {

this.options = $.extend({}, this.defaults, options);

if (!this.isInitialized) {
this._objects();
this._events();
this.options.init(this.objects);
this.isInitialized = true;
}

return;
},

// creates and adds modal to DOM
_objects: function() {

this.objects = {};

this.objects.modal = $('<div />', {
'class': 'modal'
});

this.objects.content = $('<div />', {
'class': 'modal-content'
})
.appendTo(this.objects.modal);

this.objects.closeBtn = $('<span />', {
'class': 'modal-next',
text: this.options.nextText
})
this.objects.closeBtn = $('<span />', {
'class': 'modal-close',
text: this.options.closeText
})
.appendTo(this.objects.modal);

this.objects.overlay = $('<div />', {
'class': 'modal-overlay'
})
.appendTo(this.options.appendTo);

this.objects.modal.appendTo(this.options.appendTo);

return;
},

_events: function () {

var self = this,
closeSelector = this.options.closeSelector ?
this.options.closeSelector + ', .modal-close' : '.modal-close';

this.objects.modal.delegate(closeSelector, 'click.modal', function (e) {
e.preventDefault();

self.close();

});

this.objects.overlay.bind('click.modal', function (e) {
if (self.options.closeOverlay) {
self.close();
}
});

$(window).bind('resize.modal', function () {
self.refresh();
});

$(document)
.bind('keyup.modal', function (e) {

if (e.keyCode === self.options.closeKeyCode) {
self.close();
}

});

return;
},

// appends contents and opens modal
_open: function (content, options) {

var self = this,
speed;

this._init(options);

speed = this.isOpen ? 0 : this.options.transitionSpeed;

this.objects.content.empty();

if (content) {
this.objects.content.append(content);
}

this._resetStyles();

this.objects.modal
.removeClass()
// add '.modal' back as it's been removed above (cannot just remove extraClasses, in cases where extraClasses have changed)
.addClass(this.options.extraClasses ? 'modal ' + this.options.extraClasses : 'modal')
.css(this._getPosition());

this.options.beforeOpen(this.objects);
this.objects.modal.fadeIn(speed, function () {

self.objects.modal.addClass('modal-isopen');
self.options.afterOpen(self.objects);

});

if (this.options.modal) {
this.objects.overlay.fadeTo(speed, this.options.overlayOpacity);
}

this.isOpen = true;

return;
},

refresh: function () {

if (this.isOpen) {

this._resetStyles();
this.objects.modal
.removeClass('modal-isopen')
.css(this._getPosition())
.addClass('modal-isopen')
.show();

if (this.options.modal) {
this.objects.overlay
.css('opacity', this.options.overlayOpacity)
.show();
}
}

return;
},

// updates modal with new content, options will persist
update: function (newContent, options) {

if (this.isOpen) {
this._open(newContent, $.extend(this.options, options));
}

return;
},

// helper method to indicate loading
loading: function (beforeClose) {

this._open(undefined, {
extraClasses: 'modal-isloading',
beforeClose: beforeClose || $.noop
});

return;
},

close: function (animate) {

var self = this,
speed = animate || animate === undefined ? this.options.transitionSpeed : 0;

this.options.beforeClose(this.objects);

this.objects.modal.fadeOut(speed, function () {

self._resetStyles();
self.objects.modal.removeClass('modal-isopen');
self.options.afterClose(self.objects);

});

if (this.options.modal) {
this.objects.overlay.fadeOut(speed);
}

this.isOpen = false;

return;
},

// removes all style attributes, NOTE: CSS should hide .modal by default
_resetStyles: function () {

this.objects.modal
.add(this.objects.overlay)
.attr('style', '');

return;
},

// return top, left, width and height of modal
_getPosition: function () {

var win = $(window),
doc = $(document),
options = this.options,
top,
left,
width = options.width,
height = options.height,
maxWidth = options.maxWidth,
maxHeight = options.maxHeight,
oldWidth,
oldHeight,
boxModelWidth = this.objects.modal.outerWidth(true) - this.objects.modal.width(), // padding, border, margin
boxModelHeight = this.objects.modal.outerHeight(true) - this.objects.modal.height(), // padding, border, margin
viewport = {
x: win.width() - boxModelWidth,
y: win.height() - boxModelHeight
},
scrollPos = {
x: doc.scrollLeft(),
y: doc.scrollTop()
},
centreCoords = {
x: (viewport.x / 2) + scrollPos.x,
y: (viewport.y / 2) + scrollPos.y
};

// get natural height
if (height === 'auto') {
// ensure that if we set the width to maxWidth when calculating natural height
// it's actually the smallest it'll ever be, i.e. the viewport might be smaller causing the content to be smaller
var w = maxWidth > viewport.x ? viewport.x : maxWidth;

// if container width is auto or exceeds maxwidth set to maxwidth else set to container width
this.objects.modal.width(maxWidth && width === 'auto' || maxWidth && width > maxWidth ? w : width);
height = this.objects.modal.height();
this.objects.modal.width('');
}

// get natural width
if (width === 'auto') {
var h = maxHeight > viewport.y ? viewport.y : maxHeight;
// we know here that height will bo longer be 'auto'
this.objects.modal.height(maxHeight && height > maxHeight ? h : height);
width = this.objects.modal.width();
this.objects.modal.height('');
}

// set old width to then calculate aspect (before it possibly gets skewed by maxwidth and maxheight)
oldWidth = width;
oldHeight = height;

// check maxWidth and maxHeight
width = maxWidth && width > maxWidth ? maxWidth : width;
height = maxHeight && height > maxHeight ? maxHeight : height;

// check modal fits in viewport
if (options.fitViewport) {
width = width > viewport.x ? viewport.x : width;
height = height > viewport.y ? viewport.y : height;
}

// check aspect ratio
if (options.keepAspect) {
var h = height; // current height

height = oldHeight * width / oldWidth;

// if h is greater than height then adjust width instead
if (height > h) {
width = oldWidth * h / oldHeight;
height = h;
}
}

if ($.isArray(this.options.position)) {
top = this.options.position[0];
left = this.options.position[1];
}
else {
// set coords
top = centreCoords.y - (height / 2);
left = centreCoords.x - (width / 2);

// check popup doesn't display outisde of document
if (!options.fitViewport) {
top = top < scrollPos.y ? scrollPos.y : top;
left = left < scrollPos.x ? scrollPos.x : left;
}
}

return {
width: width,
height: height,
top: top,
left: left
}
},

// removes modal from DOM
destroy: function () {

$(window).unbind('.modal');
$(document).unbind('.modal');
this.objects.modal.remove();
this.objects.overlay.remove();
this.isOpen = false;
this.isInitialized = false;

return;
}

});
$(document).ready(function() {
var divs = $('.mydivs>div');
var now = 0; // currently shown div
divs.hide().first().show(); // hide all divs except first
$("button[name=next]").click(function() {
divs.eq(now).hide();
now = (now + 1 < divs.length) ? now + 1 : 0;
divs.eq(now).show(); // show next
});
$("button[name=prev]").click(function() {
divs.eq(now).hide();
now = (now > 0) ? now - 1 : divs.length - 1;
divs.eq(now).show(); // show previous
});
});
})(jQuery);

// some IE6 nonsense
(function ($, modal, undefined) {

if ($.browser.msie && $.browser.version.substr(0, 1) <= 6) {

var _events = modal._events,
_open = modal._open,
close = modal.close,
selectBoxes;

$.extend(modal, {

_events: function () {

var self = this;

_events.apply(this, arguments);

// dom ready
selectBoxes = $('select');

$(window).bind('resize.modal', function () {

if (self.isOpen) {
self._sizeOverlay();
}

});

return;
},

_open: function (content, options) {

_open.apply(this, arguments);

selectBoxes.css('visibility', 'hidden');
this._sizeOverlay();

return;
},

close: function () {

var self = this;

close.apply(this, arguments);

setTimeout(function () {

selectBoxes.css('visibility', '');

}, this.options.transitionSpeed);

return;
},

_sizeOverlay: function () {

var doc = $(document);

this.objects.overlay
.width(doc.width())
.height(doc.height());

return;
}

});

}

})(jQuery, jQuery.modal);



jquery.modal.CSS KODLARI
	 
/* functional styles */

.modal {
position: absolute;
display: none;
z-index:1000;
}

.modal-content {
height: 100%;
overflow: auto;
width: 100%;
}

.modal-overlay {
bottom: 0;
display: none;
left: 0;
position: fixed;
_position: absolute;
right: 0;
top: 0;
z-index: 500;
}

/* aesthetic styles */

.modal {
background: #fff;
border: 10px solid gray;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
margin: 25px;
padding: 30px;
}

.modal-close {
color: #444;
cursor: pointer;
font-size: 10px;
font-weight: bold;
position: absolute;
right: 8px;
text-decoration: none;
text-transform: uppercase;
top: 8px;

}

.modal-overlay {
background: #000;
}

.modal-1 {
background: #333;
border-color: #444;
border-width: 3px;
color: #f2f2f2;
margin: 10px;
padding: 15px;
}

.modal-1 .modal-close {
color: #f2f2f2;
}

.modal-1 a {
color: yellow;
}

.modal-isloading {
background: #fff url(loader.gif) center center no-repeat;
border: none;
padding: 0;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
width: 50px;
height: 50px;
}

.modal-isloading .modal-close {
display:none;
}
.pika-imgnav a {position: absolute; text-indent: -5000px; display: block;z-index:3;}
.pika-imgnav a.previous {background: url(../images/prev.png) no-repeat left 50%; height: 340px; width: 50px; top: 10px; left: 10px;cursor:pointer;}
.pika-imgnav a.next {background: url(../images/next.png) no-repeat right 50%; height: 340px; width: 50px; top: 10px; right: 10px;cursor:pointer;}
.pika-imgnav a.play {background: url(../images/play.png) no-repeat 50% 50%; height: 100px; width: 40px;top:0;left:46%;display: none;cursor:pointer;}
.pika-imgnav a.pause {background: url(../images/pause.png) no-repeat 50% 50%; height: 100px; width: 40px;top:0;left:46%;display:none;cursor:pointer;}


SON OLARAK SAYFA İÇİNDE ÇALIŞTIRDIĞIM KAPAT BUTON YAZIYLA

<script type="text/javascript"> 
/* <![CDATA[ */
$(function () {
$(".thumb-pr").click(function () {
img = $(this).attr('href');
$("#img-holder img").attr('src', img);
return false;
});
$(".show-image").click(function () {
var src = $(this).children('img').attr('src');
$.modal($('<img src="'+ src +'" />'), {
keepAspect: true,
closeText:'KAPAT X'
});
return false;
});
});
/* ]]> */
</script>


LÜTFEN YARDIMLARINIZI ESİRGEMEYİN SADECE İLERİ GERİ ORTADA BUTON İSTİYORUM
Z
11 yıl
ACİL YARDIM BEYLER PHP DEN ANLAYAN
BEYLER BENİM ŞÖYLE BİR SORUNUM VAR

<?php if('' !== $web):?>
<tr>
<td class="align-right">Web Sitesi</td>
<td>:</td>
<td><a><link><?php echo $web;?></a></link></td>
</tr>
<?php endif;?>

TIKLAMA YAPMIYOR DÜZ WEB SİTE ADRESİNİ GÖSTERİYOR BASLARINA <a></a> yapıyorum alt çizgi yapıyor ama TIKLANMIYOR
BİRDE RENGİ MAVİ OLMUYOR YARDIM EDİN

BÖYLE BİR ÜYEMİN WEB SİTE ADRESİNİ GÖSTERİYORUM FAKAT

http://www.siteadi.com/wwww.siteadi.com die gönderiyor

YARDIM İSTİYORUM NASIL YAPMAM LAZIM 1 HAFTADIR UGRASIYORUM
Z
14 yıl
Knight Online Multi-Disk Hatası Kesin Çözümü
Evet Arkadaşlar Genellikle Bu Hatayı İnternet Cafeci Arkadaşlar Alır Bunun Kesin Çözümü ise Knight-Online Patch Yüklerken 2 Adet Knightonline Exe Verir Örnek Şıklandırayım

1: Launcher.exe
2: Launcher2.exe Olarak Adlandırılmıştır

Multi Disk Hatası Bu Yüzden Verir Çözümü Gayet Basit :)


Üstteki 2 Şıkları Birleştirecez Nasılmı

Hemen Knightin Kurulu Olduğu Dizine Gelin Hedef Buldan Direk Girin
Hemen Ardından KnightOnLine.exe Çift Tıklatın Sonra Update Otomatik Yapacak Ve Güncel Launcher.exe Oluşacaktır Ve Launcher2.exe Kaybolacaktır Bölelikle Tekrardan Çalıştırın Patch Leri Yüklicektir Saygılarla ZolderesmanS İnternet Cafe

RESİMLERLE ANLATIM

< Resime gitmek için tıklayın >
< Resime gitmek için tıklayın >
< Resime gitmek için tıklayın >
< Resime gitmek için tıklayın >
< Resime gitmek için tıklayın >
< Resime gitmek için tıklayın >
Z
17 yıl
YARDIM PORT AÇMA KONUSUNDA
İYİ GÜNLER BENIM TEK SIKINTIM SIMDI BENDE SERVER KURDUGUM 192.168.2.199/CO KURDUM MYSQL APP SERVER UZERINDEN LOCAL CALISIYOR BEN BUNU US ROBOTIC 4 PORTLU MAX GETEWAY MODEMDEN PORT NASIL ACARIM VE BU APP SERVER UZERINDEN ACMIS OLDUGUM SITEYI NASIL DISARI DAGITABILIRIM PORTU ACIYORUM DIREK MODEMIN KULLANICI ADI SIFRE ARA YUZU GELMEKTEDIR VE SIYIRMAMAK ELDE DEIL FITIK OLDUM DESEM YERIDIR VE BANA YARDIMCI OLACAK BIRI LAZIM YARDIMLARINI BEKLIYORUM 5 GUNDUR DELIRDIM matrakzolder@hotmail.com
DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.