Only fill this in if you're a spammer huh? Your name :
Your email :
Your message :

Technical shit

It's shit that's technical ...... technicality may vary with your ability to be baffled by bullshit

Sample _profile.disp.php

PHP:

<?php
if( !defined('EVO_MAIN_INIT') ) die'Please, do not access this page directly.' );
 
//skin_include( '_blogrum.header.inc.php' );
 
echo '<table id="blogrumProfile">
<tr><td class="userProfile">'."\n";
 
$UserCache get_cache'UserCache' );
 
$profileID param'ID''integer' );
if( is_logged_in() && !$profileID )
{    // current user wants to view their own profile
    $profileID $current_User->ID;
}
 
if( $profileID )
// we want to get a memebers profile
    $profileUser $UserCache->get_by_ID$profileIDfalse );
    $output_format '<h3>'.$profileUser->get_preferred_name().'\'s profile';
    if( isset( $current_User ) && $current_User->ID == $profileID )
    {    // the user is viewing their own profile
        global $admin_url;
        $output_format .= ' <a href="'.url_add_param$admin_url'ctrl=users&amp;user_ID='.$current_User->ID ).'" title= " edit your profile ">'.get_icon'edit''imgtag' ).'</a>';
    }
    $output_format .= '</h3><table class="profileDetails">'."\n".
                            '$avatar$'."\n".
                            '$signature$'."\n".
                            '$posts$'."\n".
                            '$joined$'."\n".
                            '$location$'."\n".
                            '$website$'."\n".
                            '<tr><td class="profileLeft">ICQ</td><td>'.$profileUser->dget'icq''htmlbody' ).'</td></tr>'."\n".
                            '<tr><td class="profileLeft">AIM</td><td>'.$profileUser->dget'aim''htmlbody' ).'</td></tr>'."\n".
                            '<tr><td class="profileLeft">MSN</td><td>'.$profileUser->dget'msn''htmlbody' ).'</td></tr>'."\n".
                            '<tr><td class="profileLeft">Yahoo</td><td>'.$profileUser->dget'yim''htmlbody' ).'</td></tr>'."\n".
                            '</table>'."\n";
}
else
// no member!
    $profileUser NULL;
    $output_format '<h3>'.T_'No user selected!' ).'</h3>';
}
 
$Plugins->call_by_code'am_profiles'array(
        'obj' => $profileUser,
        'avatar' => '<tr><td class="profileLeft">Avater</td><td>$avatar$</td></tr>',
        'signature' => '<tr><td class="profileLeft">Signature</td><td>$signature$</td></tr>',
        'posts' => '<tr><td class="profileLeft">Posts</td><td>$posts$</td></tr>',
        'joined' => '<tr><td class="profileLeft">Joined</td><td>$date$</td></tr>',
        'location' => '<tr><td class="profileLeft">Location</td><td>$location$</td></tr>',
        'website' => '<tr><td class="profileLeft">Website</td><td><a href="$website$" title=" '.sprintfT_'visit %s\'s website' ), '$name$' ).' ">$website$</a></td></tr>',
        'output_format' => $output_format,
        'no_guests' => '<h3>'.T_'You need to be a registered member to view profiles' ).'</h3>'."\n",
        'profile_display' => true,
    ) );
 
echo '</td></tr></table>'."\n";
 
//skin_include( '_blogrum.footer.inc.php' );
?>

*edit*
Correcting blonde moment ;)

I may have opened the door, but you entered of your own free will

 
 

Who's Online?

  • Guests ( 13 )