vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - TeamSpeak viewer in slider (https://vborg.vbsupport.ru/showthread.php?t=312425)

Fields 06-24-2014 10:00 PM

TeamSpeak viewer in slider
 
1 Attachment(s)
Hello there,

this is the first time I release a mod. I am not a pro in coding, but I hope you still like this.

This modification is also available for vBulletin 3.8.x !

What is it?
With this template modification, you can show your TeamSpeak viewer in a sliding box which is displayed on all pages of your vBulletin.

What do I need?
You should have your TS server registered at www.tsviewer.com. If not, you can do this here. What you need is the HTML code of your server viewer. You can customize and copy the code, when you click the tab "Code Generator".

Installation
1.) Download and unzip the file that is attached.
2.) Upload the content of the "UPLOAD" folder to your root directory.
3.) Open headinclude_bottom template and paste the following code at the bottom:
Code:

<!-- /TS Slider -->
<script src="http://code.jquery.com/jquery-latest.js"></script>

<div>
<div id="ts_slider1" class="ts_slider1" style="left: -219px; width: 300px; position: fixed; top: 100px; background: url(/images/slider/ts_slider.png) repeat scroll 100% 0% transparent; height: 691px; z-index: 999;">
<div style="position: absolute; top: 14pt; right: 65pt; width: 253px; height: 620px; overflow: auto; color: white">TeamSpeak slider coded by <a href="http://tactical-riot-gaming.de">[TRG]Fields</a></div>
<div style="position: absolute; top: 31pt; right: 73pt; width: 253px; height: 620px; overflow: auto">

*HTML code of your TS viewer goes here*

</div>
</div>

<script type="text/javascript">
var state = 0;
var wait = false;

function changeSlider1()
{
if(state==1){
$('#ts_slider1').animate({width: 300 }, "slow", function(){state = 0;}
);
}
else
$('#ts_slider1').animate({width: 573 }, "slow", function(){state = 1;}
);
}

$('#ts_slider1').click(function(){
changeSlider1();
});
</script>
</div>
<!-- /TS Slider -->

4.) Make sure to replace the red-marked section with the HTML code from tsviewer.com.
5.) Click "Save" and here you go!

>>> Live Demo

You are allowed to delete the "coded by" sentence, but I would appreciate it when you leave it as it is. To remove it, just delete this line from the code above:
Code:

<div style="position: absolute; top: 14pt; right: 65pt; width: 253px; height: 620px; overflow: auto; color: white">TeamSpeak slider coded by <a href="http://tactical-riot-gaming.de">[TRG]Fields</a></div>
Please feel free to edit the image provided in the attachment, but don't forget to adjust the code above ;)

#############################
F.A.Q.

Q. The slider is blocking other modifications using jscripts.
A. Simply remove <script src="http://code.jquery.com/jquery-latest.js"></script> at the beginning of the code.

Q. Is it possible to disable the slider for mobile devices?
A. Yes, just follow these steps:
Quote:

1.) Download the following mod, unzip, upload and install the files:
https://vborg.vbsupport.ru/showthread.php?t=292704

Credits go to BirdOPrey5

2.) Edit the plugin "Mobile Browser Check":
Add the following lines at the bottom:
Code:

if ($vbulletin->detect->isMobile())
  $vbulletin->options['isMobile'] = 1;

Click save.

3.) Open your headinclude_bottom template (where you put the code for the slider) and add this:

Above "<!-- /TS Slider -->" (at the very beginning of the slider code):
Code:

<vb:if condition="!$vboptions['isMobile']">
Under "<!-- /TS Slider -->" (at the very end of the slider code):
Code:

</vb:if>

#############################

If you like this mod:
  • do not hesitate to make a donation HERE
  • rate it!
  • nominate as MOTM

And do not forget to mark as installed!

Thanks and have fun!

Fields 06-25-2014 07:31 PM

Reserved.

K4GAP 06-25-2014 07:32 PM

WOW!! Looks very nice!

Will have to try this in the next day or so.

Fields 06-25-2014 07:39 PM

Quote:

Originally Posted by K4GAP (Post 2503732)
WOW!! Looks very nice!

Will have to try this in the next day or so.

Thank you very much! Could you give a feedback after installing? :)

K4GAP 06-25-2014 07:40 PM

Quote:

Originally Posted by Fields (Post 2503733)
Thank you very much! Could you give a feedback after installing? :)

Sure will.

K4GAP 06-26-2014 12:30 AM

Quote:

Originally Posted by Fields (Post 2503733)
Thank you very much! Could you give a feedback after installing? :)


Looks and works great!! Good job.

Fields 06-26-2014 03:17 AM

Quote:

Originally Posted by K4GAP (Post 2503790)
Looks and works great!! Good job.

Sounds good. :)
Thank you.

LordVader! 06-26-2014 04:20 AM

I'll install this right now.
If it works like it looks... amazing!

add: Super easy install, installed and nominated for motm - not to mention the 5 stars for sure!

Great Work!

K4GAP 06-26-2014 10:05 AM

1 Attachment(s)
I changed up the image a little to better match my styles colors.

You can see it here....

I have attached the image in case anyone wants it.

Fields 06-26-2014 01:36 PM

Quote:

Originally Posted by K4GAP (Post 2503832)
I changed up the image a little to better match my styles colors.

You can see it here....

Looks brilliant, dude!


All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete