3.2.x 3.2.x SnippetsproBlue style & Extension 24 hour activity stats

Snippets
Previous topicNext topic
User avatar

Topic Author
rubeole
Users
Users
Magic user status: Offline
Posts: 2
Joined: Sep 17th, '17, 20:44
    Windows 10 Firefox

proBlue style & Extension 24 hour activity stats

Post by rubeole »

Hello,

For some who would have installed the style of sniper_E proBlue and you want or installed the extension of rmgirc (24 hour activity stats) you will not have in a 24 hour activity stats box as well as the collapse, with this addons you will have your box with collpase !!

Find Open styles/problue/template/index_body.html

Code: Select all

<!-- EVENT index_body_stat_blocks_after -->
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

	<!-- IF S_CAN_VIEW_24_HOURS -->
		<div id="stat-block 24stats_h" class="stat-block 24stats panel" style="display: none">
			<h3 style="border-bottom: none"><i class="icon fa-area-chart fa-fw" aria-hidden="true"></i><span>{L_TWENTYFOURHOUR_STATS}</span><a onclick="javascript:ShowHide('stat-block 24stats','stat-block 24stats_h','stat-block 24stats');" style="cursor:pointer;"><span class="index-download"></span></a></h3>
		</div>
		<div id="stat-block 24stats" class="stat-block 24stats panel">
			<script type="text/javascript">
			<!--
			tmp = 'stat-block 24stats';
			if(GetCookie(tmp) == '2')
			{
			   ShowHide('stat-block 24stats', 'stat-block 24stats_h', 'stat-block 24stats');
			}
			//-->
			</script>
			<h3><i class="icon fa-area-chart fa-fw" aria-hidden="true"></i><span>{L_TWENTYFOURHOUR_STATS}</span><a onclick="javascript:ShowHide('stat-block 24stats','stat-block 24stats_h','stat-block 24stats');" style="cursor:pointer;"><span class="index-upload"></span></a></h3>
				<!-- EVENT index_body_block_stats_prepend -->
		<p>{HOUR_POSTS} &bull; {HOUR_TOPICS} &bull; {HOUR_USERS}
		<br>{USERS_24HOUR_TOTAL} {GUEST_ONLINE_24} {L_LAST_24_HOURS}{L_COLON} <!-- IF not USERS_ACTIVE -->{L_NO_ONLINE_USERS}<!-- ELSE --><!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->{L_COMMA_SEPARATOR} <!-- ENDIF --><!-- END lastvisit --><!-- ENDIF -->
		</p>
		        <!-- EVENT index_body_block_stats_append -->
		</div>
	<!-- ENDIF -->
before :
Image

After :
Image

Image

:mml:
User avatar

Funny
New user
New user
Magic user status: Offline
Posts: 126
Joined: Mar 6th, '17, 15:39
    Windows 10 Chrome

Re: proBlue style & Extension 24 hour activity stats

Post by Funny »

For some who have the style of sniper_E proBlue installed and want to have the rmgirc extension (24 hours of activity statistics) installed, you will not be in a 24 hour activity status box as well as the collapse, with these addons you will have box with Kollpase! !
Just write the "
Operators to help the certainly further
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1058
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: proBlue style & Extension 24 hour activity stats

Post by Sniper_E »

Very nice work rubeole. I had to put one together for the Who was here extension also.

Code: Select all

<!-- IF WHO_WAS_HERE_TOTAL -->
	<div id="washere-list_h" class="stat-block online-list panel" style="display: none">
		<h3 style="border-bottom: none"><!-- IF not S_DISPLAY_ONLINE_LIST and U_VIEWONLINE --><a href="{U_VIEWONLINE}"><i class="icon fa-user-secret fa-fw" aria-hidden="true"></i>{L_WHO_IS_ONLINE}</a><!-- ELSE --><i class="icon fa-user-secret fa-fw" aria-hidden="true"></i>{L_WHO_WAS_HERE}<!-- ENDIF --><a onclick="javascript:ShowHide('washere-list','washere-list_h','washere-list');" style="cursor:pointer;"><span class="index-download"></span></a></h3>
	</div>
	<div id="washere-list" class="stat-block online-list panel" style="display: block">
		<script type="text/javascript">
		<!--
		tmp = 'washere-list';
		if(GetCookie(tmp) == '2')
		{
		   ShowHide('washere-list', 'washere-list_h', 'washere-list');
		}
		//-->
		</script>
		<h3><!-- IF not S_DISPLAY_ONLINE_LIST and U_VIEWONLINE --><a href="{U_VIEWONLINE}"><i class="icon fa-user-secret fa-fw" aria-hidden="true"></i>{L_WHO_IS_ONLINE}</a><!-- ELSE --><i class="icon fa-user-secret fa-fw" aria-hidden="true"></i>{L_WHO_WAS_HERE}<!-- ENDIF --><a onclick="javascript:ShowHide('washere-list','washere-list_h','washere-list');" style="cursor:pointer;"><span class="index-upload"></span></a></h3>
		{WHO_WAS_HERE_TOTAL} ({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}
		<!-- IF WHO_WAS_HERE_BOTS --><br />{WHO_WAS_HERE_BOTS}<!-- ENDIF -->
	</div>
<!-- ENDIF -->
I'm sure there are other extensions that would need this care.
I would like to have just the panel and code it to where the Collapsible Forum Categories extension would collapse them.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1058
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: proBlue style & Extension 24 hour activity stats

Post by Sniper_E »

@ rubeole, if you look at problue's index_body.html you will see I took all of the <p> </p> out of those blocks. Too fat.
Removing that <p> from your 24stats codes you will see it forms to the size of the other stats blocks.

And you could shorten the id: <div id="24stats_h" for the first one and <div id="24stats" for the lower one.
With the switches, the same: ShowHide('24stats', '24stats_h', '24stats')
User avatar

Topic Author
rubeole
Users
Users
Magic user status: Offline
Posts: 2
Joined: Sep 17th, '17, 20:44
    Windows 10 Firefox

Re: proBlue style & Extension 24 hour activity stats

Post by rubeole »

Sniper_E wrote: Oct 13th, '17, 04:43 @ rubeole, if you look at problue's index_body.html you will see I took all of the <p> </p> out of those blocks. Too fat.
Removing that <p> from your 24stats codes you will see it forms to the size of the other stats blocks.

And you could shorten the id: <div id="24stats_h" for the first one and <div id="24stats" for the lower one.
With the switches, the same: ShowHide('24stats', '24stats_h', '24stats')
:tumbsyes:
Previous topicNext topic