Wordpress için Facebook videoları çözümü - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Webmaster Genel konular sorunlar
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Webmaster Genel konular sorunlar Webmaster genel konular sorular sorunlar

Cevapla
 
LinkBack Seçenekler
  1  
Alt 12-02-2011, 22:07:10
 
Standart Wordpress için Facebook videoları çözümü

Merhaba,

ÖNCELİKLE BELİRTMEM GEREKEN; EĞER YÜKLENMİŞ OLAN VİDEOLARIN BULUNDUĞU FACEBOOK PROFİLİ VİDEOLARINI SADECE ARKADAŞLARINA İZLETTİRİYORSA, O HALDE VİDEOLAR HİÇBİR ŞEKİLDE ÇALIŞMAZ.

Wordpress için yapılacakları anlatıyorum. Özellikle film siteleri için. Yalnız, film sitelerinin, film part'larını custom field olarak eklemiş olanları şanslı. Diğerleri için malesef bir çözüm üretemedim henüz. Custom field olarak eklemiş olanlarınıza nasıl düzenleyebileceğinizi anlatıyorum.

Öncelikle şunu ekliyoruz.

<?php
function faceduzelt($urele)
{
$explode=explode("/",$urele);
$say=count($explode);
$son=$explode[$say-1];
$explode2=explode("_",$son);
$videoaydi=$explode2[0];

$al = file_get_contents("http://www.facebook.com/ajax/flash/expand_inline.php?target_div=u879823_18&__a=1&v=$v ideoaydi");
$al = stripslashes($al);
$exp=explode("\"video_src\", \"",$al);
$exp=explode("\");",$exp[1]);
$son=$exp[0];
$json = '{"url": "'.$son.'"}';
$json = json_decode($json);
$json= $json->{'url'};

return $json;
}
?>

Daha sonra, custom field olarak eklemiş o.lduğumuz film part'larımız için tanım oluşturuyoruz. Ben mesela custom_field olarak filmyeri ismini oluşturmuştum.

Tanımımı da şu şekilde yaptım.

$yerimiz = get_post_meta($post->ID, 'filmyeri', true);

Şimdi film part'ımızın düzeltilmiş halini şu şekilde alabiliriz.

$yerimiz = faceduzelt($yerimiz);

Akabinde, $yerimiz çıktısı düzgün şekilde, çalışan Facebook videosunu önünüze getirecektir.

O haliyle player'da oynamaya mahkumdur.
Alıntı ile Cevapla
  2  
Alt 12-02-2011, 22:14:36
sss sss isimli üyemiz çevrimdışıdır. (Offline)
Üyeliği durduruldu
 
Standart

bu kodları nereye yazacağıma dair hiç bir fikrim yok hocam, custom field nedir
Alıntı ile Cevapla
  3  
Alt 12-02-2011, 22:15:30
 
Standart

Wordpress'te single.php içinde olacak. Single.php kodlarınızı buraya koyarsanız, yardımcı olup olamayacağıma bakayım.
Alıntı ile Cevapla
  4  
Alt 12-02-2011, 22:27:57
sss sss isimli üyemiz çevrimdışıdır. (Offline)
Üyeliği durduruldu
 
Standart

PHP- Kodu:
<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>



    <div id="content" class="widecolumn" role="main">


    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>


        <div class="navigation">
            <div class="alignleft"><?php previous_post_link'%link''&laquo; %title' ?></div>
            <div class="alignright"><?php next_post_link'%link''%title &raquo;' ?></div>
        </div>


        <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">


            <h2><img src="<?php bloginfo('stylesheet_directory'); ?>/images/tv.jpg"> <?php the_title(); ?></h2> 


                
            <div class="entry">
                <br><a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php printf(__('Permanent Link to %s''kubrick'), the_title_attribute('echo=0')); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png" align="right"> </a>
<?php the_content('<p class="serif">' __('Filmi izle &raquo;''kubrick') . '</p>'); ?>



