Hi,
first, sorry for my bad english,
Made some test with drupal bootstrap and load some data, the connection is ok.
I need to load the class="colorbox-node", to open just a node, not entire page, from my custom php page placed in the root of drupal 7, it's possible?
I'm neewbie to drupal, use this module and is great in drupal content, but not able to understand which load this function outside from drupal, this is my code.... Open the image is ok, open node is wrong, open the entire site layout not node only.
Thanks in advance !

<?php
ob_start();
//define('DRUPAL_ROOT', getcwd());
//define('DRUPAL_ROOT', $_SERVER['DOCUMENT_ROOT']);
//$base_url = 'http://'.$_SERVER['HTTP_HOST']; // THIS IS IMPORTANT
define('DRUPAL_ROOT', '/home/public_html/drupal');
$base_url = 'http://'.$_SERVER['HTTP_HOST'].'/drupal';
header('Access-Control-Allow-Origin: *');
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
require_once DRUPAL_ROOT . '/includes/session.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="sites/all/libraries/colorbox/css/colorbox.css" media="screen" />
<link rel="stylesheet" type="text/css" href="sites/all/modules/colorbox_node/colorbox_node.css" media="screen" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="sites/all/libraries/colorbox/jquery.colorbox.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
	  $('a.imgbox').colorbox();
	  $(".inline").colorbox({
		 iframe:true,
		 width:"90%",
		 height:"80%"});
});
</script>
</head>
<body>
<a class="imgbox" href="/sites/default/files/test.jpg" >link to image</a>
<a class="colorbox-node inline" href="node/206?width=960&height=700?" >link to node</a>
</body>
<html>

Comments

linno created an issue.