IPB

( Zaloguj | Zarejestruj )

 
Reply to this topicStart new topic
> BasicPress - Dodawanie miniatury przy wpisie i w Polecanych
Majesty
post 21.3.2010 - 17:46
Post #1


aktywność:


Grupa: +Bloger
Postów: 11

Nr: 7 869



Witam korzystam ze skórki basicpress.
Daje ona możliwość dodawania miniaturek obrazków w polecanych i przy poście. Niestety nie wiem jak je dodawać, gdyż są jak na razie tylko domyślne.
Czy ktoś miał już taką skórkę? Poradzi mi ktoś jak to dodawać, krok po korku?
Go to the top of the page
 
+Quote Post
amistad18
post 21.3.2010 - 17:53
Post #2


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

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



Czy skórka którą posiadasz, nie zawiera czasem pliku readme.txt, albo na stronie skąd ją ściągnąłeś, nie było instrukcji do niej? Dobrze poszukaj ...
Go to the top of the page
 
+Quote Post
Majesty
post 21.3.2010 - 18:00
Post #3


aktywność:


Grupa: +Bloger
Postów: 11

Nr: 7 869



Szukałem ponad 30 minut. Zero, nic.
Go to the top of the page
 
+Quote Post
macio76
post 21.3.2010 - 18:16
Post #4


aktywność:
****

Grupa: +Bloger
Postów: 295

Nr: 7 102



Pokaz swój plik index.php, zobaczymy w jaki sposób są generowane te miniaturki. Prawdopodobnie będzie to phpThumb, ale mogę się mylić wink.gif


--------------------
Go to the top of the page
 
+Quote Post
Majesty
post 21.3.2010 - 18:37
Post #5


aktywność:


Grupa: +Bloger
Postów: 11

Nr: 7 869



KOD
<?php get_header(); ?>
    <div id="main" class="clearfix">
        <div id="posts" class="left">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
            <div class="post clearfix">
                <div class="post-image left">
                    <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>
                        <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&amp;w=158&amp;h=158&amp;zc=1" border="0" alt="<?php the_title(); ?>" />
                    <?php else : ?>
                        <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo wp_catch_first_image('m'); ?>&amp;w=158&amp;h=158&amp;zc=1" border="0" alt="thumb" />
                    <?php endif; ?>
                </div>
                <div class="post-content right clearfix">
                    <h2 class="post-title"><a href="<?php the_permalink(); ?>" title="Continue reading &quot;<?php the_title(); ?>&quot;"><?php the_title(); ?></a></h2>
                    <div class="post-meta">
                        By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> | <a href="<?php the_permalink(); ?>#comments"><?php comments_number('0 Comment','1 Comment','% Comments'); ?></a>
                    </div>
                    <div class="post-text"><?php wp_limit_post(300,'...'); ?></div>
                </div>
            </div>
            <?php endwhile; endif; ?>
            <div class="page_navi clearfix"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
        </div>
        <div id="sidebar" class="right">
            <?php get_sidebar(); ?>
        </div>
    </div>
<?php get_footer(); ?>
Go to the top of the page
 
+Quote Post
amistad18
post 22.3.2010 - 00:13
Post #6


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

Grupa: Redakcja
Postów: 4 252

Nr: 5 919



Poczytaj o custom fields w WordPress'ie. Nazwa takiego pola to image_value, a jej wartość to link do obrazka.
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 - 11:31
WebFan | Wszystko co chcesz wiedzieć o e-commerce