who is online on top

For support and discussion related to templates and themes in phpBB 3.3.
Post Reply
SugarGliderLove
Registered User
Posts: 8
Joined: Fri Oct 23, 2020 9:40 pm

who is online on top

Post by SugarGliderLove »

is there a way to move the who is online section to the top above the forum list?
User avatar
PlanetStyles.net
Former Team Member
Posts: 4713
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: who is online on top

Post by PlanetStyles.net »

Absolutely.

Open: /styles/*/template/index_body.html

Find:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<div class="stat-block online-list">
		<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
		<p>
			<!-- EVENT index_body_block_online_prepend -->
			{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> 
			<!-- IF U_VIEWONLINE -->
				<br />{LOGGED_IN_USER_LIST}
				<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
			<!-- ENDIF -->
			<!-- EVENT index_body_block_online_append -->
		</p>
	</div>
<!-- ENDIF -->
Move it to before this line in the same file:

Code: Select all

<!-- EVENT index_body_markforums_before -->
SugarGliderLove
Registered User
Posts: 8
Joined: Fri Oct 23, 2020 9:40 pm

Re: who is online on top

Post by SugarGliderLove »

I did exactly that but nothing happened i even tried to open it in a different browser but it still loaded at the bottom
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4259
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: who is online on top

Post by thecoalman »

Whenever you make changes to phpBB files go into the ACP and purge the cache.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
SugarGliderLove
Registered User
Posts: 8
Joined: Fri Oct 23, 2020 9:40 pm

Re: who is online on top

Post by SugarGliderLove »

it worked thank you so much i moved the whole section up top!
now is there a way to put it all in a box like the category's are?
User avatar
PlanetStyles.net
Former Team Member
Posts: 4713
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: who is online on top

Post by PlanetStyles.net »

Sure :)

Code: Select all

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt>An empty block</dt>
				</dl>
			</li>
		</ul>
		<ul class="topiclist forums">
			<li class="row">
				<dl>
					<dt>
					    Some code here
					</dt>
				</dl>
			</li>
		</ul>
	</div>
</div>
SugarGliderLove
Registered User
Posts: 8
Joined: Fri Oct 23, 2020 9:40 pm

Re: who is online on top

Post by SugarGliderLove »

Thanks so much it works great
Post Reply

Return to “[3.3.x] Styles Support & Discussion”