Jump to content
  • 0
Sign in to follow this  
playsmap

Cum mut descrierea deasupra subforumurilor in IPB 4?

Question

11 answers to this question

Recommended Posts

  • 0

ACP -> Customization -> Themes -> forums -> front -> index -> forumRow -> cauti si decupezi:

{{if $forum->description}}
    <div class="ipsDataItem_meta ipsType_richText">{$forum->description|raw}</div>
   {{endif}}

si il muti sub:

   <h4 class="ipsDataItem_title ipsType_large">
    {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}
     <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password"}'>{$forum->_title}</a>
    {{else}}
     <a href="{$forum->url()}">{$forum->_title}</a>
    {{endif}}
    {{if $forum->redirect_on}}
     &nbsp;&nbsp;<span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
    {{endif}}
   </h4>
  • Like 1

Share this post


Link to post
Share on other sites

  • 0
On 10/12/2015 at 1:52 PM, gaby said:

ACP -> Customization -> Themes -> forums -> front -> index -> forumRow -> cauti si decupezi:


{{if $forum->description}}
    <div class="ipsDataItem_meta ipsType_richText">{$forum->description|raw}</div>
   {{endif}}

si il muti sub:


   <h4 class="ipsDataItem_title ipsType_large">
    {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}
     <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password"}'>{$forum->_title}</a>
    {{else}}
     <a href="{$forum->url()}">{$forum->_title}</a>
    {{endif}}
    {{if $forum->redirect_on}}
     &nbsp;&nbsp;<span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
    {{endif}}
   </h4>

La tema Animation pentru 4.2.x poti terog sa-mi spui ce modific ca nu gasesc linia 

<h4 class="ipsDataItem_title ipsType_large">
    {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}

Share this post


Link to post
Share on other sites
  • 0

Am rezolvat ! 

daca poti terog sa-mi faci sa fie subforumurile in 3 coloane ? @T. Petrisor

 

ForumRow:

Spoiler

 