<?php wp_link_pages(array('before' => '<h2><p><strong>' __('>> Partlar :''kubrick') . '</strong> ''after' => '</p></h2>''next_or_number' => 'number')); ?>
<?php the_tags
'<p>' __('Tags:''kubrick') . ' '', ''</p>'); ?>
<br><center><a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php printf(__('Permanent Link to %s''kubrick'), the_title_attribute('echo=0')); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png"> </a>

</center><br>
<center><img src="<?php bloginfo('stylesheet_directory'); ?>/images/alt.jpg"> </center>

                <p class="postmetadata alt">
                    <small>
                        <?php /* This is commented, because it requires a little adjusting sometimes.
                            You'll need to download this plugin, and follow the instructions:
                            http://binarybonsai.com/wordpress/time-since/ */
                            /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ 
?>
                        <?php printf(__('Gonderildigi tarih: %1$s / %2$s Kategori: %3$s.''kubrick'), get_the_time(__('l, F jS, Y''kubrick')), get_the_time(), get_the_category_list(', ')); ?>
                        <?php printf(__("Geri beslemeler ile takip edebilirsiniz. <a href='%s'>RSS 2.0</a>""kubrick"), get_post_comments_feed_link()); ?> 

                        <?php if ( comments_open() && pings_open() ) {
                            
// Both Comments and Pings are open ?>
                            <?php printf(__('Filme yorum <a href="#respond">yazabilirsiniz</a> veya <a href="%s" rel="trackback">sitenize</a> geri bildirimde bulunabilirsiniz''kubrick'), get_trackback_url()); ?>

                        <?php } elseif ( !comments_open() && pings_open() ) {
                            
// Only Pings are Open ?>
                            <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.''kubrick'), get_trackback_url()); ?>

                        <?php } elseif ( comments_open() && !pings_open() ) {
                            
// Comments are open, Pings are not ?>
                            <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.''kubrick'); ?>

                        <?php } elseif ( !comments_open() && !pings_open() ) {
                            
// Neither Comments, nor Pings are open ?>
                            <?php _e('Both comments and pings are currently closed.''kubrick'); ?>

                        <?php edit_post_link(__('Edit this entry''kubrick'),'','.'); ?>

                    </small>
                </p>

            </div>
        </div>

    <?php comments_template(); ?>

    <?php endwhile; else: ?>

        <p><?php _e('Sorry, no posts matched your criteria.''kubrick'); ?></p>

<?php endif; ?>

    </div>

<?php get_footer(); ?>


nereye eklicemki burda
Alıntı ile Cevapla
  5  
Alt 12-02-2011, 22:28:23
Üyeliği durduruldu
 
Standart

Merhabalar Yellow ;
videoların .mp4 adresleri özel alanda tutuluyordu wordpresste onun ve bu single php üstündeki player swf adresiyle oynatılıyordu böyle bir sistemde çalıştırmak mümkünmü ?
Alıntı ile Cevapla
  6  
Alt 12-02-2011, 22:29:34
Üyeliği durduruldu
 
Standart

peki gizli videolar için ne yapılacak?
Alıntı ile Cevapla
  7  
Alt 12-02-2011, 22:35:49
 
Standart

Alıntı:
sss Nickli Üyeden Alıntı Mesajı göster
PHP- Kodu:
<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>



    <div id="content" class="widecolumn" role="main">


    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>


        <div class="navigation">
            <div class="alignleft"><?php previous_post_link'%link''&laquo; %title' ?></div>
            <div class="alignright"><?php next_post_link'%link''%title &raquo;' ?></div>
        </div>


        <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">


            <h2><img src="<?php bloginfo('stylesheet_directory'); ?>/images/tv.jpg"> <?php the_title(); ?></h2> 


                
            <div class="entry">
                <br><a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php printf(__('Permanent Link to %s''kubrick'), the_title_attribute('echo=0')); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png" align="right"> </a>
<?php the_content('<p class="serif">' __('Filmi izle &raquo;''kubrick') . '</p>'); ?>



<?php wp_link_pages(array('before' => '<h2><p><strong>' __('>> Partlar :''kubrick') . '</strong> ''after' => '</p></h2>''next_or_number' => 'number')); ?>
<?php the_tags
'<p>' __('Tags:''kubrick') . ' '', ''</p>'); ?>
<br><center><a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php printf(__('Permanent Link to %s''kubrick'), the_title_attribute('echo=0')); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png"> </a>

