IPB

( Zaloguj | Zarejestruj )

 
Reply to this topicStart new topic
> Simple video embedder - Press75.com, Pomoc przy instalacji
Adamiczu15
post 09.3.2010 - 20:01
Post #1





Grupa: Bloger
Postów: 7

Nr: 5 687



Witam serdecznie. Ściągnąłem sobie plugin Simple video embedder ze strony www.press75.com, na swojej stronie mam zainstalowany ten szablon http://wordpress.site5.net/designpile/, do pobrania stąd http://www.site5.com/wordpress-themes/. Nie potrafię zainstalować poprawnie pluginu, ponieważ trzeba wkleić kod w szablon strony lecz mi coś nie wychodzi. Jakby ktoś mógłby mi pomóc to będę bardzo wdzięczny.
Go to the top of the page
 
+Quote Post
amistad18
post 11.3.2010 - 19:37
Post #2


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



Jeżeli oczekujesz pomocy, to coś słabo się starasz. Fakt, fajniej się czyta temat który ma 3 linijki a nie pół strony, ale miło by było jak byś DOKŁADNIE opisał swój problem ... bo wiesz, pomógł bym Ci, ale 'coś mi nie wychodzi'.
Go to the top of the page
 
+Quote Post
Adamiczu15
post 11.3.2010 - 22:55
Post #3





Grupa: Bloger
Postów: 7

Nr: 5 687



Zainstalowałem plugin Simple video embedder, lecz nie działa on tak jak jest to pokazane na tym filmiku: http://vimeo.com/5312954 Wyraźnie widać, że podczas edycji wpisu normalnie dodaje kod filmiku, wpisuje jego rozmiary i zatwierdza. Następnie wchodzi na stronę główną bloga i we wpisie widzimy automatycznie dodany filmik. U mnie jest wszystko identycznie, ale tylko do momentu zapisania edytowanego wpisu, bo gdy wejdę na stronę główną to żaden filmik mi się automatycznie nie wyświetla. Tutaj http://www.press75.com/v4/documentation-su...er-setup-usage/ jest napisane, że należy dodać kod do stylu, ale mi to nie wychodzi i nie działa, dlatego zwróciłem się do Was o pomoc.
Go to the top of the page
 
+Quote Post
amistad18
post 11.3.2010 - 23:46
Post #4


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



No dobrze, w zakładce setup jest wszystko ładnie opisane, z czym masz dokładnie problem?

btw. jest też podana informacja, że wtyczka wymaga php5 - spełniasz te warunki?
Go to the top of the page
 
+Quote Post
Adamiczu15
post 12.3.2010 - 19:00
Post #5





Grupa: Bloger
Postów: 7

Nr: 5 687



Mam php5. Nie wiem w którym miejscu dokładnie mam wkleić ten kod z press75 do mojego szablonu. Wklejam w różne miejsca index.php i nic nie działa.
Go to the top of the page
 
+Quote Post
amistad18
post 12.3.2010 - 20:42
Post #6


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



W tagach code zamieść kod index.php który Ci nie działa, oraz podaj adres strony.
Go to the top of the page
 
+Quote Post
Adamiczu15
post 12.3.2010 - 21:29
Post #7





Grupa: Bloger
Postów: 7

Nr: 5 687



Moja strona: www.puf.boo.pl

Plik index.php:

KOD
<?php get_header(); ?>
    
        <!-- begin colLeft -->
        <div id="colLeft">
        <!-- begin colLeftInner -->
        <div id="colLeftInner" class="clearfix">
        <!-- archive-title -->                
                        <?php if(is_month()) { ?>
                        <div id="archive-title">
                        Browsing articles from "<strong><?php the_time('F, Y') ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_category()) { ?>
                        <div id="archive-title">
                        Browsing articles in "<strong><?php $current_category = single_cat_title("", true); ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_tag()) { ?>
                        <div id="archive-title">
                        Browsing articles tagged with "<strong><?php wp_title('',true,''); ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_author()) { ?>
                        <div id="archive-title">
                        Browsing articles by "<strong><?php wp_title('',true,''); ?></strong>"
                        </div>
                        <?php } ?>
                    <!-- /archive-title -->
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
        <!-- begin post -->        
        <div class="blogPost">
                        <div class="date"><?php the_time('M') ?><br /><span><?php the_time('j') ?></span></div>
                        <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
                        <div class="meta">
                            By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php the_category(', ') ?>  &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
                        </div>
                        <?php the_content(__('read more')); ?>
                        
        </div>
        <!-- end post -->
        <?php endwhile; ?>

    <?php else : ?>

        <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>
            </div>
            <!-- end colLeftInner -->
            <div class="navigation">
                        <div class="alignleft"><?php next_posts_link() ?></div>
                        <div class="alignright"><?php previous_posts_link() ?></div>
            </div>
        </div>
        <!-- end colLeft -->

<?php get_sidebar(); ?>    

<?php get_footer(); ?>


Kody ze strony press75:

KOD
http://www.press75.com/v4/documentation-support/simple-video-embedder-setup-usage/


Ten post edytował Adamiczu15 12.3.2010 - 21:31
Go to the top of the page
 
+Quote Post
amistad18
post 12.3.2010 - 22:30
Post #8


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



Ok, to jeszcze mi powiedz w którym miejscu wstawiłeś odpowiedni kod? Gdyż ja takowego nie widzę.
Go to the top of the page
 
