Hello all,i just made a image preset for my thumbnail, no the problem is that it apears beneath my tease and not in it..

i already found the div but i want it inline the teaser

see the screenshot for how i want it..

http://img260.imageshack.us/img260/9075/howmm7.png

i hope somebody can help me with this..

Comments

andrew_hoffi’s picture

I’ve just carried out the same theme alteration this very morning and used the Contemplate module. This will enable an overide for the Teaser, Body and RSS nodes.
http://drupal.org/project/contemplate

Dylunio creadigol. Syniadau dwyieithog. • Creative design. Bilingual ideas. www.hoffi.com

Thanks
Andrew
-------------------
www.hoffi.com

demon326@drupal.org’s picture

i already use that module..,but then i got stuck..

i have a choiche betweens these codes:

$node->field_teaser_afbeelding (array)

    $node->field_teaser_afbeelding[0] (array)

        $node->field_teaser_afbeelding[0]['fid']
            20 
        $node->field_teaser_afbeelding[0]['title']
        $node->field_teaser_afbeelding[0]['alt']
        $node->field_teaser_afbeelding[0]['nid']
            585 
        $node->field_teaser_afbeelding[0]['filename']
            avatar.jpg 
        $node->field_teaser_afbeelding[0]['filepath']
            forum/shared/avatar.jpg 
        $node->field_teaser_afbeelding[0]['filemime']
            image/jpeg 
        $node->field_teaser_afbeelding[0]['filesize']
            13708 
        $node->field_teaser_afbeelding[0]['view']
            <a href="/site/test2"><img src="http://localhost/site/forum/shared/imagecache/teaser_afbeelding/forum/shared/avatar.jpg" alt="" title="" /></a> 

when i have it likt this:

 <?php print $node->field_teaser_afbeelding[0]['view'] ?>
<?php print $node->teaser ?>

the image comes above the text and beneath it..

thats not what i want...

ps: you mat also give me the code so that i can go further :P

andrew_hoffi’s picture

Looks like your not using a Content Type? Anyhow here's the code I used along with Contemplate...

<div class="teaser">
<div class="teaserImage"><?php print $node->content['image_attach']['#value'] ?></div>
<div class="teaserContent">
<h2><a href="/?q=<?php print $node->path ?>" title="<?php print check_markup($node->title) ?>"><?php print check_markup($node->title) ?></a></h2>
<?php print $node->content['body']['#value'] ?>
</div>
</div>

I then applied some css floats to the divs and hey presto!

Dylunio creadigol. Syniadau dwyieithog. • Creative design. Bilingual ideas. www.hoffi.com

Thanks
Andrew
-------------------
www.hoffi.com

demon326@drupal.org’s picture

thx for the code above..

but i'm having a new problem :(, on my local website all is working like it must,online its not working,the image ar not displayed :(