Annonceindlæg fra Kommando
Min configurationsfil indeholder følgende: ------------------------------------------ 'user_profiler' => array ( 'display_name' => 'User Profile', 'script' => 'user_profiler.php', 'type' => 'user', 'access_type' => array('user'), 'raw_output' => false, ), og filen user_profiler.php ser således ud: ------------------------------------------ <?php require_once("users/User/UserManager.php"); $errors = array(); $user_info = null; $username = isset($_REQUEST['username']) ? $_REQUEST['username'] : null; if (is_null($username)) { $errors['USERNAME_NOT_SPECIFIED'] = 1; } elseif (is_null($user_sid = UserManager::getUserSIDbyUsername($username))) { $errors['WRONG_USERNAME_SPECIFIED'] = 1; } else { $user = UserManager::getObjectBySID($user_sid); $user_info = UserManager::createTemplateStructureForUser($user); } $template_processor = System::getTemplateProcessor(); $template_processor->assign('user', $user_info); $template_processor->assign('errors', $errors); $template_processor->display('user_profiler.tpl'); ?> Templatefilen user_profiler.tpl: -------------------------------- {foreach from=$errors key=error item=message} {if $error == 'USERNAME_NOT_SPECIFIED'} <p class="error">Brugernavn ikke angivet</p> {elseif $error == 'WRONG_USERNAME_SPECIFIED'} <p class="error">Forkert brugernavn angivet</p> {/if} {/foreach} {if $user != null} <div style="float:left;text-align:center;padding-top:25px;width:150px;overflow:hidden"> <img src="{$user.DealershipLogo.file_url}" alt="" title="" /> </div> <div style="float:left;overflow:auto;width:589px;height:393px;padding-top:25px;padding-bottom:35px;padding-right:25px"> <h3 style="font-weight:bold;font-size: 14pt; color: black; font-family: Arial MT Condensed Light;padding-left:25px;padding-top:25px"> {$user.LastName}</h3> <div style="font-size:13pt;padding-left:25px;padding-top:25px;padding-right:25px"> {$user.PersonalText} </div> </div> {/if} Det er altså "PersonalText" herover der skal vises nøjagtigt om det indtastes i boxen. Ligenu skriver den bare al teksten ud i en lang smøre. Kan du fortælle mig hvor jeg skal indsætte den funktion du nævnte..??