Back to vBulletin 3.8 Template Modifications

YBMF -Whos Reading a Thread Always on Top HACK
Mod Version: 1.00, by TimberFloorAu

vB Version: 3.8.0 Rating: (0 vote - 0 average) Installs: 6
Released: 11 Jan 2009 Last Update: Never Downloads: 20
Not Supported Template Edits Re-usable Code Translations  

This version is compatible with 3.8.0. 3.7.0 works fine, not tested on 3.6.0 etc

YoBroMoFo - Whos Online Always On Top ( WOAOT Version 1.0 )

This version is for Internet explorer. ( Feel free to help develop a Firefox Version )
This displays a always on top window, showing who is currently viewing the thread ) Useful as you read thru a thread, and feel a compelling desire

to reply.

Ok dead easy to do.

Requirements:

1. upload image folder to forum root.
2. goto AdminCP
--- Styles and Templates > Search In Templates.
------- Search for SHOWTHREAD

find : </head>

Just before add this CODE
Code:
<!--YoBroMoFo.com Active Users Widget-->
<!--[if IE]>
<!-- 
© Dynamic Drive (www.dynamicdrive.com)
VBulletin version by © www.yobromofo.com
This copyright notice MUST stay intact.
-->
<style>
<!--
.drag{position:relative;cursor:hand
}
#scontentmain{
position:absolute;
width:150px;
}
#scontentbar{
cursor:hand;
position:absolute;
background-color:#727272;
height:15;
width:100%;
top:0;
}
#scontentsub{
position:absolute;
width:100%;
top:15;
background-color:#ffffff;
border:2px gray;
padding:1.5px;
}
-->
</style>
<script language="JavaScript1.2">
var dragapproved=false
var zcor,xcor,ycor
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function movescontentmain(){
if (event.button==1&&dragapproved){
zcor.style.pixelLeft=tempvar1+event.clientX-xcor
zcor.style.pixelTop=tempvar2+event.clientY-ycor
leftpos=document.all.scontentmain.style.pixelLeft-ietruebody().scrollLeft
toppos=document.all.scontentmain.style.pixelTop-ietruebody().scrollTop
return false
}
}
function dragscontentmain(){
if (!document.all)
return
if (event.srcElement.id=="scontentbar"){
dragapproved=true
zcor=scontentmain
tempvar1=zcor.style.pixelLeft
tempvar2=zcor.style.pixelTop
xcor=event.clientX
ycor=event.clientY
document.onmousemove=movescontentmain
}
}
document.onmousedown=dragscontentmain
document.onmouseup=new Function("dragapproved=false")
//-->
</script>
<![endif]-->
<!--end of YoBroMoFo active users widget-->
____________________________________________________________________

Then in same template, SHOWTHREAD

find : </body>
Just before this ADD this code

Code:
<!--YoBroMoFo Active Users Widget-->
<!--[if IE]>
<div id="scontentmain">
<div id="scontentsub">
<div id="scontentbar" >
<img align="right" src="images/misc/barbutton.gif" onClick="onoffdisplay()">
</div>
<p align="center"><br>
<if condition="$show['activeusers']">
<!-- currently active users -->
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
	<tr>
		<td class="tcat" colspan="2">
			<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]
</phrase>
		</td>
	</tr>
	<tr>
		<td class="alt1" colspan="2">
			<span class="smallfont">$activeusers</span>
		</td>
	</tr>
	</table>
<!-- end currently active users -->
</if></p>
</div>
</div>
</div>
<script language="JavaScript1.2">
/* 
© Dynamic Drive (www.dynamicdrive.com)
VBulletin version by © www.yobromofo.com
This copyright notice MUST stay intact.
*/
//configure the below two variables to determine where the static content will initially be positioned when the document loads, in terms of X and Y 
cooridinates, respectively
var w=ietruebody().clientWidth-195
var h=50
////Do not edit past this line///////////
w+=ietruebody().scrollLeft
h+=ietruebody().scrollTop
var leftpos=w
var toppos=h
scontentmain.style.left=w
scontentmain.style.top=h
function onoffdisplay(){
if (scontentsub.style.display=='') 
scontentsub.style.display='none'
else
scontentsub.style.display=''
}
function staticize(){
w2=ietruebody().scrollLeft+leftpos
h2=ietruebody().scrollTop+toppos
scontentmain.style.left=w2
scontentmain.style.top=h2
}
window.onscroll=staticize
</script>
<![endif]-->
<!--End of YoBroMoFo Active Users Widget-->

____________________________________

Done

Only works in Internet Explorer. If you need help catch me on Vbulletin.org
or direct on http://www.yobromofo.com/forum/members/timberfloorau.html

Brought to you by YoBroMoFo British Expats January 2009 Version 1.0

PLEASE MARK AS INSTALLED IF YOU USE THIS
Files and instructions included, in the ZIP.

If you mark as installed, you will get preference on code help.

Download

No files for download.

Similar Mods

Forum Display Enhancements YBMF-Back to Top Hack ( Finger Saver ) vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024