wmaraci reklam

Wordpress yazıları toplu düzenleme nasıl yapılır?

4 Mesajlar 728 Okunma
pst.net
wmaraci reklam

AllyBey AllyBey WM Aracı Kullanıcı
  • Üyelik 10.09.2017
  • Yaş/Cinsiyet 29 / E
  • Meslek Editör
  • Konum İstanbul Avrupa
  • Ad Soyad A** A**
  • Mesajlar 412
  • Beğeniler 60 / 116
  • Ticaret 0, (%0)
Toplu düzenlemeden kastım başlık felan değiştirmek değil, her resimden sonra sayfa arası yani eklemem gerekiyor. Ad inserterde denedim olmadı heralde farklı bi css tarzı kodu var yada ben anlamadım. Önerebileceğiniz eklenti varmıdır? Tüm yazılara girecek her resimden sonra ekleyecek o kadar.
 

 

wmaraci
reklam

Sungmert Sungmert carpe diem ne diyem Kullanıcı
  • Üyelik 12.01.2012
  • Yaş/Cinsiyet 29 / E
  • Meslek Freelancer
  • Konum İstanbul Avrupa
  • Ad Soyad M** Y**
  • Mesajlar 1233
  • Beğeniler 506 / 407
  • Ticaret 39, (%100)
Adman diye çok eski, güncellenmeyen bir eklenti var ama her derde deva.

Onun ayarlarında sayfa aralarına ekleyen reklam bölmesi vardı diye hatırlıyorum. Bir deneyin derim.
 

 

AllyBey AllyBey WM Aracı Kullanıcı
  • Üyelik 10.09.2017
  • Yaş/Cinsiyet 29 / E
  • Meslek Editör
  • Konum İstanbul Avrupa
  • Ad Soyad A** A**
  • Mesajlar 412
  • Beğeniler 60 / 116
  • Ticaret 0, (%0)
sayfa arası sadece olarak göründüğü için reklam eklentileri okumuyor. Herhangi bir css, js kodu da bulamadım öylede olmadı.
 

 

forces forces WM Aracı Kullanıcı
  • Üyelik 23.01.2016
  • Yaş/Cinsiyet 45 / E
  • Meslek bilgisayar mühendisi
  • Konum İstanbul Avrupa
  • Ad Soyad M** E**
  • Mesajlar 1366
  • Beğeniler 9 / 379
  • Ticaret 0, (%0)
TinyMCE button ekleyerek yapabilirsiniz eger doğru anladıysam ;

1- tema klasörü içerisinde admin adında bir klasör oluşturun
2-class.new_tinymce_btn.php adında bir dosya oluşturun ve içerisine aşağıdaki kodu yapıştırın ;

//class start
class add_new_tinymce_btn {

public $btn_arr;
public $js_file;
/*
* call the constructor and set class variables
* From the constructor call the functions via wordpress action/filter
*/
function __construct($seperator, $btn_name,$javascrip_location){
$this->btn_arr = array("Seperator"=>$seperator,"Name"=>$btn_name);
$this->js_file = $javascrip_location;
add_action('init', array(&$this,'add_tinymce_button'));
add_filter( 'tiny_mce_version', array(&$this,'refresh_mce_version'));

}
/*
* create the buttons only if the user has editing privs.
* If so we create the button and add it to the tinymce button array
*/
function add_tinymce_button() {
if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
return;
if ( get_user_option('rich_editing') == 'true') {
//the function that adds the javascript
add_filter('mce_external_plugins', array(&$this,'add_new_tinymce_plugin'));
//adds the button to the tinymce button array
add_filter('mce_buttons', array(&$this,'register_new_button'));
}
}
/*
* add the new button to the tinymce array
*/
function register_new_button($buttons) {
array_push($buttons, $this->btn_arr["Seperator"],$this->btn_arr["Name"]);
return $buttons;
}
/*
* Call the javascript file that loads the
* instructions for the new button
*/
function add_new_tinymce_plugin($plugin_array) {
$plugin_array[$this->btn_arr['Name']] = $this->js_file;
return $plugin_array;
}
/*
* This function tricks tinymce in thinking
* it needs to refresh the buttons
*/
function refresh_mce_version($ver) {
$ver += 3;
return $ver;
}

}//class end
?>

yukarıdaki kod görsel editore buton ekleyecek .

yukarıdaki işlemin ardından tema klasörü içerinde aşağıdaki klasörü oluşturun ;

adminjs/buttons

şimdi içerisinde nextpage.js adlı bir dosya oluşturun ve içerisine aşağıdaki kodları yapıştırın ;

(function() {
tinymce.create('tinymce.plugins.nextpage', {
init : function(ed, url) {
ed.addButton('nextpage', {
title : 'Next Page Button',
image : url+'/images/btn_nextpage.png',
onclick : function() {
var prompt_text = "";
var caret = "caret_pos_holder";
var insert = "

" + prompt_text + " [next_page_button]

";
ed.execCommand('mceInsertContent', false, insert);
ed.selection.select(ed.dom.select('span#caret_pos_holder')[0]); //select the span
ed.dom.remove(ed.dom.select('span#caret_pos_holder')[0]); //remove the span
}
});
},
createControl : function(n, cm) {
return null;
},
});
tinymce.PluginManager.add('nextpage', tinymce.plugins.nextpage);
})();


butona bir resim yüklemek gerekli aşağıdaki klasöre istediğiniz resmi ekleyin

/images/btn_nextpage.png)

bu işlemde tamamlandıktan sonraartık tema fonksiyonu içerisine bu butonu eklemek gerekli ;

tema function.php içerisine aşağıdaki kodu yapıştırın ;

//load custom buttons class
require_once (TEMPLATEPATH . '/admin/class.new_tinymce_btn.php');
//create an instance of the class
$t = new add_new_tinymce_btn('|','nextpage',get_bloginfo('template_url').'/adminjs/buttons/nextpage.js');
 

 

wmaraci
Mersin evden eve nakliyat
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al