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 03: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 12:40 PM

Anyone know how I can accomplish this?

Lynne 12-11-2011 02:45 PM

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

WDS 12-11-2011 03: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 03: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 06: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 05:37 AM

Lynne Do not forget me please

Lynne 12-13-2011 03: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 04: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 08:47 PM

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

WDS 12-14-2011 05:30 AM

Quote:

Originally Posted by Lynne (Post 2277493)
It's the jquery.min.js script you need to include in the header.

I love you Lynne, thanks to your help and could make it work but now I have other questions, eu croeq not fall under your help, but I hope you do qeu.

as I can download or create that kind of java or jquery file (not exactly that is) to upload to my forum and not have to call the ps3trophies page?

WDS 12-15-2011 04:50 PM

Lynne I have a little problem that is not how to solve.
I have installed this Mod: https://vborg.vbsupport.ru/showthread.php?t=125947

but with this mod spoiler Script goes down I wanted to know more or less I have to do for both work properly.

Thanks Lynne for all your help.

Lynne 12-15-2011 10:18 PM

I can't help with that as I know nothing about that mod.


All times are GMT. The time now is 08:35 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.01542 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete