Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2011, 04:13 AM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-11-2011, 01:40 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how I can accomplish this?
Reply With Quote
  #3  
Old 12-11-2011, 03:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe that is using javascript, not java - those are two different types of scripting languages.
Reply With Quote
  #4  
Old 12-11-2011, 04:31 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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?
Reply With Quote
  #5  
Old 12-11-2011, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-11-2011, 07:24 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #7  
Old 12-13-2011, 06:37 AM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne Do not forget me please
Reply With Quote
  #8  
Old 12-13-2011, 04:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 12-13-2011, 05:29 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #10  
Old 12-13-2011, 09:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's the jquery.min.js script you need to include in the header.
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:54 AM.


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.07005 seconds
  • Memory Usage 2,261KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete