WordPress

Witaj Gościu ( Zaloguj | Rejestruj )

Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!

> Uwaga!

Jeśli opisujesz problem ze skórką - podaj link do downloadu - nie każdy ma tą skórkę co Ty ;)

 
Reply to this topicStart new topic
> starsze i nowe wpisy / linki na głownej stronie
erde
post 21.5.2006 - 20:15
Post #1


aktywność:
*

Grupa: Bloger
Postów: 3

Nr: 641



Witam.

Słuchajcie, potrzebuje pomocy:)
Postawiłem bloga na wordpressie. Wszystko porobiłem i zatrzymałem się przy dodawaniu linków do "starszego wpisu" i "nowszego wpisu". Wszystko było by ok gdyby nie to że stała się moim zdaniem rzecz trudna do zrozumienia:D Dodałem odpowiedni kod z grafikami w pliku single.php i działa cudeńko (pod postem są graficzki do poruszania się):
xxxx

Natomiast gdy dodam to na stronie głównej xxxx (w kodzie próbowałem już chyba wszystkich miejsc;) to nic się nie pojawia. Pojawia się np. zwykły text (jak jest teraz) ale gdy zastapie go jakimś kodem... plum i znika biggrin.gif

Dodam iż w przypadku strony głównej edytowałem plik index.php

Wie ktoś o co w tym może chodzić?
Ja już przy tym całkowicie zgłupiałem:)

Ten post edytował erde 01.6.2006 - 15:30
Go to the top of the page
 
+Quote Post
Fanatyk
post 21.5.2006 - 20:39
Post #2


Administrator
********

Grupa: Administrator
Postów: 1 469

Nr: 1



Przykładowy index.php z nawigacją:

CODE







<!-- THIS IS A GOOD PLACE FOR GOOGLE ADS OR ANY CONTENT THAT SHOULD ALWAYS BE AT THE TOP -->


Autor:

Data Kategoria:







<!--

-->








Brak wyników













Zwróć uwagę na
KOD
<!-- THIS IS A GOOD PLACE FOR GOOGLE ADS OR ANY CONTENT THAT SHOULD ALWAYS BE AT THE TOP -->

a za nawigację odpowiada:
KOD
 <div class="navigation">
     <div class="alignleft"><?php posts_nav_link('','','« wcześniejsze wpisy') ?></div>
     <div class="alignright"><?php posts_nav_link('','dalsze wpisy »','') ?></div>
 </div>


--------------------
Go to the top of the page
 
+Quote Post
erde
post 21.5.2006 - 20:57
Post #3


aktywność:
*

Grupa: Bloger
Postów: 3

Nr: 641



CYTAT(Fanatyk @ 21.5.2006 - 20:39)
Przykładowy index.php z nawigacją...


Tego juz dawno probowalem i nic crybaby.gif
Poprostu nic sie nie pojawia... sa grafiki na glownej. Ale jak zamiast nich wstawie ten kod, to one znikaja a nic na ich miejscu sie nie pojawia. Tego wlasnie nie jestem w stanie zrozumiec: (nie znam sie az tak dobrze na php itd...wink.gif

No nic, cos moze wykombinuje jeszcze.
Go to the top of the page
 
+Quote Post
andhy
post 21.5.2006 - 21:27
Post #4


aktywność:
*****

Grupa: Redakcja
Postów: 287

Nr: 425



Najmniej eleganckie rozwiązanie to zamiana tekstów:

KOD
'« wcześniejsze wpisy'
'dalsze wpisy »'


na mniej więcej takie:

KOD
'<img="strzałka_w_lewo.gif">'
'<img="strzałka_w_prawo.gif">'


Bardziej eleganckie polega na korekcie odpowiednich definicji w CSS (z usunięciem w kodzie tekstów nawigacyjnych).


--------------------
Pozdrawiam
Artur M.

mój blog: another brick in the wall
nowa, fantastyczna gra: Lady Ariste
Go to the top of the page
 
+Quote Post
Fanatyk
post 21.5.2006 - 21:55
Post #5


Administrator
********

Grupa: Administrator
Postów: 1 469

Nr: 1



erde jeśli mógłbyś określic jaki to styl lub podać nam tu index.php było by łatwiej smile.gif


--------------------
Go to the top of the page
 
+Quote Post
andhy
post 21.5.2006 - 21:59
Post #6


aktywność:
*****

Grupa: Redakcja
Postów: 287

Nr: 425



W nagłówkach jak wołek:

http://emefef.com/efbe2-beta/wp-content/themes/hemingway


Ps. W stopce też opisał wink.gif


--------------------
Pozdrawiam
Artur M.

mój blog: another brick in the wall
nowa, fantastyczna gra: Lady Ariste
Go to the top of the page
 
+Quote Post
erde
post 21.5.2006 - 22:13
Post #7


aktywność:
*

Grupa: Bloger
Postów: 3

Nr: 641



No wiec tak... biggrin.gif:

Kod ktory dziala na podstronach (jak sie wchodzi na ktorys z 10 najnowszych wpisow... wtedy w nich mozna strzalkami sie super poruszac):

KOD
<p><?php previous_post('%', '<img border="0" src="http://emefef.com/efbe/images/link-old.gif" width="15" height="11">', 'no'); ?>
<?php next_post('%', '<img border="0" src="http://emefef.com/efbe/images/link-new.gif" width="15" height="11">', 'no'); ?></p>


Ten sam kod na index.php juz nie dziala... podobnie jak ten ktory podaliscie powyzej. Poprostu nic sie nie pojawia:)

Moj index.php:

CODE

long_code_here = ';<?php get_header(); ?>


<div id="primary" class="onecol-stories">
<div class="inside">
<?php
// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
query_posts('showposts=1');
?>
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>

<div class="story<?php if($first == true) echo " first" ?>"><br>

<?php the_content('Read the rest of this entry &raquo;'); ?>
<div class="details">
<?php comments_popup_link('brak komentarzy', '1 komentarz', '% komentarze/y'); ?> | Kategoria: <?php the_category(', ') ?>
</span>

</div>
</div>
<?php $first = false; ?>
<?php endwhile; ?>

</div>

<?php else : ?>

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>

<?php endif; ?>

<div class="clear"></div>
</div>

<!-- [END] #primary -->



<?php get_sidebar(); ?>

<?php get_footer(); ?>


Ten post edytował erde 21.5.2006 - 22:15
Go to the top of the page
 
+Quote Post
andhy
post 22.5.2006 - 10:30
Post #8


aktywność:
*****

Grupa: Redakcja
Postów: 287

Nr: 425



Nie testowałem tego, ale na logikę możesz rozwiązać swój problem w całości na poziomie CSS'a.


--------------------
Pozdrawiam
Artur M.

mój blog: another brick in the wall
nowa, fantastyczna gra: Lady Ariste
Go to the top of the page
 
+Quote Post
doogi
post 01.3.2008 - 10:53
Post #9


aktywność:
*

Grupa: Bloger
Postów: 5

Nr: 3 829



witam.
od niedawna mam zainstalowanego hemingwaya i mam podobny problem.

Otoz funkcja


CODE
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','? wcześniejsze wpisy') ?></div>
<div class="alignright"><?php posts_nav_link('','dalsze wpisy ?','') ?></div>
</div>


pojawia sie na stronie, tworzy sie link "http://mojastrona.pl/?paged=2" ale gdy klikam na "wczesniejsze posty" posty sie poprostu nie zmieniaja. nawigacja owszem, przechodzi po stronach, ale wyswietlane sa te same posty...

ktos pomoze ??

oto moj index.php
CODE

<?php get_header(); ?>


<div id="primary" class="onecol-stories">
<div class="inside">




<div class="primary">
<div> </div>
<?php
// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
query_posts('showposts=1');
?>
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="story<?php if($first == true) echo " first" ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php $hemingway->excerpt() ?>
<div class="details">
<?= _('Posted at') ?> <?php the_time('ga \o\n ' . $hemingway->date_format(true) . '/y') ?> | <?php comments_popup_link('no comments', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span>
</div>
</div>
<?php $first = false; ?>
<?php endwhile; ?>
</div>

<div class="secondary">
<h2>About this entry</h2>

sadas

</div>

<?php else : ?>

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>

<?php endif; ?>



</div>



<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','? wcześniejsze wpisy') ?></div>
<div class="alignright"><?php posts_nav_link('','dalsze wpisy ?','') ?></div>
</div>



<div class="clear"></div>

</div>

<!-- [END] #primary -->



<?php get_sidebar(); ?>

<?php get_footer(); ?>


Ten post edytował doogi 01.3.2008 - 10:56
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:

 



Wersja Lo-Fi Aktualny czas: 3 12 08 - 03:40
WebFan | Forum Komputerowe | Spotkania blogerów