Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2008, 04:51 PM
se_p800 se_p800 is offline
 
Join Date: Oct 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How would I install this on vbulletin? (modalbox)

I found something called modalbox. Its basically a friendly javascript popup.

Here is the link to it:
http://www.wildbit.com/labs/modalbox/

These are the instruction given:
Installation

1. Download ModalBox and unpack to your /includes directory (you also need the prototype + script.aculo.us files there, which are included in the ModalBox package.)

2. Include the following JavaScript files in your pages:

<script type="text/javascript" src="includes/prototype.js"></script>
<script type="text/javascript" src="includes/scriptaculous.js? ?
load=effects"></script>
<script type="text/javascript" src="includes/modalbox.js"></script>

3. Include the CSS file modalbox.css in your pages:

<link rel="stylesheet" href="includes/modalbox.css" type="text/css"
media="screen" />

So could anybody please help me install this on my vbulletin? Thanks
Reply With Quote
  #2  
Old 04-17-2008, 05:22 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add the Javascript & CSS code to your headinclude template.
Reply With Quote
  #3  
Old 04-17-2008, 05:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like you can add those lines in your headinclude template.

edit: argh! Those young whipper-snappers are quick!
Reply With Quote
  #4  
Old 04-17-2008, 06:21 PM
se_p800 se_p800 is offline
 
Join Date: Oct 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou both you guys I will try it now

OK, so I added those two bits of code to the top of headinclude template, and when I add some modalbox code it doesnt work properly. I think this might be because I uploaded the files wrong. It says unpack them to the includes directory. When I extracted the download, I got a __MACOSX and a modalbox1.6.0 folder. Would I put both of these in the includes directory? If I installed it as it said, then there would be no "includes/prototype.js" for example. I hope im not sinfusing you :S

If its not too much trouble do you think someone could download the package to get a better understanding? Thankyou!

--------------- Added [DATE]1208465638[/DATE] at [TIME]1208465638[/TIME] ---------------

Ok I just cannot get this to work. I ave installed the files correctly and made sure the code I add is correct. If anybody gets this working please let me know what you did!
Reply With Quote
  #5  
Old 04-17-2008, 08:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just quickly downloaded the package and only got a modalbox1.6.0.zip file. I would put the files in the includes folder and also put the files in the lib folder into the includes folder. I have no idea what you should do with the stuff in the tests folder.
Reply With Quote
  #6  
Old 04-17-2008, 08:48 PM
se_p800 se_p800 is offline
 
Join Date: Oct 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I greatly appreciate the fact that you downloaded the file to help me out. I will have a go and see what happens.

EDIT: Ok I did that and this is what I have pasted at the top of my headinclude:

<script type="text/javascript" src="includes/prototype.js"></script>
<script type="text/javascript" src="includes/scriptaculous.js? ?
load=effects"></script>
<script type="text/javascript" src="includes/modalbox.js"></script>

<link rel="stylesheet" href="includes/modalbox.css" type="text/css"
media="screen" />

And then I have this to test it:

<a href="frame_send-link.html" title="Simple form" onclick="
Modalbox.show(this.href, {title: this.title, width: 600}); return false;
"> Send link to a friend</a>

And its not working

I officially give up. Thanks for all the help guys

--------------- Added [DATE]1208533250[/DATE] at [TIME]1208533250[/TIME] ---------------

Ok I got it working Sort of.

http://customizepsp.co.uk/forums/index.php?styleid=1

Thing is, it comes up every time you visit a page. Ok, showing it to guests only I can sort out,. but is there a way that I can get it to show only once per visit? Thanks
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 12:47 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.03761 seconds
  • Memory Usage 2,206KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete