Really Stuck on creating PHP file for custom authors profile

Hi Everyone
im really sorry for troubling you, im just completely stuck, so need help.

I run Video Game Madness, the site is aimed at helping people find jobs etc, we allow people of all ages to sign up, create there own profile, and publish there work.

Im trying to create a custom author page, (i need it to include a BIO, An Avitar, Hobbies and Interest, Qualifications, Skills, Faviourite Game, Social Meidia Links, and then Link to snippets of there reviews, videos, articles, and pictures) Ive managed to get so far, but i dont really understand PHP, (this code has been copied from tutorials, etc) its pretty messy, and the most annoying thing, is i cant get it to sit within the white background (probably me being an idiot, but really frustrating)

Could someone let me know what im doing wrong, or give me some ideas of what code im supposed to add, ive googled hundreds of pages, but there all quite confusing (this is a link to how the page is appearing now? http://www.videogamemadness.co.uk/wordpress/author/Blade_Caller/

Please feel free to email or contact me, with any advice, id really appreciate the help

if you post your code that will help, it looks like your content is outside the feed-wrapper div.

Ahh ok mate urm i belive this is the code

[php]<?php get_header(); // show header ?>

<?php con_get_archive(); ?>

About: <?php echo $curauth->nickname; ?> <?php userphoto_the_author_photo() ?> <?php if($con_archive_ad_post_show) { ?>
<?php echo $con_archive_ad_post; // ad ?>
<?php } ?>

<?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?> <?php echo $curauth->user_description; ?>

Reviews by <?php echo $curauth->nickname; ?>:

    <!– This sets the $curauth variable –>

    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
        <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
        <div class="meta">
            
            by 
            <?php the_author() ?>
    
            <!-- displays the user's photo and then thumbnail -->
            <?php userphoto_the_author_thumbnail() ?>
    
            <!-- the following two do the same since $authordata populated -->
            <?php userphoto($authordata) ?>
            <?php userphoto_thumbnail($authordata) ?>
    
            <!-- and this is how to customize the output -->
            <?php userphoto_the_author_photo(
                '<b>: ',
                '</b>',
                array('class' => 'photo'),
                get_template_directory_uri() . '/nophoto.jpg'
            ) ?>
        </div>
        <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    
    <?php endwhile; ?>

     

    <?php get_footer(); ?>

    [/php]

    Hope this helps (appolgies if its completely messed up, im trying to learn it, unsuccessfully might i add ;D)

the problem is not in that code I think con_get_archive calls another page if you look at the page there is content above the about section.

Urm sorry im being a complete idiot (i know nothing about PHP unfortunately)

ive now removed that con_get, but now ive lost the white background? am i missing something?

Really sorry about this, im struggling like hell, to get my head around this

that function is putting in the markup and content above the about section you need it there.

con_get_archive calls another page I suspect or prints the content directely in your theme see if you can find the function

it will start like:

function con_get_archive(

It will probably be in functions.php but there may be other function files in your theme. when you find it post the code for it then I may be able to tell you what needs changing.

Wow big big thank you for your time with this, i really appreciate it, ok i found the con_archive this is the php file

[php]<?php //load template actions

//get breaking panel
function con_get_breaking() {
do_action( ‘con_get_breaking’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/breaking.php’) ){
load_template( TEMPLATEPATH . ‘/inc/breaking.php’);
}
do_action( ‘con_after_get_breaking’ );
}

//get spotlight panel
function con_get_spotlight() {
do_action( ‘con_get_spotlight’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/spotlight.php’) ){
load_template( TEMPLATEPATH . ‘/inc/spotlight.php’);
}
do_action( ‘con_after_get_spotlight’ );
}

//get the latest panel
function con_get_latest() {
do_action( ‘con_get_latest’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/latest.php’) )
load_template( TEMPLATEPATH . ‘/inc/latest.php’);
}

//get the normal single post page
function con_get_single_normal() {
do_action( ‘con_get_single_normal’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/single-normal.php’) )
load_template( TEMPLATEPATH . ‘/inc/single-normal.php’);
}

//get the enhanced single review post page
function con_get_single_review() {
do_action( ‘con_get_single_review’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/single-review.php’) )
load_template( TEMPLATEPATH . ‘/inc/single-review.php’);
}

//get the feed panel
function con_get_feed() {
do_action( ‘con_get_feed’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/feed.php’) )
load_template( TEMPLATEPATH . ‘/inc/feed.php’);
}

function con_get_feed_review(){
do_action( ‘con_get_feed_review’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/feed-review.php’) )
load_template( TEMPLATEPATH . ‘/inc/feed-review.php’);
}

//get category listing
function con_get_category() {
do_action( ‘con_get_category’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/category.php’) )
load_template( TEMPLATEPATH . ‘/inc/category.php’);
}

//get archive listing
function con_get_archive() {
do_action( ‘con_get_archive’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/archive.php’) )
load_template( TEMPLATEPATH . ‘/inc/archive.php’);
}

//get search results
function con_get_search() {
do_action( ‘con_get_search’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/search.php’) )
load_template( TEMPLATEPATH . ‘/inc/search.php’);
}

function con_get_home_template() {
do_action( ‘con_get_home_template’ );
if ( file_exists( TEMPLATEPATH . ‘/template-home.php’) )
load_template( TEMPLATEPATH . ‘/template-home.php’);
}
//get sharebox
function con_get_sharebox() {
do_action( ‘con_get_sharebox’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/sharebox.php’) )
load_template( TEMPLATEPATH . ‘/inc/sharebox.php’);
}

//get social links
function con_get_social() {
do_action( ‘con_get_social’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/social.php’) )
load_template( TEMPLATEPATH . ‘/inc/social.php’);
}

//get comments
function con_get_comments() {
do_action( ‘con_get_comments’ );
if ( file_exists( TEMPLATEPATH . ‘/inc/con-comments.php’) )
load_template( TEMPLATEPATH . ‘/inc/con-comments.php’);
}

?>[/php]

Hope this helps :slight_smile:

OK that functions loads /inc/archive.php can you post the content from there I think is going to be a case of moving 1 or 2 closing divs.

i’m out this evening but will take a look at soon as I get chance.

Appologies for the delay, was out myself yesterday evening.
This is the "Archive.php file data

[php]<?php //get theme options
global $con_front, $con_layout, $con_feed, $con_reviews, $con_ads, $con_misc;
$con_front = get_option( ‘con_front’, $con_front );
$con_layout = get_option( ‘con_layout’, $con_layout );
$con_feed = get_option( ‘con_feed’, $con_feed );
$con_reviews = get_option( ‘con_reviews’, $con_reviews );
$con_ads = get_option( ‘con_ads’, $con_ads );
$con_misc = get_option( ‘con_misc’, $con_misc ); ?>

<?php //set theme options $con_archive_latest_show = $con_layout['archive_latest_show']; $con_archive_ad_post_show = $con_ads['archive_ad_post_show']; $con_archive_ad_post = $con_ads['archive_ad_post']; ?> <?php get_header(); // show header ?> <?php con_get_archive(); ?> <?php if($con_archive_ad_post_show) { ?>
<div class="full-width-ad">    
    <?php echo $con_archive_ad_post; // ad ?>        
</div>
<?php } ?> <?php if($con_archive_latest_show) { // show The Latest panel ?>
<?php con_get_latest(); ?>
<?php } ?> <?php get_footer(); // show footer ?>[/php]

i think this is the correct file

Again many thanks for your help

Sponsor our Newsletter | Privacy Policy | Terms of Service