To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

1.12.7 i starsze - Nowy wygląd ostatniego postu

kooza - 28-12-2010, 16:14

bielu, tak to własnie specialnie jest zrobione. ;)
bielu - 28-12-2010, 16:25

to ja chce mieć wyjątkowe xD
RybekZKlanu - 29-12-2010, 00:12

kooza zamienisz mi cellpic w index_boxie bez grzebania w css? Lap zalacznik
mafialuka - 01-01-2011, 21:12

Co daje ten mod w ogole. Bo w 1 post nie ma nic a wchodząc na demo z 2 linka nic nowego nie widać

Ostatni post?

kevin_ napisał/a:
a ten dodatek wyświetla się na stronie głównej

bielu - 01-01-2011, 21:13

no zmienia okienko ostatniego postu
mafialuka - 01-01-2011, 23:32

Ahaaaaaa to :) thx

[ Dodano: 01-01-2011, 23:53 ]
LOOL Wgrałem to był problem z
kooza napisał/a:
functions_hierarchy.php


w środku mówiło zeby skasować } to tak zrobilem włączyło sie i info

Cytat:
Informacja

Brak For


Podmieniłem index_box na ten z załącznika...

[ Dodano: 01-01-2011, 23:53 ]
Teraz dalem kopie przed dodaniem tego..

bielu - 01-01-2011, 23:58

zrób to:
Kod:
otwórz functions_hierarchy.php
znajdź: Kod:
// last post
            $last_post = '--';

            if ( $data['tree.topic_last_post_id'] )
            {
                $topic_title = $data['tree.topic_title'];
                if ( strlen($topic_title) > (intval($board_config['last_topic_title_length']) -3 ) )
                {
                    $topic_title = substr($topic_title, 0, intval($board_config['last_topic_title_length'])) . '...';
                }
                $topic_title = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '" title="' . $data['tree.topic_title'] . '" class="gensmall">' . $topic_title . '</a>';
                $board_config['last_topic_title'] = (!$board_config['last_topic_title_over']) ? $userdata['user_last_topic_title'] : $board_config['last_topic_title'];
                $last_postmsg = (($board_config['last_topic_title']) ? $topic_title : '');
                $last_postmsg = ($board_config['last_topic_title']) ? '' . $lang['Last_Post'] . ': ' . $last_postmsg . '' : '';

                $colored_username = color_username($data['tree.user_level'], $data['tree.user_jr'], $data['tree.post_user_id'], $data['tree.post_username']);
                $color_username = $colored_username[0];

                $last_post_time = create_date($board_config['default_dateformat'], $data['tree.post_time'], $board_config['board_timezone']);
                $last_post = $last_post_time . '<br />';
                if ( $data['post_approve'] || !$data['forum_moderate'] )
                {
                    $last_post .= ( $data['tree.post_user_id'] == ANONYMOUS ) ? $data['tree.post_username'] . ' ' : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $data['tree.post_user_id']) . '"' . $colored_username[1] . ' class="gensmall">' . $color_username . '</a> ';
                }

                $last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['Last_Post'] . '" title="' . $lang['Last_Post'] . '" /></a>';
            }


zamień na: Kod:
/// last post
            $last_post = '--';

            if ( $data['tree.topic_last_post_id'] )
            {
                $topic_title = $data['tree.topic_title'];
                if ( strlen($topic_title) > (intval($board_config['last_topic_title_length']) -3 ) )
                {
                    $topic_title = substr($topic_title, 0, intval($board_config['last_topic_title_length'])) . '...';
                }
                $topic_title = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '" title="' . $data['tree.topic_title'] . '" class="gensmall">' . $topic_title . '</a>';
                $board_config['last_topic_title'] = (!$board_config['last_topic_title_over']) ? $userdata['user_last_topic_title'] : $board_config['last_topic_title'];
                $last_postmsg = (($board_config['last_topic_title']) ? $topic_title : '');
                $last_postmsg = ($board_config['last_topic_title']) ? '' . $lang['Last_Post'] . ': ' . $last_postmsg . '' : '';

                $colored_username = color_username($data['tree.user_level'], $data['tree.user_jr'], $data['tree.post_user_id'], $data['tree.post_username']);
                $color_username = $colored_username[0];

                $last_post_time = create_date($board_config['default_dateformat'], $data['tree.post_time'], $board_config['board_timezone']);
                $last_post = '';
                if ( $data['post_approve'] || !$data['forum_moderate'] )
                {
                    $last_post .= ( $data['tree.post_user_id'] == ANONYMOUS ) ? $data['tree.post_username'] . ' ' : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $data['tree.post_user_id']) . '"' . ' class="gensmall">' . $color_username . '</a>, ';
                }

                $last_post .= '' .  $last_post_time;
            }

mafialuka - 02-01-2011, 00:07

O to pliki:


@edit
@up

Zaraz zrobie :)

xlesiu - 02-01-2011, 00:10

Poprawiłem link do dema.
mafialuka - 02-01-2011, 00:11

