1 pgs Dec 31, 2006 04:58
3 pgs Dec 31, 2006 17:09
Thanks. Well, it seems to be corected in 1.9.*, but since those are beta, i won't use them. On the other hand, the manual correction is taking too much time to try and error...
So, until a fixed stable version, I am going to manually correcgt the URL. I am the only user of my blog, so this improvistaion is acceptable.
Regards, pgs
4 yabba Dec 31, 2006 18:31
If you're the only user you can (probably) cheat by adding the links manually in your _main.php
if( !empty( $current_User ) )
{
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>';
echo '<li><a href="/?disp=profile">Profile</a></li>';
echo '<li><a href="/?disp=subs">Subscriptions</a></li>';
}
...ish
¥
5 pgs Jan 01, 2007 13:05
Thank you, good idea.
The solution is indeed to change the code in main.php.
I replaced
<div class="bSideItem">
<h3><?php echo T_('Account') ?></h3>
<ul>
<?php
user_login_link( '<li>', '</li>' );
user_register_link( '<li>', '</li>' );
user_admin_link( '<li>', '</li>' );
user_profile_link( '<li>', '</li>' );
user_subs_link( '<li>', '</li>' );
user_logout_link( '<li>', '</li>' );
?>
</ul>
</div>
with
<div class="bSideItem">
<h3><?php echo T_('Account') ?></h3>
<ul>
<?php
if( !empty( $current_User ) )
{
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>';
echo '<li><a href="/?disp=profile">Profil</a></li>';
echo '<li><a href="/?disp=subs">Abonnieren</a></li>';
}
if( empty( $current_User ) )
{
echo '<li><a href="'.$htsrv_url.'/login.php?action=login">Login...</a></li>';
}
?>
</ul>
</div>
regards, pgs
6 yabba Jan 01, 2007 13:14
You could reduce your code slightly, as there's no need to check twice :-
<div class="bSideItem">
<h3><?php echo T_('Account') ?></h3>
<ul>
<?php
if( empty( $current_User ) )
{// user is not logged in
echo '<li><a href="'.$htsrv_url.'/login.php?action=login">Login...</a></li>';
}
else
{// user is logged in
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>';
echo '<li><a href="/?disp=profile">Profil</a></li>';
echo '<li><a href="/?disp=subs">Abonnieren</a></li>';
}
?>
</ul>
</div>
¥
7 pgs Jan 01, 2007 15:39
Right.
regards, pgs
See if [url=http://forums.b2evolution.net//viewtopic.php?t=9530&highlight=mod_security]this post[/url] helps.
I'm fairly sure this has already been corrected in 1.9.x onwards
¥