View Single Post

Old 05-13-2007   #3 (permalink)
Sergey Hmelevsky
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: I can removed this section when a guest want posting a message...?

For xooArticles v1.0.04
1. To disable this when post article comment, tou should remove/comment lines #59-67 in file view-article.php
PHP Code:
        if (!$gAccount)
        {
            
// Redirect to post-action page
            
$temp =& $xaFront->getArticle($article);
            
$redir get_view_article_url($temp);
            
$redir urlencode(base64_encode($redir));
            
header("Location: {$gConfig['base']}{$gConfig['subdir']}postaction.php?temp_sid={$sid}&redir={$redir}&item=2");
            exit;
        } 
2. The same way, to this message for subitem, comment lines #80-87 in file view-subitem.php
PHP Code:
        if (!$gAccount)
        {
            
// Redirect to post-action page
            
$redir get_view_subitem_url($subitemfalse);
            
$redir urlencode(base64_encode($redir));
            
header("Location: {$gConfig['base']}{$gConfig['subdir']}postaction.php?temp_sid={$sid}&redir={$redir}&item=3");
            exit;
        } 
Sergey Hmelevsky is offline   Reply With Quote