MyBB Community Forums

Full Version: AJAX Feature: Greybox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, here's the story.

FIRST OFF:

I have no FTP access to my forum, as I am on a free host, which means I can't upload anything.

---------

I want to implement an AJAX feature on my site, called 'Greybox'. I have uploaded files to another website, and was hoping to get it working on my other site, but I have had no luck.

My question asking is if I can get this working somehow on my forum?

My Test Forum: http://www.tnctest.mybbnew.com

Code I have for Index (For the Greybox bit)

<html>
<head>
<script type="text/javascript">
    var GB_ROOT_DIR = "http://tnc-greybox.teach-nology.com/greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />





<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}

<a href="http://google.com/" title="Google" rel="gb_page_fs[]">Launch google.com in fullscreen window</a>
<a href="http://www.thenunyclub.mybbnew.com/" title="TNC Talk Forums" rel="gb_page_fs[]">Launch TNC Talk Forums in fullscreen window</a>
<a href="http://www.tncgraphics.mybbnew.com/" title="TNC Talk Forums" rel="gb_page_fs[]">Launch TNC GFX Site in fullscreen window</a>

My other site I have Greybox files uploaded to: http://tnc-greybox.teach-nology.com/greybox

My site page where it is working:

http://tnc-greybox.teach-nology.com/greyboxtest.html

My Forum I want to implement it on: http://thenunyclub.mybbnew.com

Are there any alternatives I can do to get this code working, without having to ask webmaster staff of my free host for assistance?
You could try linking the scripts to the site you want it too work on. then add whatever else code to the site you want it working on like this.

<script type="text/javascript" src=" http://tnc-greybox.teach-nology.com/greybox/AJS.js"></script>
<script type="text/javascript" src=" http://tnc-greybox.teach-nology.com/greybox/AJS_fx.js"></script>
<script type="text/javascript" src="http://tnc-greybox.teach-nology.com/greybox/greybox/gb_scripts.js"></script>
<link href="http://tnc-greybox.teach-nology.com/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
Still not working. Any other ideas?