vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How would I install this on vbulletin? (modalbox) (https://vborg.vbsupport.ru/showthread.php?t=176443)

se_p800 04-17-2008 04:51 PM

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

Opserty 04-17-2008 05:22 PM

Add the Javascript & CSS code to your headinclude template.

Lynne 04-17-2008 05:36 PM

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

edit: argh! Those young whipper-snappers are quick!

se_p800 04-17-2008 06:21 PM

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!

Lynne 04-17-2008 08:24 PM

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.

se_p800 04-17-2008 08:48 PM

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 :D 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


All times are GMT. The time now is 01:13 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.01042 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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