Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 10/23/2017 in all areas

  1. 5 points
    Group Background in Author Pane Go to ACP > Themes > edit you theme > forums > front > topics > postContainer an find: <aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'> Change to : <aside class=' userbar ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone' data-group_id='{$comment->author()->member_group_id}'> Save Go to Go to ACP > Themes > edit you theme > CSS > custom.css and add this code: .userbar[data-group_id="4"] {background:url([Hidden Content])} html[dir] .cPost .ipsComment_content { padding-left: 10px; } Change background with image or color Change id 4 with an id of your group
  2. 2 points
    Avatar Border Colour Depending Of Group Go to ACP -> Customization -> Themes -> Your Theme -> Edit HTML and CSS -> core -> front -> global -> userPhoto and replace all content with this: {{if $member->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}} {{$memberURL = ( $warningRef ) ? $member->url()->setQueryString( 'wr', $warningRef ) : $member->url();}} <a href="{$memberURL}" data-group_id='{$member->member_group_id}' {{if $hovercard}}data-ipsHover data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size}{{if $classes}} {$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$member->name"}"> <img src='{$member->photo}' alt='{$member->name}' itemprop="image"> </a> {{else}} <span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'> <img src='{$member->photo}' data-groupID='{$member->member_group_id}' alt='{$member->name}' itemprop="image"> </span> {{endif}} Go to custom.css and add this code: .ipsUserPhoto[data-group_id="4"] { border: solid 3px #e74c3c; } .ipsUserPhoto[data-group_id="3"] { border: solid 3px #2c3e50; } Change 4 and 3 with an id of your group Id your group can see in the ACP - Members - Group click group (example Members) that you want to see. In the address bar, you will see your id groups:
  3. 1 point
    Read this : [Hidden Content]
  4. 1 point
    It is necessary to make so that the last answers in a subject were shown the first.. ? The direction of sorting posts in the IPS Community Suite can be fixed in the file: Applications / forums / modules / front / forums / topic.php Find: $ OrderDirection = 'asc'; Replace to: $ OrderDirection = 'desc';
  5. 1 point
    Profile Photo in Online Lists Whowasonline Go to ACP > Customizations > Themes > your skin > edit HTML and CSS > core > global > plugins > whowasonline and replace all contents with this: <h3 class='ipsType_reset ipsWidget_title'> {lang="block_whowasonline"} </h3> <div class='ipsWidget_inner ipsPad'> <span class='ipsType_light ipsType_unbold ipsType_medium'>{lang="who_was_online_last_x" sprintf="$hour" pluralize="$memberCount"}</span> <br> {{if $stat !== false && $orientation!='vertical'}} <span class='ipsType_light ipsType_unbold ipsType_medium'>{$stat|raw}</span> {{endif}} {{if $memberCount}} <ul class='ipsList_inline ipsList_csv ipsList_noSpacing'> {{foreach $members as $row}} <li>{template="userPhoto" app="core" group="global" params="\IPS\Member::load( $row['member_id'] ),'tiny'"}</li> {{endforeach}} </ul> {{else}} <p class='ipsType_reset ipsType_medium ipsType_light'>{lang="who_was_online_users_empty"}</p> {{endif}} </div> WhosOnline ACP > Customizations > Themes > your scin > edit HTML and CSS > core > front > widgets > whosOnline and replace all contents with this: <h3 class='ipsType_reset ipsWidget_title'>{lang="block_whosOnline"}</h3> <span class='ipsButton ipsButton_verySmall'style="position: absolute;top: 5px;right: 8px;"> <a href='{url="app=core&module=online&controller=online" seoTemplate="online"}'>{lang="see_full_list"}</a></span> <div class='ipsWidget_inner ipsPad'> {{if $memberCount}} <ul class='ipsList_inline ipsList_csv ipsList_noSpacing'> {{foreach $members as $row}} <li>{template="userPhoto" app="core" group="global" params="\IPS\Member::load( $row['member_id'] ), 'tiny'"}</li> {{endforeach}} </ul> {{if $orientation == 'vertical' and $memberCount > 60}} <p class='ipsType_medium ipsType_reset'> <a href='{url="app=core&module=online&controller=online" seoTemplate="online"}'>{lang="and_x_others" pluralize="$memberCount - 60"}</a> </p> {{endif}} {{else}} <p class='ipsType_reset ipsType_medium ipsType_light'>{lang="whos_online_users_empty"}</p> {{endif}} </div>
  6. 1 point

    Version 1.2.5

    9 downloads

    This widget allows you to display your member groups to your users in a widget. This widget will help your users see what groups are available and allow to easily perform a search for members in a group by clicking on a group name.

    Free

  7. 1 point
    Add guidelines to the footer This tutorial will allow you to add a guidelines link to the footer of your site and have it opened in a new lightbox window and also make the privacy policy do the same. Go to your Admin Control Panel -> Customization -> Themes Click the </> code button on the theme you want to edit, this case been the default. Go to the Templates -> Core -> Front -> Global -> Footer Find the code... {{if \IPS\Settings::i()->privacy_type != "none"}} .. {{endif}} Change it with... {{if \IPS\Settings::i()->privacy_type != "none"}} <li><a href='{{if \IPS\Settings::i()->privacy_type == "internal"}}{url="app=core&module=system&controller=privacy" seoTemplate="privacy"}{{else}}{setting="privacy_link"}{{endif}}' data-ipsdialog data-ipsdialog-title="{lang="privacy"}">{lang="privacy"}</a></li> {{endif}} {{if \IPS\Settings::i()->gl_type != "none"}} <li><a href='{{if \IPS\Settings::i()->gl_type == "internal"}}{url="app=core&module=system&controller=guidelines" seoTemplate="guidelines"}{{else}}{setting="gl_link"}{{endif}}' data-ipsdialog data-ipsdialog-title="{lang="guidelines"}">{lang="guidelines"}</a></li> {{endif}} Your privacy policy should now open in a lightbox window and also have a new guidelines link that opens the guidelines in a new lightbox window.
  8. 1 point
    Twitch block for IPB4 Today I would like to share this tutorial about how to get a Twitch block on your Invision Power Board 4.x forum! You will need to create PHP block under Pages and use the following code: function is_channel_live($channel) { $request = json_decode( @[member='fileposter']_get_contents( '[Hidden Content]' . $channel ) ); return ( ! is_null( $request->stream ) ) ? TRUE : FALSE; } $chan = "twitch"; if (is_channel_live($chan)==true) echo " <h3 class='ipsType_reset ipsWidget_title'>Live Stream (Online)</h3> <div class='embed-container'> <iframe src='[Hidden Content]' . $chan . '/embed' frameborder='0'></iframe> </div>"; else echo " <h3 class='ipsType_reset ipsWidget_title'>Live Stream (Offline)</h3> <div class='embed-container'> <font color=red><b>Offline</b></font> </div>"; Not much of an tutorial, I know but it's not very hard to this.
×