go41

Re: Arthemia, language problem :: Reply by Joern

von Joern am 9. Sep. 2011 | Keine Kommentare

it’s going to be complicated ..
I just tried to ‚read‘ index.php again and realized, that the first post here (your second oldest post) is formatted different, it shows: the_content …
the following posts show this post again, because there is an offset=1 again.
ALLWAYS KEEP A COPY OF A WORKING INDEX.PHP !!
ONE WAY:

you might replace the line with … the_content with

<?php the_excerpt() ?>
to show the excerpt here only

now you should also change all lines with $myOffset = 1; to $myOffset = 2; to let the list below start with the third post
ANOTHER WAY:

just remove this top post in your lower list completely and leave the list as it is.

This post with the full content got a kind of border around, it is in div id="front-list"

all other posts are in div id="paged-list"
to remove this one post in front-list (your second post in an extra framed part) you might remove the full query for it in index.php
In my unchanged index.php it is this part you could just delete completely:

<?php if(!is_paged()) { ?>

<div id="front-list">

<?php $width = get_settings ( "cp_thumbWidth_LatestPost" );
$height = get_settings ( "cp_thumbHeight_LatestPost" );
if ( $width == 0 ) { $width = 150; }
if ( $height == 0 ) { $height = 150; }
?>

<?php query_posts(array(
‚category__not_in‘ => array($ar_headline,$ar_featured),
’showposts‘ => 1,
)); ?>

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

<div class="clearfloat">
<h3 class="cat_title"><?php the_category(‚, ‚); ?> &raquo;</h3>
<span class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></span>
<div class="meta"><?php the_time(‚D, j/m/y‘) ?> – <?php the_time(‚G:i‘) ?> | <?php comments_popup_link(‚No Comment‘, ‚One Comment‘, ‚% Comments‘);?></div>

<?php $status = get_settings ( "cp_postThumb" );
$status2 = get_settings ( "cp_thumbAuto" );

if (( $status2 != "first" ) || ( $status != "no" )) { ?>

<?php $values = get_post_custom_values("Image");
if (isset($values[0])) { ?>
<p><img src="<?php echo bloginfo(‚template_url‘); ?>/scripts/timthumb.php?src=<?php echo get_option(‚home‘); ?>/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=<?php echo $width; ?>&h=<?php echo $height; ?>&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="<?php echo $width; ?>px" height="<?php echo $height; ?>px" /></p>
<?php } ?>

<?php } ?>

<?php the_content(‚Read the whole story &raquo;‘); ?>
</div>

<?php endwhile; ?>
<?php wp_reset_query(); ?>

</div>

<?php } ?>
above starts with ‚if(!is_paged()) {‚ eg: if it is not paged – on first page only

and the end is the closing bracket for that stuff ‚}‘
keeping a backup of a working index.php you can’t do anything bad to your wordpress installation, just put it back if a change doesn’t work.
btw: did you replace your timthumb.php with an updated version??

see topic/security-vulnerability-in-timthumbphp-of-some-themes
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 10 weitere Ergebnisse dieses Threads:

Arthemia, language problem

4. Sep. 2011 (von: Annie)

Hi Joern!I can see that you are a very helpfull guy. I bought Arthemia, by ColorLabs, unfurtunally I cant get in to their support site, so I wonderet if you could help me.1.The usual wordpress lauange transmitter dosn't work for…

Re: Arthemia, language problem :: Reply by Joern

4. Sep. 2011 (von: Joern)

hi Annie, that's quite some work, you have to edit the theme files in arthemia-premium folder.let's say you take index.php or header.php (headline/featured), you should find as example:<?php comments_popup_link('No Comment', 'One Comment', '% Comments');?>In german I would change to:<?php comments_popup_link('kein…

Re: Arthemia, language problem :: Reply by Annie

5. Sep. 2011 (von: Annie)

Hi Joern!Thank you so much I do have so many problems with ColorLabs and Arthemia thou, when I opend my page today, everythig was a complete mess, and I can't get in contact with them. Their webpage just sends me…

Re: Arthemia, language problem :: Reply by Annie

8. Sep. 2011 (von: Annie)

OK, the webpage went back to normal, I calmed down, and decited to continue with Arthemia But there is still no contact to the ColorLab support theme I have four questions more, and then Im done. (I hope Can you…

Re: Arthemia, language problem :: Reply by Annie

8. Sep. 2011 (von: Annie)

By the way, I have seen your guide to:Modify the front page view of arthemia to show most recent (newest) post as 'headline', next four older posts as 'featured' and the subsequent posts continuing below.I don´t want to change 'featured',…

Re: Arthemia, language problem :: Reply by Joern

9. Sep. 2011 (von: Joern)

to make it short (eg: I didn't test)to show your latest post in headline, no matter which category:in header.php is the query for headline posts, this query checks for the category you choose for headlines, should be now like this:<?php…

Re: Arthemia, language problem :: Reply by Annie

9. Sep. 2011 (von: Annie)

Hi Joern!Thank you!1. worked - its now the newest post, despite what category its in. But I would like to exclude the featured category. It must only be showed on featured, nowhere else.2. I have a One-column list, but the…

Re: Arthemia, language problem :: Reply by Annie

12. Sep. 2011 (von: Annie)

Hi Joern! Thank you!It was not so complicated, I just removed the whole list.Now there are just some cosmetic issues with my web-page, then I'm ready to go.Maybe you can help me there also?! Now that the headline category is…

Re: Arthemia, language problem :: Reply by Joern

13. Sep. 2011 (von: Joern)

Hi Annie, you are right, there is no category assigned to display.The line generating this text is in header.php, in my copy of this theme it looks like this:<div class="label"><a href="<?php echo get_category_link($ar_headline);?>"><?php single_cat_title(); ?> &raquo;</a></div>I can't open your site…

Re: Arthemia, language problem :: Reply by Annie

13. Sep. 2011 (von: Annie)

Hi Joern!It worked - again - like a charm!The dotted line reapered, but disapered in another place, when I made these changes.I probably will come back Thank you for all your help!!!Best regards Annie Weiterlesen →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: