Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
YBMF -Whos Reading a Thread Always on Top HACK Details »»
YBMF -Whos Reading a Thread Always on Top HACK
Version: 1.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.0 Rating:
Released: 01-09-2009 Last Update: Never Installs: 6
Template Edits
Re-useable Code Translations  
No support by the author.

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/membe...erfloorau.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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-10-2009, 08:46 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved*
Reply With Quote
  #3  
Old 01-12-2009, 09:14 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reversed decision.

Info included
Attached Files
File Type: zip YBMF-WOAOT.zip (2.4 KB, 22 views)
Reply With Quote
  #4  
Old 04-12-2009, 05:36 PM
kyleforrest kyleforrest is offline
 
Join Date: Nov 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this
Reply With Quote
  #5  
Old 04-13-2009, 03:49 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thank you!
Reply With Quote
  #6  
Old 04-14-2009, 01:26 PM
Nazim Nazim is offline
 
Join Date: Sep 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesnt work for me can you help me out please. followed the instructions and all i get is popup and nothing displayed?
Reply With Quote
  #7  
Old 04-14-2009, 09:01 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please post a link to the site page, where you have added the code, so we can check for you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04680 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete