Warning: The author of this contribution does not provide support for it anymore.

AOS Who Visited a Topic

X-Treme Purple style edits and improvements here. - AOS Who Visited a Topic

X-Treme Purple style edits and improvements here.

by PiperB » Tue Jul 04, 2017 7:17 am

+++++++++++++++++++++++++

I have created edits, changes, plus display and format improvements for X-Treme Purple styles. I wanted to move this into the "who is online" portion of the page similar to the index page stats. In doing so I also made a minor edit for the who is online portion as well
so that it fits together properly.

Open: language/en/common.php

Find:

Code: Select all

	'WHO_IS_ONLINE'		=> 'Who is online',
Add After: (On a new blank line)

Code: Select all

	'WHO_IS_BROWSING_FORUM'	=> 'Who is browsing this forum?',
Save the file.

Open: styles/X-Treme/template/viewtopic_body.html

Find:

Code: Select all

							<table class="tablebg" width="100%" cellspacing="1">
								<tr>
									<td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td>
								</tr>
							</table>
Replace with:

Code: Select all

							<table class="tablebg" width="100%" cellspacing="1">
							<tr>
								<td class="cat" colspan="2"><h4 class="randomtext">{L_WHO_IS_BROWSING_FORUM}</h4></td>
							</tr>
								<tr>
									<td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td>
								</tr>
							</table>
                    <!-- MOD : AOS Who Visited a Topic - Start -->
                    <!-- IF S_WHO_VISITED_A_TOPIC -->

						<table class="tablebg" width="100%" cellspacing="1">
							<tr>
								<td class="cat" colspan="2"><h4 class="randomtext"><a href="{U_WVT}" onclick="window.open(this.href,'','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=300'); return false;">{L_WHO_VISITED_A_TOPIC}</a></h4></td>
							</tr>
							<tr>
								<td class="row1" width="100%"><p class="gensmall"><!-- IF NUM_VISITORS -->{NUM_VISITORS}<!-- IF NUM_VISITORS == 1 -->{L_USER_VISIT}<!-- ELSE -->{L_USER_VISITS}<!-- ENDIF --><!-- BEGIN visited_topic --><span title="{visited_topic.USER_LAST_VIEW_TIME}">{visited_topic.USER}</span><!-- IF VIEW_COUNT --> ({visited_topic.USER_VIEW_COUNT})<!-- ENDIF --><!-- IF not visited_topic.S_LAST_ROW -->, <!-- ENDIF --><!-- END visited_topic --><!-- IF NUM_USER_IN_TOPIC -->, ... [<a href="{U_WVT}" onclick="window.open(this.href,'','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=300'); return false;">{L_VIEW_MORE}</a>]<!-- ENDIF --><!-- ELSE -->{L_NONE_USER_VISIT}<!-- ENDIF --></p></td>
							</tr>
						</table>
                    <!-- ENDIF -->
                    <!-- MOD : AOS Who Visited a Topic - End -->
Save the file.

Open: styles/X-Treme/template/who_visited_a_topic.html
Note: This is the template file for subsilver2 that came with the who visted a topic mod. We are only changing this because the original text is a brassy red and X-Treme Purple doesn't look good with that for a heading.

Find:

Code: Select all

<h3>{L_TOPIC_VIEWS_ADMIN_CATEGORY}</h3>
Replace with:

Code: Select all

<h3 class="randomtext">{L_TOPIC_VIEWS_ADMIN_CATEGORY}</h3>
Save the file.

Open: styles/X-Treme_Purple/theme/stylesheet.css
Note: This color we are adding to the css file is the X-Treme Purple default text color for links and some of the other text as well. We are using this not only for the class in this mod's template files, but also for the new viewtopic_body edits as well. You can use this class to change other text and other heading texts.

Find:

Code: Select all

#pageheader { }

Code: Select all

.randomtext{
	color: #D400FF;
Save the file.

There are no extra files included, this is it!

Clear your cache and refresh your templates.

Bam done!! Enjoy! ;)

Now for a screen shot. (hold down the Ctrl button and click the image to open in a new tab and view full size.)
1.png
__________________________________
Disclaimer: I decided to share my edits, fixes, addons, companion mods, e.t.c. for "wiki" type purposes and for those out there like me who are on older versions of phpbb3 still. Also for those who still have or wanted this mod to have a new feature or a fix this is for you! :)
<!-- IF U_LOVE_NOTEPAD++ -->
[td class=statement]I Notepad++ ![/td]
<!-- ENDNEVER --> <!-- tee hee --> :P
Whoa ooo whoa ooo whoa I'm a Lady!
User avatar
PiperB
Registered User
Posts: 167
Joined: Mon Nov 07, 2016 6:54 pm