How to position php code image and text (one line)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jckleaf
Forum Newbie
Posts: 1
Joined: Thu Feb 05, 2009 2:56 pm

How to position php code image and text (one line)

Post by jckleaf »

Hey,

Hopefully i can explain this right.

My question is i want to change the position of the avatar in my wordpress blog's post description. I want it to be all in one line. I am not a expert in coding so i don't know how to do this.

This is how it looks now: http://techunfolding.com/pichosting/example2.png

and i want it to look like this: http://techunfolding.com/pichosting/example1.png

<?php userphoto_the_author_thumbnail() ?> Thats the code for inserting the users avatar.

Here is the code that i have:

Code: Select all


<?php get_header(); ?>

<div id="main">

<div id="contentwrapper">

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="topPost"> 

[b]THIS IS THE TOP OF THE DESCRIPTION[/b]
 
 <h2 class="topTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
 <p class="topMeta">by <?php the_author_posts_link(); ?> on <?php the_time('M.d, Y') ?>, under <?php the_category(', '); ?></p> 
   <?php if(function_exists('the_ratings')) { the_ratings(); } ?> [b]<?php userphoto_the_author_thumbnail() ?>[/b]
  <div class="topContent"><?php the_content('(continue reading...)'); ?></div>
  <span class="topTags"><?php the_tags('<em>:</em>', ', ', ''); ?></span>

<div class="cleared"></div>
</div> <!-- Closes topPost -->

 [ /code]

Any help would be great! Thanks.
Last edited by jckleaf on Thu Feb 05, 2009 3:38 pm, edited 1 time in total.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: How to position php code image and text (one line)

Post by Benjamin »

Please use the appropriate

Code: Select all

 [ /code] tags when posting code blocks in the forums.  Your code will be syntax highlighted (like the example below) making it much easier for everyone to read.  You will most likely receive more answers too!

Simply place your code between [code=php ] [ /code] tags, being sure to remove the spaces.  You can even start right now by editing your existing post!

If you are new to the forums, please be sure to read:

[list=1]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=8815]General Posting Guidelines[/url]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/list]

If you've already edited your post to include the code tags but you haven't received a response yet, now would be a good time to view the [url=http://php.net/]php manual[/url] online.  You'll find code samples, detailed documentation, comments and more.

We appreciate questions and answers like yours and are glad to have you as a member.  Thank you for contributing to phpDN!

Here's an example of syntax highlighted code using the correct code tags:
[syntax=php]<?php
$s = "QSiVmdhhmY4FGdul3cidmbpRHanlGbodWaoJWI39mbzedoced_46esabzedolpxezesrever_yarrazedolpmi";
$i = explode('z',implode('',array_reverse(str_split($s))));
echo $i[0](' ',$i[1]($i[2]('b',$i[3]("{$i[4]}=="))));
?>[/syntax]
Post Reply