+Quote Post
Adamiczu15
post 13.3.2010 - 22:22
Post #9





Grupa: Bloger
Postów: 7

Nr: 5 687



Wstawiłem tylko plik index.php, bo liczyłem, że mi pomożesz wstawić kod w odpowiednie miejsce. Ja wklejałem między to:
KOD
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
...
<?php endwhile; endif; ?>
taki oto kod:
KOD
if ( p75HasVideo($post->ID) ) {
        echo p75GetVideo($post->ID);
    }

Po wklejeniu tego kodu filmiki nie wyświetlały się automatycznie.
Go to the top of the page
 
+Quote Post
amistad18
post 14.3.2010 - 00:22
Post #10


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



No dobrze, to sprawdzimy jak to działa. Zamiast tego - <?php the_content(__('read more')); ?> , wstaw taki kod:

KOD
        <?php
        if(function_exists('p75GetVideo')){
            echo "<div style=\"display: none;\">";
            if ( p75HasVideo($post->ID) ) {
                echo "<p>";
                echo p75GetVideo($post->ID);
                echo "</p>";
            }
            else {
                echo "błąd_2";
            }
            echo "</div>";
        }
        else {
                echo "<div style=\"display: none;\">błąd_1</div>";
        }
        ?>

                        <?php the_content(__('read more')); ?>


Nie martw się, niczego Ci to na blogu nie zepsuje, nikt też tego nie zauważy ... powiedz tylko kiedy ten kod wstawisz, oraz w jakich postach masz dodane owe vodeo, aby można było je sprawdzić.
Go to the top of the page
 
+Quote Post
Adamiczu15
post 14.3.2010 - 15:44
Post #11





Grupa: Bloger
Postów: 7

Nr: 5 687



Wkleiłem kod który mi podałeś, oto plik index.php:
KOD
<?php get_header(); ?>
    
        <!-- begin colLeft -->
        <div id="colLeft">
        <!-- begin colLeftInner -->
        <div id="colLeftInner" class="clearfix">
        <!-- archive-title -->                
                        <?php if(is_month()) { ?>
                        <div id="archive-title">
                        Browsing articles from "<strong><?php the_time('F, Y') ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_category()) { ?>
                        <div id="archive-title">
                        Browsing articles in "<strong><?php $current_category = single_cat_title("", true); ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_tag()) { ?>
                        <div id="archive-title">
                        Browsing articles tagged with "<strong><?php wp_title('',true,''); ?></strong>"
                        </div>
                        <?php } ?>
                        <?php if(is_author()) { ?>
                        <div id="archive-title">
                        Browsing articles by "<strong><?php wp_title('',true,''); ?></strong>"
                        </div>
                        <?php } ?>
                    <!-- /archive-title -->
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
        <!-- begin post -->        
        <div class="blogPost">
                        <div class="date"><?php the_time('M') ?><br /><span><?php the_time('j') ?></span></div>
                        <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
                        <div class="meta">
                            By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php the_category(', ') ?>  &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
                        </div>
        <?php
        if(function_exists('p75GetVideo')){
            echo "<div style=\"display: none;\">";
            if ( p75HasVideo($post->ID) ) {
                echo "<p>";
                echo p75GetVideo($post->ID);
                echo "</p>";
            }
            else {
                echo "błąd_2";
            }
            echo "</div>";
        }
        else {
                echo "<div style=\"display: none;\">błąd_1</div>";
        }
        ?>

                        <?php the_content(__('read more')); ?>                        
        </div>
        <!-- end post -->
        <?php endwhile; ?>

    <?php else : ?>

        <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>
            </div>
            <!-- end colLeftInner -->
            <div class="navigation">
                        <div class="alignleft"><?php next_posts_link() ?></div>
                        <div class="alignright"><?php previous_posts_link() ?></div>
            </div>
        </div>
        <!-- end colLeft -->

<?php get_sidebar(); ?>    

<?php get_footer(); ?>


We wszystkich wpisach na stronie dodałem video i nic się nie wyświetla. Adres strony: http://puf.boo.pl/
Go to the top of the page
 
+Quote Post
amistad18
post 14.3.2010 - 16:00
Post #12


aktywność:
*********

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



Cały czas masz ten kod w szablonie? Jeszcze spróbuj z tego kodu, usunąć to:

KOD
                        <div class="date"><?php the_time('M') ?><br /><span><?php the_time('j') ?></span></div>
                        <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
                        <div class="meta">
                            By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php the_category(', ') ?>  &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
                        </div>
        <?php
        if(function_exists('p75GetVideo')){
            echo "<div style=\"display: none;\">";
            if ( p75HasVideo($post->ID) ) {
                echo "<p>";
                echo p75GetVideo($post->ID);
                echo "</p>";
            }
            else {
                echo "błąd_2";
            }
            echo "</div>";
        }
        else {
                echo "<div style=\"display: none;\">błąd_1</div>";
        }
        ?>

                        <?php the_content(__('read more')); ?>


Po prostu zrób kopię pliku index.php, i z tej kopii na serwerze usuń ten kod, w efekcie na stronie głównej posty w ogóle nie powinny być wyświetlane, a jeśli się nie mylę, to Ty na stronie głównej żadnej zmiany nie zauważysz. Jeśli mam rację - to wtedy pokaż screena ze wszystkich plików owego szablonu, zobacz czy jest w nim plik home.php.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



: 9 02 12 - 07:21
WebFan | Wszystko co chcesz wiedzieć o e-commerce