PDA

View Full Version : Del.icio.us Mod aanpassen template


mispatty
07-15-2008, 02:16 PM
Kan iemand mij hier mee helpen.

Ik maak gebruik van een ander template, dus zijn de codes anders.

Find:
---------------
<li>
<label for="pass-input" class="label">{l}Password{/l}</label>
<input type="password" id="pass-input" name="pass" value="" class="text" />
{validate form="login" id="v_pass" message=$smarty.capture.field_required}
</li>

----------------------
Replace with:
----------------------
<li>
<label for="pass-input" class="label">{l}Password{/l}</label>
<input type="password" id="pass-input" name="pass" value="" class="text" />
{validate form="login" id="v_pass" message=$smarty.capture.field_required}
</li>
<li>
<label for="remember" class="label">{l}Remember me{/l}</label>
<input align="left" type="checkbox" id="remember" name="save_session" />
</li>



----------------------------------------------------------------
En dit is mijn template

{capture name="title"} - {l}User Login{/l}{/capture}
{capture assign="in_page_title"}{l}User Login{/l}{/capture}
{capture assign="description"}{l}Login to your account and add new or review your old links.{/l}{/capture}

{include file="header.tpl"}
{include file="top_bar.tpl"}

{strip}

<h3>{l}Please enter your username and password to log in.{/l}</h3>
<form method="post" action="">
<table border="0" class="formPage" align="center" width="40%">
<tr>
{if $failed}
<td colspan="2" class="err">{l}Invalid username or password.{/l}</td>
{/if}
{if $no_permission}
<td colspan="2" class="err">{l}No permissions set for this user.{/l}</td>
{/if}
</tr>
<tr>
<td>{l}User{/l}</td>
<td>
<input type="text" name="user" value="{$user}" size="10" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
{validate form="login" id="v_user" message=$smarty.capture.field_required}
</td>
</tr>
<tr>
<td>{l}Password{/l}</td>
<td>
<input type="password" name="pass" value="" size="10" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
{validate form="login" id="v_pass" message=$smarty.capture.field_required}
</td>
</tr>
<tr>
<td >
<a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register{/l}">{l}Register{/l}</a>
</td>
<td >
<a href="{$smarty.const.DOC_ROOT}/profile.php?mode=sendpassword" title="{l}Recover your password{/l}">{l}I forgot my password{/l}</a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="submit" value="Login" class="btn" /></td>
</tr>
</table>
</form>

{include file="footer.tpl"}
{/strip}

Iemand knap hier, die zou weten hoe dat moet. Ik heb er echt totaal geen verstand van.

Patty:)

sidneyrill
07-15-2008, 11:24 PM
{capture name="title"} - {l}User Login{/l}{/capture}
{capture assign="in_page_title"}{l}User Login{/l}{/capture}
{capture assign="description"}{l}Login to your account and add new or review your old links.{/l}{/capture}

{include file="header.tpl"}
{include file="top_bar.tpl"}

{strip}

<h3>{l}Please enter your username and password to log in.{/l}</h3>
<form method="post" action="">
<table border="0" class="formPage" align="center" width="40%">
<tr>
{if $failed}
<td colspan="2" class="err">{l}Invalid username or password.{/l}</td>
{/if}
{if $no_permission}
<td colspan="2" class="err">{l}No permissions set for this user.{/l}</td>
{/if}
</tr>
<tr>
<td>{l}User{/l}</td>
<td>
<input type="text" name="user" value="{$user}" size="10" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
{validate form="login" id="v_user" message=$smarty.capture.field_required}
</td>
</tr>
<tr>
<td>{l}Password{/l}</td>
<td>
<label for="remember" class="label">{l}Remember me{/l}</label>
<input align="left" type="checkbox" id="remember" name="save_session" />
<input type="password" name="pass" value="" size="10" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH }" class="text" />
{validate form="login" id="v_pass" message=$smarty.capture.field_required}
</td>
</tr>
<tr>
<td >
<a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register{/l}">{l}Register{/l}</a>
</td>
<td >
<a href="{$smarty.const.DOC_ROOT}/profile.php?mode=sendpassword" title="{l}Recover your password{/l}">{l}I forgot my password{/l}</a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="submit" value="Login" class="btn" /></td>
</tr>
</table>
</form>

{include file="footer.tpl"}
{/strip}

mispatty
07-16-2008, 11:52 AM
Heel erg bedankt, het werkt. Ik zou niets zijn zonder dit forum.
Vraagje trouwens, hoe kom ik op het support forum gedeelte, ik heb voor het script betaald, en voor het forum, heb nou v3.3.0. Ik krijg elke keer de melding dat ik er niet op mag.

sidneyrill
07-16-2008, 11:43 PM
De supporters forum is een speciale sektie.
Het kost $10 om lid te worden.
eenvoudig inloggen in je phpld Home page en een lidmaatschap kopen.