{{if $forum->can('view')}}
{{$lastPost = $forum->lastPost();}}
    <li class="cForumRow ipsDataItem ipsDataItem_responsivePhoto {{if \IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsDataItem_unread{{endif}} ipsClearfix" data-forumID="{$forum->_id}">
        <div class="ipsDataItem_icon ipsDataItem_category">
            {{if !$forum->redirect_on}}
            {{if \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}<a href="{{if $isSubForum}}{$forum->url()->setQueryString( array( 'do' => 'markRead', 'return' => $forum->parent_id ) )->csrf()}{{else}}{$forum->url()->setQueryString( 'do', 'markRead' )->csrf()}{{endif}}" data-action='markAsRead' title='{lang="mark_forum_read"}' data-ipsTooltip>{{endif}}
            {{endif}}
                {{if $forum->icon}}
                    <img src="{file="$forum->icon" extension="forums_Icons"}" class='ipsItemStatus ipsItemStatus_custom {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'>
                {{else}}
                    {{if $forum->redirect_on}}
                        <span class='ipsItemStatus ipsItemStatus_large cForumIcon_redirect {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}>
                            <i class='fa fa-arrow-right'></i>
                        </span>
                    {{elseif $forum->forums_bitoptions['bw_enable_answers']}}
                        <span class='ipsItemStatus ipsItemStatus_large cForumIcon_answers {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}>
                            <i class='fa fa-question'></i>
                        </span>
                    {{elseif $forum->password}}
                        <span class='ipsItemStatus ipsItemStatus_large cForumIcon_password {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}>
                            {{if $forum->loggedInMemberHasPasswordAccess()}}
                                <i class='fa fa-unlock'></i>
                            {{else}}
                                <i class='fa fa-lock'></i>
                            {{endif}}
                        </span>
                    {{else}}
                        <span class='ipsItemStatus ipsItemStatus_large cForumIcon_normal {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}>
                            
                        </span>
                    {{endif}}
                {{endif}}
            {{if !$forum->redirect_on and \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}
            </a>
            {{endif}}
        </div>
        <div class="ipsDataItem_main">
            <h4 class="ipsDataItem_title ipsType_large ipsType_break">
                {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}
                    <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password" sprintf="$forum->_title"}'>{$forum->_title}</a>
                {{else}}
                    <a href="{$forum->url()}">{$forum->_title}</a>
                {{endif}}
                {{if $forum->redirect_on}}
                    &nbsp;&nbsp;<span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
                {{endif}}
            </h4>
            
            {{endif}}
            {{if $forum->description}}
                <div class="ipsDataItem_meta ipsType_richText ipsContained">{$forum->description|raw}</div>
            {{endif}}
        </div>

        {{if !$forum->redirect_on}}
<div class="ipsDataItem_stats ipsDataItem_statsLarge">
    {{if $lastPost}}
    <dl>
        {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
        <ul class="staticpost">
            <li>
                <span class="stats-icon stats-icon-posts"></span>
            </li>
            <li>
                <span>{number="$count"}</span> 
             posts
            </li>
        </ul>
    </dl>
    {{endif}}
                {{if \IPS\forums\Topic::modPermission( 'unhide', NULL, $forum ) AND $unapprovedContent = $forum->unapprovedContentRecursive() and ( $unapprovedContent['topics'] OR $unapprovedContent['posts'] )}}
                    <strong class='ipsType_warning ipsType_medium'>
                        <i class='fa fa-warning'></i>
                        {{if $unapprovedContent['topics']}}
                            <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_topics' ) )->csrf()}' data-ipsTooltip title='{lang="queued_topics_badge" pluralize="$unapprovedContent['topics']"}' class='ipsType_blendLinks'>{$unapprovedContent['topics']}</a>
                        {{else}}
                            <span class='ipsType_light'>0</span>
                        {{endif}}
                        /
                        {{if $unapprovedContent['posts']}}
                            <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_posts' ) )->csrf()}' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$unapprovedContent['posts']"}' class='ipsType_blendLinks'>{$unapprovedContent['posts']}</a>
                        {{else}}
                            <span class='ipsType_light'>0</span>
                        {{endif}}
                    </strong>
                {{endif}}
      </div>
<ul class="ipsDataItem_lastPoster ipsDataItem_withPhoto">
               <div class="ipsLastPosters">
                 {{if $lastPost}}
                <li>{template="userPhoto" app="core" group="global" params="$lastPost['author'], 'tiny'"}</li>
                {{if $lastPost['topic_title']}}<li><a href="{$lastPost['topic_url']->setQueryString( 'do', 'getNewComment' )}" title='{$lastPost['topic_title']}' class='linkRowCategory'>{truncate="$lastPost['topic_title']" length="28"}</a></li>{{endif}}
                <li class="ipsType_blendLinks lastpostCC"><span class="mobilenone">{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</span>&nbsp;{datetime="$lastPost['date']"}
                {{if $lastPost['topic_title']}}
                        <li class="ipsType_light"><a href='{$lastPost['topic_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}'></a></li>
                    {{else}}
                        <li class="ipsType_light">{datetime="$lastPost['date']"}</li>
                    {{endif}}
                {{else}}
                    <li class='ipsType_light ipsResponsive_showDesktop'>{{if $forum->password}}{lang="no_forum_posts_password"}{{else}}{lang="no_forum_posts"}{{endif}}</li>
                {{endif}}
            </div></ul>        
        {{endif}}
        {{if $table and $table->canModerate()}}
            <div class='ipsDataItem_modCheck'>
                <span class='ipsCustomInput'>
                    <input type='checkbox' data-role='moderation' name="moderate[{$forum->_id}]" data-actions="{expression="implode( ' ', $table->multimodActions( $forum ) )"}" data-state=''>
                    <span></span>
                </span>
            </div>
        {{endif}}
    </li>
        {{if $forum->hasChildren()}}
                <ul class="ipsDataItem2 ipsDataItem_subList ipsList_inline">
                    {{foreach $forum->children() as $subforum}}
                        <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}">
                            <a href="{$subforum->url()}">{{if \IPS\forums\Topic::containerUnread( $subforum )}}<span class='ipsItemStatus ipsItemStatus_tiny {{if !\IPS\forums\Topic::containerUnread( $subforum ) && !$subforum->redirect_on}}ipsItemStatus_read{{endif}}'></span>&nbsp;{{endif}}{$subforum->_title}</a>
                        </li>
                    {{endforeach}}
                </ul>
            {{endif}}

 

 

Share this post


Link to post
Share on other sites
  • 0

@olle pune codul asta in custom.css

 

Spoiler

/* Subforum columns - start */
.ipsDataItem_subList{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

    .ipsDataItem_subList li{
        width: calc((99% / 1));
        line-height: 26px;
        flex: 0 0 auto;
        position: relative;
    }
    
    .ipsDataItem_subList > li,
    html[dir="rtl"] .ipsDataItem_subList > li {
        margin-right: 0 !important;
        margin-left: 0;
    }

        
        
        html[dir='rtl'] .ipsDataItem_subList a{
            left: 5px;
            right: 15px;
        }
        
        html[dir='ltr'] .ipsDataItem_subList .ipsDataItem_unread a{
            left: 12px;
        }
        
        html[dir='rtl'] .ipsDataItem_subList .ipsDataItem_unread a{
            right: 12px;
        }
        
        .ipsDataItem_subList:before,
        .ipsDataItem_subList li a::after{
            display: none;
        }

@media screen and (min-width: 650px){
    
    /* Increase to 2 columns when appropriate */
    .ipsDataItem_subList li{
        width: calc((96% / 2));
    }
        
}

@media screen and (min-width: 1300px){
    
    /* Increase to 3 columns on large screens */
    .ipsDataItem_subList li{
        width: calc((99% / 3));
    }
        
}
/* Subforum columns - end */

 

Share this post


Link to post
Share on other sites
  • 0
On 6/25/2018 at 7:57 AM, T. Petrisor said:

@olle pune codul asta in custom.css

 

  Reveal hidden contents

/* Subforum columns - start */
.ipsDataItem_subList{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

    .ipsDataItem_subList li{
        width: calc((99% / 1));
        line-height: 26px;
        flex: 0 0 auto;
        position: relative;
    }
    
    .ipsDataItem_subList > li,
    html[dir="rtl"] .ipsDataItem_subList > li {
        margin-right: 0 !important;
        margin-left: 0;
    }

        
        
        html[dir='rtl'] .ipsDataItem_subList a{
            left: 5px;
            right: 15px;
        }
        
        html[dir='ltr'] .ipsDataItem_subList .ipsDataItem_unread a{
            left: 12px;
        }
        
        html[dir='rtl'] .ipsDataItem_subList .ipsDataItem_unread a{
            right: 12px;
        }
        
        .ipsDataItem_subList:before,
        .ipsDataItem_subList li a::after{
            display: none;
        }

@media screen and (min-width: 650px){
    
    /* Increase to 2 columns when appropriate */
    .ipsDataItem_subList li{
        width: calc((96% / 2));
    }
        
}

@media screen and (min-width: 1300px){
    
    /* Increase to 3 columns on large screens */
    .ipsDataItem_subList li{
        width: calc((99% / 3));
    }
        
}
/* Subforum columns - end */

 

Nu merge ! am lasat un screen mai jos sa vezi cum le face !

Screenshot_5.png

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, olle said:

Nu merge ! am lasat un screen mai jos sa vezi cum le face !

Screenshot_5.png

Dă-mi mesaj cu un cont care are acces pe teme.

Share this post


Link to post
Share on other sites
  • 0
On 6/27/2018 at 6:49 PM, Sebastian C. said:

Dă-mi mesaj cu un cont care are acces pe teme.

Pai fara acces nu se poate de rezolvat >?

Share this post


Link to post
Share on other sites
  • 0
On 7/4/2018 at 1:17 AM, Sebastian C. said:

Nu stau să iau cu inspectorul de elemente fiecare cod care-ți trebuie editat.

Ti-am dat pm cu datele !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×