</center><br>
<center><img src="<?php bloginfo('stylesheet_directory'); ?>/images/alt.jpg"> </center>

                <p class="postmetadata alt">
                    <small>
                        <?php /* This is commented, because it requires a little adjusting sometimes.
                            You'll need to download this plugin, and follow the instructions:
                            http://binarybonsai.com/wordpress/time-since/ */
                            /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ 
?>
                        <?php printf(__('Gonderildigi tarih: %1$s / %2$s Kategori: %3$s.''kubrick'), get_the_time(__('l, F jS, Y''kubrick')), get_the_time(), get_the_category_list(', ')); ?>
                        <?php printf(__("Geri beslemeler ile takip edebilirsiniz. <a href='%s'>RSS 2.0</a>""kubrick"), get_post_comments_feed_link()); ?> 

                        <?php if ( comments_open() && pings_open() ) {
                            
// Both Comments and Pings are open ?>
                            <?php printf(__('Filme yorum <a href="#respond">yazabilirsiniz</a> veya <a href="%s" rel="trackback">sitenize</a> geri bildirimde bulunabilirsiniz''kubrick'), get_trackback_url()); ?>

                        <?php } elseif ( !comments_open() && pings_open() ) {
                            
// Only Pings are Open ?>
                            <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.''kubrick'), get_trackback_url()); ?>

                        <?php } elseif ( comments_open() && !pings_open() ) {
                            
// Comments are open, Pings are not ?>
                            <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.''kubrick'); ?>

                        <?php } elseif ( !comments_open() && !pings_open() ) {
                            
// Neither Comments, nor Pings are open ?>
                            <?php _e('Both comments and pings are currently closed.''kubrick'); ?>

                        <?php edit_post_link(__('Edit this entry''kubrick'),'','.'); ?>

                    </small>
                </p>

            </div>
        </div>

    <?php comments_template(); ?>

    <?php endwhile; else: ?>

        <p><?php _e('Sorry, no posts matched your criteria.''kubrick'); ?></p>

<?php endif; ?>

    </div>

<?php get_footer(); ?>


nereye eklicemki burda
Hocam kusura bakmayın, henüz post'larda olan filmler için bir çalışma yapmadım.

Alıntı:
li10 Nickli Üyeden Alıntı Mesajı göster
Merhabalar Yellow ;
videoların .mp4 adresleri özel alanda tutuluyordu wordpresste onun ve bu single php üstündeki player swf adresiyle oynatılıyordu böyle bir sistemde çalıştırmak mümkünmü ?
Ben de onu diyorum zaten, videoların adresleri özel alanda olanlar dediğim şekilde yaparlarsa çalıştırabilirler filmlerini. Tabi büyük harflerle yazdığım şart gerçekleşmiş olacak.

Alıntı:
tayfuncetin Nickli Üyeden Alıntı Mesajı göster
peki gizli videolar için ne yapılacak?
Gizli videolar için çözüm bulunursa eğer, onu da Wordpress için uyarlayabilirim.
Alıntı ile Cevapla
  8  
Alt 12-02-2011, 22:41:54
 
Standart

hadi bakalım gelişmeye başladı bişeyler heralde
Alıntı ile Cevapla
  9  
Alt 12-02-2011, 22:42:27
Üyeliği durduruldu
 
Standart

onlarda sorun yok yellow hayran sayfalarından alınmış genel yani videolar
Alıntı ile Cevapla
  10  
Alt 12-02-2011, 22:44:45
 
Standart

Alıntı:
li10 Nickli Üyeden Alıntı Mesajı göster
onlarda sorun yok yellow hayran sayfalarından alınmış genel yani videolar
O halde anlattığım şekilde birebir uygularsanız problem olmaz.
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 19:42:32.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252