MyBB Community Forums

Full Version: Shadowbox.js Plugin for MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
I cannot get external links to open with Shadowbox. I did have one plugin (the Hide Links to Guests plugin by Dragonfever )that may have been conflicting with it, but I disabled it to see if it was the culprit and it had no effect. Any ideas?
I tried activating and I get a message saying it's incompatible with mybb 1600, anything newer like this that works?
just go to inc/plugins/shadowbox.php, find a line "compatibility"=>"14*", and replace 14 by 16.
You could try this also if your having trouble with this plugin:

Plugin1: http://www.mybbextras.com/showthread.php...t=lightbox

Plugin2: http://www.mybbextras.com/showthread.php...t=lightbox

Theres 2 versions.
I finally have this working on my 1.6.1 board, and I am very pleased with it so far. One question though - when the gallery is loading next to the loading image it says cancel...how do I change that to say loading?

Found it - in the language.js
(2011-01-26, 10:48 PM)Leefish Wrote: [ -> ]I finally have this working on my 1.6.1 board

Hi, Care to share what changes you made to get it working?
yes, I just changed the compatibility settings in the plugin to 1*. I have rel "lightbox" in a gallery and its picking that up. It also picks up single images - all from the plugin. Its weird, I could never get it to work and today - pow.....

You can do a quick test here if you like

http://www.leefish.nl/mybb/thread-1261-p...ml#pid2661

testuser pass testuser1
I edited the compatibility setting too but it looks like I'm still at the 'weird' stage!

(2011-01-27, 07:02 AM)RArch Wrote: [ -> ]I edited the compatibility setting too but it looks like I'm still at the 'weird' stage!

Aww, that really sucks - I'm sorry to hear it. I had lightbox2 installed first - then this - maybe that helps? Or you have some kind of conflict.

I don't know how "new" you are to mybb, but you did open the folder until you could see the four folders and then just drag the lot across to forum root?

I tried it yesterday on my testboard - no luck - tried it again today - worked. All very strange.
Thanks for replies, its appreciated. Yes, I'm new to MyBB and loving it. I've been installing various plugins on my test forum without problems this is the first one thats not worked 'out of the box'. I have uploaded all 4 folders to the root.

When I view the source of a thread with attachments I can see the following shadowbox code:

<link rel="stylesheet" type="text/css" href="http://mybb.xxxx.xxx/themes/shadowbox.css" />
<script type="text/javascript" src="http://mybb.xxxx.xxx/jscripts/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
   Shadowbox.init({
      language:"en",
      players:["img"]
   });
</script>
</head> 
<body> 

Then for attachment where I would have expected some shadowbox references theres none! Of course I'm not sure If this is a problem. Should I expect some additional code to appear here?

<fieldset> 
<legend><strong>Attached File(s)</strong></legend> 
<!-- start: postbit_attachments_thumbnails --> 
<span class="smalltext"><strong>Thumbnail(s)</strong></span><br /> 
<!-- start: postbit_attachments_thumbnails_thumbnail --> 
<a href="http://mybb.xxxx.xxx/attachment.php?aid=13" target="_blank"><img src="attachment.php?thumbnail=13" class="attachment" alt="" /></a>&nbsp;&nbsp;&nbsp;
<!-- end: postbit_attachments_thumbnails_thumbnail --> 
<br /> 
<!-- end: postbit_attachments_thumbnails --> 
 </fieldset>

Considering it seemed to just start working for you by itself could it be cache related? I've tried rebuilding the cache from Admin - Tools & Maintenance but that didnt make any difference!

I'm stuck Undecided

I just looked at the source from your site and you've got a load on init settings that I'm missing.

<link rel="stylesheet" type="text/css" href="http://www.leefish.nl/mybb/themes/shadowbox.css" /> 
<script type="text/javascript" src="http://www.leefish.nl/mybb/jscripts/shadowbox/shadowbox.js"></script> 
<script type="text/javascript"> 
	Shadowbox.init({
		language:"en",
		players:["img","swf"],
		animate:0,
		animateFade:1,
		animSequence:"sync",
		autoDimensions:0,
		continuous:1,
		counterLimit:"10",
		counterType:"default",
		displayCounter:1,
		displayNav:1,
		enableKeys:1,
		fadeDuration:"0.35",
		flashParams:{bgcolor:"#888888"},
		flashVersion:"9.0.0",
		handleOversize:"resize",
		initialHeight:"160",
		initialWidth:"320",
		modal:0,
		overlayColor:"#1d1d1d",
		overlayOpacity:"0.8",
		resizeDuration:"0.35",
		showOverlay:1,
		slideshowDelay:"4",
		viewportPadding:"20"
	});
</script> 
</head>
<body>

And also around the attachment it does reference shadowbox.

<a href="attachment.php?aid=609" rel="shadowbox[pid2661];player=img;width=1440;height=896" title="RE: Testings" rel="shadowbox;player=img;width=1440;height=896" target="_blank"><img src="attachment.php?thumbnail=609" class="attachment" alt="" /></a>

That looks like it could be the issue, I wonder where all those are set and how to do it?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15