Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Como Posted June 27 Posted June 27 I appear to have deleted this by mistake. I have a copy of the content, but I am unsure of how to restore it (or what its deletion means). Anyone?
Marc Posted June 27 Posted June 27 Have you deleted this from a custom theme? You shouldnt actually be able to delete a template on a default theme. Only revert it. Or is that what you mean there?
Como Posted June 27 Author Posted June 27 I thought I was adding a template based upon an existing pluggin. It did not go as I intended, so I deleted the new template. But the containing Active Users template (the pluggin I select when trying to create a template) appears to have disappeared. I Guess i should not be playing around with this stuff without first better understanding it.
Como Posted June 27 Author Posted June 27 Hi @Marc Stridgen I was in Templates. I think the template (I thought I was copying) was called Active Users. It does not appear to be there now. I did copy the content before deletion (just in case). Unless I am mistaken, it is not there now. <div data-controller='core.front.core.onlineUsersWidget'> <h3 class='ipsType_reset ipsWidget_title'> {{if \IPS\Dispatcher::i()->application->directory !== 'core'}} {lang="block_activeUsers"} {{else}} {lang="block_activeUsers_noApp"} {{endif}} {{if $orientation == 'horizontal'}} <span class='ipsType_light ipsType_unbold ipsType_medium' data-memberCount="{$memberCount}">{lang="block_user_online_info" pluralize="$memberCount"}</span> {{endif}} </h3> <div class='ipsWidget_inner ipsPad'> <ul class='ipsList_inline ipsList_csv ipsList_noSpacing ipsType_normal'> {{if $memberCount}} {{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }} {{foreach $members as $row}} <li data-memberId="{$row['member_id']}"><a href="{url="app=core&module=members&controller=profile&id={$row['member_id']}" seoTemplate="profile" seoTitle="$row['seo_name']"}" data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$row['member_id']}&do=hovercard" seoTemplate="profile" seoTitle="$row['seo_name']"}' {{if $row['in_editor']}}data-ipsTooltip data-ipsTooltip-label="{lang="block_user_in_editor"}"{{else}}title="{lang="view_user_profile" sprintf="$row['member_name']"}"{{endif}} {{if $row['in_editor']}}class='cActiveUserEditor'{{endif}}>{expression="\IPS\Member\Group::load( $row['member_group'] )->formatName( $row['member_name'] )" raw="true"}</a></li> {{endforeach}} {{else}} {{foreach $members as $row}} <li data-memberId="{$row['member_id']}">{{if $row['in_editor']}}<i class="fa fa-circle-o-notch fa-spin" data-ipsTooltip data-ipsTooltip-label="{lang="block_user_in_editor"}"></i>{{endif}} {expression="\IPS\Member\Group::load( $row['member_group'] )->formatName( $row['member_name'] )" raw="true"}</li> {{endforeach}} {{endif}} {{else}} <li class='ipsType_reset ipsType_medium ipsType_light' data-noneOnline>{lang="active_users_empty"}</li> {{endif}} </ul> {{if $memberCount > 60 && $orientation == 'vertical'}} <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}} </div> </div> Â
Jim M Posted June 27 Posted June 27 Just now, Como said: Hi @Marc Stridgen I was in Templates. I think the template (I thought I was copying) was called Active Users. It does not appear to be there now. I did copy the content before deletion (just in case). Unless I am mistaken, it is not there now. <div data-controller='core.front.core.onlineUsersWidget'> <h3 class='ipsType_reset ipsWidget_title'> {{if \IPS\Dispatcher::i()->application->directory !== 'core'}} {lang="block_activeUsers"} {{else}} {lang="block_activeUsers_noApp"} {{endif}} {{if $orientation == 'horizontal'}} <span class='ipsType_light ipsType_unbold ipsType_medium' data-memberCount="{$memberCount}">{lang="block_user_online_info" pluralize="$memberCount"}</span> {{endif}} </h3> <div class='ipsWidget_inner ipsPad'> <ul class='ipsList_inline ipsList_csv ipsList_noSpacing ipsType_normal'> {{if $memberCount}} {{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }} {{foreach $members as $row}} <li data-memberId="{$row['member_id']}"><a href="{url="app=core&module=members&controller=profile&id={$row['member_id']}" seoTemplate="profile" seoTitle="$row['seo_name']"}" data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$row['member_id']}&do=hovercard" seoTemplate="profile" seoTitle="$row['seo_name']"}' {{if $row['in_editor']}}data-ipsTooltip data-ipsTooltip-label="{lang="block_user_in_editor"}"{{else}}title="{lang="view_user_profile" sprintf="$row['member_name']"}"{{endif}} {{if $row['in_editor']}}class='cActiveUserEditor'{{endif}}>{expression="\IPS\Member\Group::load( $row['member_group'] )->formatName( $row['member_name'] )" raw="true"}</a></li> {{endforeach}} {{else}} {{foreach $members as $row}} <li data-memberId="{$row['member_id']}">{{if $row['in_editor']}}<i class="fa fa-circle-o-notch fa-spin" data-ipsTooltip data-ipsTooltip-label="{lang="block_user_in_editor"}"></i>{{endif}} {expression="\IPS\Member\Group::load( $row['member_group'] )->formatName( $row['member_name'] )" raw="true"}</li> {{endforeach}} {{endif}} {{else}} <li class='ipsType_reset ipsType_medium ipsType_light' data-noneOnline>{lang="active_users_empty"}</li> {{endif}} </ul> {{if $memberCount > 60 && $orientation == 'vertical'}} <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}} </div> </div> Â This is the Active Users block. DId you create a custom block which you then modified the template of? Did the screen look like the below? If so, it's still there. Â
Como Posted June 27 Author Posted June 27 Hi @Marc Stridgen It appears that it was. I was bouncing between several unfamiliar systems. As you say, that's the code I saved. Apologies for wasting your time.
Jim M Posted June 27 Posted June 27 3 minutes ago, Como said: Hi @Marc Stridgen It appears that it was. I was bouncing between several unfamiliar systems. As you say, that's the code I saved. Apologies for wasting your time. No problem but I am Jim 😜 Marc 1
Como Posted June 27 Author Posted June 27 3 hours ago, Jim M said: No problem but I am Jim 😜 Well, I'm on a roll today. 🙃 Thank you too, @Jim M! 🙂 Jim M 1
Recommended Posts