Custom blocks vs. custom theme snippets (was Re: [drupal-docs]
Someone with bypass input data...)
Boris Mann
borismann at gmail.com
Sun Apr 3 19:16:54 UTC 2005
- Previous message: Re: [drupal-docs] Someone with bypass input data permission please post Argg, This is one of those areas that highlights our lack of good organization in the handbook. You see I understand why this might exist under PHPTemplate since it is a specific solution, but there is also some Custom Login information here: Home » Drupal handbook » Administrator's guide » Configuration http://drupal.org/node/13777 Hmmm... bryan On Apr 1, 2005, at 8:49 PM, Boris Mann wrote: Hey: Someone contacted Ourmedia.org asking for the PHPTemplate code for doing the login area in the nav bar. I thought it would be a good time to create a "theme snippets repository", like we have for blocks. So I did: http://drupal.org/node/19854 But, I can't include the code below because it has too many funky stuff that thinks I'm trying to hack Drupal. If someone could paste this into the Custom Login node (http://drupal.org/node/19855), that would be great. (the code tags are just for formatting in the handbook) <code> <?php if ($user->uid) : ?> Logged in as: <?php print l($user->name,'user/'.$user->uid); ?> | <?php print l("logout","logout"); ?> <?php else : ?> <?php print l("Register","user/register"); ?> | Login: <form action="user/login" method="post"><input type="hidden" name="edit[destination]" value="user" /><input type="text" maxlength="64" class="form-text" name="edit[name]" id="edit-name" size="15" value="" /><input type="password" class="form-password" maxlength="64" name="edit[pass]" id="edit-pass" size="15" value="" /><input type="submit" name="op" value="Log in" /></form> <?php endif; ?> </code> -- Boris Mann http://www.bryght.com -- [ drupal-docs | http://lists.drupal.org/listinfo/drupal-docs ]
- Next message: [drupal-docs] Sorry
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On 3-Apr-05, at 8:56 AM, bryan on the web wrote:
> Argg,
>
> This is one of those areas that highlights our lack of good
> organization in the handbook. You see I understand why this might
> exist under PHPTemplate since it is a specific solution, but there is
> also some Custom Login information here:
> Home » Drupal handbook » Administrator's guide » Configuration
> http://drupal.org/node/13777
Actually, no, this is completely correct. The custom login I would
actually remove completely from the Admin guide and add to a "best
practices" section somewhere, but the solution it points to is in the
"Custom blocks repository"....which is exactly where it should live.
What I posted is a Custom theme snippet...which didn't have an area
before, so I created on.
Make sense?
>
> On Apr 1, 2005, at 8:49 PM, Boris Mann wrote:
>
>> Someone contacted Ourmedia.org asking for the PHPTemplate code for
>> doing the login area in the nav bar. I thought it would be a good time
>> to create a "theme snippets repository", like we have for blocks. So I
>> did: http://drupal.org/node/19854
--
Boris Mann
http://www.bryght.com
- Previous message: Re: [drupal-docs] Someone with bypass input data permission please post Argg, This is one of those areas that highlights our lack of good organization in the handbook. You see I understand why this might exist under PHPTemplate since it is a specific solution, but there is also some Custom Login information here: Home » Drupal handbook » Administrator's guide » Configuration http://drupal.org/node/13777 Hmmm... bryan On Apr 1, 2005, at 8:49 PM, Boris Mann wrote: Hey: Someone contacted Ourmedia.org asking for the PHPTemplate code for doing the login area in the nav bar. I thought it would be a good time to create a "theme snippets repository", like we have for blocks. So I did: http://drupal.org/node/19854 But, I can't include the code below because it has too many funky stuff that thinks I'm trying to hack Drupal. If someone could paste this into the Custom Login node (http://drupal.org/node/19855), that would be great. (the code tags are just for formatting in the handbook) <code> <?php if ($user->uid) : ?> Logged in as: <?php print l($user->name,'user/'.$user->uid); ?> | <?php print l("logout","logout"); ?> <?php else : ?> <?php print l("Register","user/register"); ?> | Login: <form action="user/login" method="post"><input type="hidden" name="edit[destination]" value="user" /><input type="text" maxlength="64" class="form-text" name="edit[name]" id="edit-name" size="15" value="" /><input type="password" class="form-password" maxlength="64" name="edit[pass]" id="edit-pass" size="15" value="" /><input type="submit" name="op" value="Log in" /></form> <?php endif; ?> </code> -- Boris Mann http://www.bryght.com -- [ drupal-docs | http://lists.drupal.org/listinfo/drupal-docs ]
- Next message: [drupal-docs] Sorry
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the drupal-docs
mailing list