Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z instalacja cashmoda
RDS
post 3.03.2010, 19:35:27
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 3.03.2010

Ostrzeżenie: (0%)
-----


no to tak jak w temacie mam problem z instalacja cashmoda
na forum phpbb.pl mi nie pomogli wiec mam nadzieje ze ktoś tu mi pomoże
to tak jest w instrukcji:
Kod
#
#-----[ ZNAJDŹ ]------------------------------------------
#
    default:

#
#-----[ DODAJ PRZED ]------------------------------------------
#
    case $cm_memberlist->modecheck($mode):
        $order_by = $cm_memberlist->getfield($mode) . " $sort_order LIMIT $start, " . $board_config['topics_per_page'];
        break;

#
#-----[ ZNAJDŹ ]------------------------------------------ <<<<<<<<<<<<TU JESTEM
#
    ORDER BY $order_by";

#
#-----[ DODAJ PO ]------------------------------------------
#
$cm_memberlist->generate_columns($template,$sql,8);


dodałem poprzednie zadanie bo myślałem że chodzi o $order_by w tym co dodałem w poprzednim ale logicznie pomyślałem i wpadlem na to że od razu by podali w jednym kodzie co dodać a więc gdzie mam dodać to:

Kod
$cm_memberlist->generate_columns($template,$sql,8);
[/code]

chyba w tym gdzies
Kod
switch( $mode )
{
    case 'joined':
        $order_by = "u.user_regdate $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'lastvisit':
        $order_by = "u.user_session_time $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'username':
        $order_by = "u.username $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'location':
        $order_by = "u.user_from $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'posts':
        $order_by = "u.user_posts $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'email':
        $order_by = "u.user_email $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'website':
        $order_by = "u.user_website $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'topten':
        $order_by = "u.user_posts $sort_order LIMIT 10";
        break;
    case 'special_rank':
        $order_by = "u.special_rank $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'user_visit':
        $order_by = "u.user_visit $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case 'user_spend_time':
        $order_by = "u.user_spend_time $sort_order LIMIT $start, " . $user_topics_per_page;
        break;
    case $cm_memberlist->modecheck($mode):
        $order_by = $cm_memberlist->getfield($mode) . " $sort_order LIMIT $start, " . $board_config['topics_per_page'];
        break;
        default:
        $order_by = "u.user_regdate $sort_order LIMIT $start, " . $user_topics_per_page;
        break;


a jeżeli nie tu to pewnie tu
Kod
if ( $custom_fields_exists )
{
    for($i = 0; $i < count($custom_fields[0]); $i++)
    {
        $show_this_field = custom_fields('viewable', $custom_fields[12][$i], false);
        if ( $show_this_field )
        {
            $split_field = 'u.user_field_' . $custom_fields[0][$i];
            if ( $mode == $split_field )
            {
                $order_by = "$split_field $sort_order LIMIT $start, " . $user_topics_per_page;


Ten post edytował RDS 3.03.2010, 19:37:56
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:01