vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to Spoiler Java (Example inside) (https://vborg.vbsupport.ru/showthread.php?t=275291)

WDS 12-10-2011 04:13 AM

How to Spoiler Java (Example inside)
 
Hello mates, I'm a long time circling an issue. How to make a deployable spoiler java.

Well here I leave a link: http://www.ps3trophies.com/forums/sh...-special-event

That's the kind of spoiler that I want to have, but not how to install the java libraries or anything like that, someone can help me?, Thanks.

WDS 12-11-2011 01:40 PM

Anyone know how I can accomplish this?

Lynne 12-11-2011 03:45 PM

I believe that is using javascript, not java - those are two different types of scripting languages.

WDS 12-11-2011 04:31 PM

Quote:

Originally Posted by Lynne (Post 2276777)
I believe that is using javascript, not java - those are two different types of scripting languages.

I have understood that you have to install the libraries or something, as I can do it?, or is it independent of vbulletin?

Lynne 12-11-2011 04:40 PM

If you are using java, then yes, libraries are involved. But that just looks like javascript, as I said. It's in the onclick statement - look at the page source.

WDS 12-11-2011 07:24 PM

Quote:

Originally Posted by Lynne (Post 2276798)
If you are using java, then yes, libraries are involved. But that just looks like javascript, as I said. It's in the onclick statement - look at the page source.

Ok, OK, I've been and where you should put that on my forum to work?
---------------
I do not work, and even copy all the code of the page (control + U) and does not work :(

WDS 12-13-2011 06:37 AM

Lynne Do not forget me please

Lynne 12-13-2011 04:57 PM

I would guess you are missing some other javascript that is in the head of the page. Look to see if any functions are called and then look through the .js files to find those functions.

WDS 12-13-2011 05:29 PM

Quote:

Originally Posted by Lynne (Post 2277411)
I would guess you are missing some other javascript that is in the head of the page. Look to see if any functions are called and then look through the .js files to find those functions.

I found these three blocks ....

HTML Code:

<!-- VigLink: http://viglink.com -->

        <script type="text/javascript">

          var vglnk = { key: '967048c458c373aa407901f33e6611a9' };



          (function(d, t) {

            var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;

            s.src = '//api.viglink.com/api/vglnk.js?key=' + vglnk.key;

            var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);

          }(document, 'script'));

        </script>

        <!-- end VigLink -->

HTML Code:

window.onload = function() {
var cpost=document.location.hash.substring(1);var cpost2='';if(cpost){ var ispost=cpost.substring(0,4)=='post';if(ispost)cpost2='post_'+cpost.substring(4);if((cobj = fetch_object(cpost))||(cobj = fetch_object(cpost2))){cobj.scrollIntoView(true);}else if(ispost){cpostno = cpost.substring(4,cpost.length);if(parseInt(cpostno)>0){location.replace('http://www.ps3trophies.com/forums/showthread.php?p='+cpostno);};} }

if(typeof window.orig_onload == "function") window.orig_onload();
}

HTML Code:

<script type="text/javascript"><!--
window.google_analytics_uacct = 'UA-612543-2'; window.google_analytics_domain_name='.ps3trophies.com'; var _gaq = _gaq || []; _gaq.push(['_setDomainName', '.ps3trophies.com'], ['_setAccount', 'UA-612543-2'], ['_setVar', 'usergroup-1-Unregistered / Not Logged In'], ['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);  })();
//-->
</script>


I hope it's one of those ......
I should do now?

Thanks Lynne.

Lynne 12-13-2011 09:47 PM

It's the jquery.min.js script you need to include in the header.


All times are GMT. The time now is 03:49 PM.

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.01058 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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