Temat: Portal dl 1.3 taki jak ten serwis

Czy jest możliwość posiadania takiego portalu jak ten serwis z downloadem, reklamą itp.?

2

Odp: Portal dl 1.3 taki jak ten serwis

Chyba chodzi ci o moduł: portal by daris. Chyba jest tutaj w dziale Download.

3

Odp: Portal dl 1.3 taki jak ten serwis

ale np. w portalu nie ma działu download. a tu na stronie jest...

4

Odp: Portal dl 1.3 taki jak ten serwis

W sensie o to: http://punbb.wiiem.pl/download/?

Ostatnio edytowany przez Proximus (2009-12-05 18:16:44)

5

Odp: Portal dl 1.3 taki jak ten serwis

Zaistalowałem Portal by daris . Jest super, ale w panelu active links na stronie główniej pojawia mi sie nad każdym nieprzeczytanym postem komunikat:

Notice: Undefined variable: id in /home/oswietlenie/ftp/forum_oswietlenia/extensions/portal_by_daris/panels/active_topics.php on line 165

W linijce 165 tego pliku jest:
   

// Does this topic contain posts we haven't read? If so, tag it accordingly.
            if (!$forum_user['is_guest'] && $cur_topic['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_topic['id']]) || $tracked_topics['topics'][$cur_topic['id']] < $cur_topic['last_post']) && (!isset($tracked_topics['forums'][$id]) || $tracked_topics['forums'][$id] < $cur_topic['last_post']))

A dalej

{
                $forum_page['item_nav']['new'] = '<em class="item-newposts"><a href="'.forum_link($forum_url['topic_new_posts'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.$lang_forum['New posts'].'</a></em>';
                $forum_page['item_status']['new'] = 'new';
            }
 
            ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_nav_merge')) ? eval($hook) : null;
 
            if (!empty($forum_page['item_nav']))
                $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>';
 
            ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_subject_merge')) ? eval($hook) : null;
 
            $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_topic['num_replies']).'</strong> <span class="label">'.(($cur_topic['num_replies'] == 1) ? $lang_forum['reply'] : $lang_forum['replies']).'</span></li>';
 
            if ($forum_config['o_topic_views'] == '1')
                $forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['view'] : $lang_forum['views']).'</span></li>';
 
            $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_forum['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_topic['last_post_id']).'">'.format_time($cur_topic['last_post']).'</a></strong> <cite>'.sprintf($lang_forum['by poster'], forum_htmlencode($cur_topic['last_poster'])).'</cite></li>';
        }
 
        $forum_page['item_subject']['starter'] = '<span class="item-starter">'.sprintf($lang_forum['Topic starter'], '<cite>'.forum_htmlencode($cur_topic['poster']).'</cite>').'</span>';
        $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']);
 
        ($hook = get_hook('xn_portal_by_daris_at_row_pre_item_status_merge')) ? eval($hook) : null;
 
        $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');
 
        ($hook = get_hook('xn_portal_by_daris_at_row_pre_display')) ? eval($hook) : null;
 
?>
        <div id="topic<?php echo $cur_topic['id'] ?>" class="main-item<?php echo $forum_page['item_style'] ?>">
            <span class="icon <?php echo implode(' ', $forum_page['item_status']) ?>"><!-- --></span>
            <div class="item-subject">
                <?php echo implode("\n\t\t\t\t", $forum_page['item_body']['subject'])."\n" ?>
            </div>
            <ul class="item-info">
                <?php echo implode("\n\t\t\t\t", $forum_page['item_body']['info'])."\n" ?>
            </ul>
        </div>
<?php
 
    }

Co może być przyczyną? błąd znika przy wszystkich nieprzeczytanych po przeczytaniu choćby jednego posta.

Ostatnio edytowany przez pecora11 (2009-12-06 14:19:16)

6

Odp: Portal dl 1.3 taki jak ten serwis

Proximus napisał/a:

W sensie o to: http://punbb.wiiem.pl/download/?

Proximus napisał/a:

W sensie o to: http://punbb.wiiem.pl/download/?

Tak.... download działający też w panelu na str głównej.

7

Odp: Portal dl 1.3 taki jak ten serwis

Spróbuj zamienić podaną wyżej linijkę na:

if (!$forum_user['is_guest'] && $cur_topic['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_topic['id']]) || $tracked_topics['topics'][$cur_topic['id']] < $cur_topic['last_post']))

Rozszerzenie Downloadu na razie zostało opublikowane w stabilnej wersji. Nie wiem czy kiedyś będzie ;p

Ostatnio edytowany przez daris (2009-12-06 14:21:24)

8

Odp: Portal dl 1.3 taki jak ten serwis

Spróbuję....   Działa, dzięki.

A z Download-em szkoda...

Ostatnio edytowany przez pecora11 (2009-12-06 14:26:17)