Jump to content

IPS 4.x Community Suite Help


.:HyPeX:.

Recommended Posts

Hello everyone, so i'm stuck trying to know how to add server information into my profile feed from each post i.e.

rY0gWED.png

So far i could make this by adding a custom profile field - But this had one big issue: i cant force it on every single profile, or i do not know how.

Any help would be greatly appreciated.

Link to comment

Found this, what should i be editing? (How could i load in here data from the IPB Database)

  
{{$idField = $comment::$databaseColumnId;}} 
{{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}} 
{{if $comment->isIgnored()}} 
    <div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'> 
        {lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a> 
        <ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'> 
            <li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li> 
            <li class='ipsMenu_sep ipsJS_show'><hr></li> 
            <li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li> 
            <li class='ipsMenu_item'><a href='{url="app=core&module=members&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li> 
        </ul> 
    </div> 
{{endif}} 
  
<a id='comment-{$comment->$idField}'></a> 
<article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'> 
    {{if $item->isQuestion() and !$comment->new_topic}} 
        {template="postRating" group="topics" app="forums" params="$item, $comment, $votes"} 
    {{endif}} 
    <aside class='ipsComment_author cAuthorPane ipsAreaBackground_light ipsColumn ipsColumn_medium'> 
        <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'>  {template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3> 
        <ul class='cAuthorPane_info ipsList_reset'> 
            {{if $comment->author()->member_title && $comment->author()->member_id}} 
                <li class='ipsResponsive_hidePhone'>{$comment->author()->member_title}</li> 
            {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}} 
                <li class='ipsResponsive_hidePhone'>{$comment->author()->rank['title']}</li> 
            {{endif}} 
            {{if $comment->author()->rank['image'] && $comment->author()->member_id}} 
                <li class='ipsResponsive_hidePhone'>{$comment->author()->rank['image']|raw}</li> 
            {{endif}} 
  
            <li class='cAuthorPane_photo'> 
                {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} 
            </li> 
            <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> 
            {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} 
                <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> 
            {{endif}} 
            {{if $comment->author()->member_id}} 
                <li class='ipsResponsive_hidePhone'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</li> 
                <li class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</li> 
                {{if $comment->author()->reputationImage()}} 
                    <li class='ipsPad_half ipsResponsive_hidePhone'> 
                        <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''> 
                    </li> 
                {{endif}} 
                {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"} 
            {{endif}} 
        </ul> 
    </aside> 
    <div class='ipsColumn ipsColumn_fluid'> 
        {template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"} 
    </div> 
</article> 

Link to comment

Actually, add

<li class='ipsResponsive_hidePhone ipsType_break'> 
    […] 
</li> 

just after and outside the foreach loop in core > front > global > customFieldsDisplay to have one extra custom profile field which is constant and always shown for every author

If you want to let users chose what to display themselves, I'm afraid you'll need to do a bit of PHP coding for that (creating a plugin or hook)

Link to comment
I tried to add

<li class='ipsResponsive_hidePhone ipsType_break'> 
  Server Monitor 2.0 
</li> 

But after clicking on save and reloading a topic page, there isnt any change visible, do i need to reload from somewhere else to see changes?

Are you using default theme?

Link to comment

You're clearly showing two themes on the screenshot - ‘Default’ and ‘Elite Masters Players - Christmas.’ Try editing Elite Masters Players theme since it's set as the default one (i.e. the main theme, used when no other theme is set by the end-user)

Link to comment
You're clearly showing two themes on the screenshot - ‘Default’ and ‘Elite Masters Players - Christmas.’ Try editing Elite Masters Players theme since it's set as the default one (i.e. the main theme, used when no other theme is set by the end-user)

Thats why im saying its a only one theme, the christmas one is just a palette wich changes forums colors and doesnt have any possibility to edit code itself.

Link to comment
Actually, the other thing is also a proper theme - click on the caret-down icon, and '> Edit HTML and CSS' should be in the dropdown.

Oh yeah, just noticed that :lol: anyways, now i've no idea how to get my database info into this place here, how could i do so? Tried using the

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...