bielu napisał/a:
zrób to:
Kod:
otwórz functions_hierarchy.php
znajdź: Kod:
// last post
            $last_post = '--';

            if ( $data['tree.topic_last_post_id'] )
            {
                $topic_title = $data['tree.topic_title'];
                if ( strlen($topic_title) > (intval($board_config['last_topic_title_length']) -3 ) )
                {
                    $topic_title = substr($topic_title, 0, intval($board_config['last_topic_title_length'])) . '...';
                }
                $topic_title = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '" title="' . $data['tree.topic_title'] . '" class="gensmall">' . $topic_title . '</a>';
                $board_config['last_topic_title'] = (!$board_config['last_topic_title_over']) ? $userdata['user_last_topic_title'] : $board_config['last_topic_title'];
                $last_postmsg = (($board_config['last_topic_title']) ? $topic_title : '');
                $last_postmsg = ($board_config['last_topic_title']) ? '' . $lang['Last_Post'] . ': ' . $last_postmsg . '' : '';

                $colored_username = color_username($data['tree.user_level'], $data['tree.user_jr'], $data['tree.post_user_id'], $data['tree.post_username']);
                $color_username = $colored_username[0];

                $last_post_time = create_date($board_config['default_dateformat'], $data['tree.post_time'], $board_config['board_timezone']);
                $last_post = $last_post_time . '<br />';
                if ( $data['post_approve'] || !$data['forum_moderate'] )
                {
                    $last_post .= ( $data['tree.post_user_id'] == ANONYMOUS ) ? $data['tree.post_username'] . ' ' : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $data['tree.post_user_id']) . '"' . $colored_username[1] . ' class="gensmall">' . $color_username . '</a> ';
                }

                $last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['Last_Post'] . '" title="' . $lang['Last_Post'] . '" /></a>';
            }


zamień na: Kod:
/// last post
            $last_post = '--';

            if ( $data['tree.topic_last_post_id'] )
            {
                $topic_title = $data['tree.topic_title'];
                if ( strlen($topic_title) > (intval($board_config['last_topic_title_length']) -3 ) )
                {
                    $topic_title = substr($topic_title, 0, intval($board_config['last_topic_title_length'])) . '...';
                }
                $topic_title = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $data['tree.topic_last_post_id']) . '#' . $data['tree.topic_last_post_id'] . '" title="' . $data['tree.topic_title'] . '" class="gensmall">' . $topic_title . '</a>';
                $board_config['last_topic_title'] = (!$board_config['last_topic_title_over']) ? $userdata['user_last_topic_title'] : $board_config['last_topic_title'];
                $last_postmsg = (($board_config['last_topic_title']) ? $topic_title : '');
                $last_postmsg = ($board_config['last_topic_title']) ? '' . $lang['Last_Post'] . ': ' . $last_postmsg . '' : '';

                $colored_username = color_username($data['tree.user_level'], $data['tree.user_jr'], $data['tree.post_user_id'], $data['tree.post_username']);
                $color_username = $colored_username[0];

                $last_post_time = create_date($board_config['default_dateformat'], $data['tree.post_time'], $board_config['board_timezone']);
                $last_post = '';
                if ( $data['post_approve'] || !$data['forum_moderate'] )
                {
                    $last_post .= ( $data['tree.post_user_id'] == ANONYMOUS ) ? $data['tree.post_username'] . ' ' : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $data['tree.post_user_id']) . '"' . ' class="gensmall">' . $color_username . '</a>, ';
                }

                $last_post .= '' .  $last_post_time;
            }


Parse error: syntax error, unexpected T_STRING in public_html/includes/functions_hierarchy.php on line 311

bielu - 02-01-2011, 00:12

podeślij plik z przed edycji
mafialuka - 02-01-2011, 00:19

Nadal wywala bład z }

Kasowanie tego znaku = Brak for

[ Dodano: 02-01-2011, 00:20 ]
all pliku są w moim post wyżej nad xlesiu

http://www.przemo.org/php...ad.php?id=22628

[ Dodano: 02-01-2011, 00:21 ]
Kod:
Parse error: syntax error, unexpected '}' in public_html/includes/functions_hierarchy.php on line 579

bielu - 02-01-2011, 00:29

looknij:

[ Dodano: 02-01-2011, 00:29 ]
to moja wersja:P

mafialuka - 02-01-2011, 00:55

Ille zabawy :P jeszcze musze dostosować .css ;p DZIEKI działa ta przeróbka

[ Dodano: 02-01-2011, 03:07 ]
Mozesz jeszcze napisać gdzie zmienić w tej twojej przeróbce aby działało html w opisach kategorii bo mam np

Problemy z szablonami


a opis:

Wczesniej miałem dobrze

bielu - 02-01-2011, 10:16

to nie powinno n ato wpłynąć to zmienia tylko wygląd ostatniego postu nie wpływa na kategorie


Powered by phpBB modified by Przemo © 2003 phpBB Group