coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: jlove on November 03, 2007, 11:34:45 PM

Title: Bridging works but there are FF errors
Post by: jlove on November 03, 2007, 11:34:45 PM
I have the following issue when trying to bridge coppermine and SMF 1.1.4:

It's not really a message. When trying to view full sized images, the error console opens in firefox. The bridge was successful, registration works, but the error console keeps opening for every image.

e.g.: http://gallery.sjb-fan.com/displayimage-lastup-0-2.html (you have to use Firefox to see it. I've tested it in 3 computers.)

Coppermine install: http://gallery.sjb-fan.com/
Forum install: http://forum.sjb-fan.com/
Coppermine version: cpg1.4.2
Forum version: SMF 1.1.4
Test user account: user: test / pass: test

BridgeManager settings: 
Forum URL:      http://forum.sjb-fan.com
Relative path to your BBS's config file:    /home/username/forum.sjb-fan.com/ (sorry, but I can't put that out there for all the world to see. If you really need it, then I'll give it to you, but since I can't edit my posts, I'm not putting it here.)
Use post-based groups?:    0
Path where avatars are stored:    avatars
Cookie name/prefix -- for smf: SMFCookie653
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 03, 2007, 11:37:50 PM
I forgot to add this, although it should go without saying, that it doesn't happen when they are not bridged. (I've tested this as well.)
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 03, 2007, 11:52:01 PM
Umm... so I'll keep posting in this post until I finish because I can't edit my posts:

Is this the reason: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_cookie_start

I've done various searches, and the closest to what I have was: http://forum.coppermine-gallery.net/index.php?topic=22172.0 (at least I think) and I tried what was suggested, but no go.


Incidentally, none of the errors listed in the console are associated with my gallery.
Title: Re: Bridging works but there are FF errors
Post by: Nibbler on November 04, 2007, 12:05:38 AM
I can't see how this is caused by the bridge. When you made your custom theme you have created your own version of theme_html_picture() in your theme.php. You need to edit that and make sure you have:

$pic_html = "<a href=\"javascript:;\"

Your page is missing the semicolon after the javascript:
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 12:15:40 AM
But it's in my theme.php:

$pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
Title: Re: Bridging works but there are FF errors
Post by: Nibbler on November 04, 2007, 12:19:00 AM
It's not in the html output of your page.

<a href="javascript:" onclick="MM_openBrWindow('displayimage.php?pid=3231&amp;fullsize=1','1248979018472d018f9b4a2','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=725,height=419')">

Is that the 'total' theme you are looking at?

Do you have anything in SMF that rewrites the page output? Something like Coppermine's SEF urls plugin?
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 12:20:40 AM
Yes. and yes.
Title: Re: Bridging works but there are FF errors
Post by: Nibbler on November 04, 2007, 12:23:30 AM
Can you post a link to it?
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 12:25:28 AM
To which?
Title: Re: Bridging works but there are FF errors
Post by: Nibbler on November 04, 2007, 12:35:02 AM
The webpage or forum thread or code for the mod.
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 12:48:06 AM
I have the Coppermines SEF urls plugin

Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 12:49:29 AM
Oh sorry, I have the pretty urls plugin: http://code.google.com/p/prettyurls/
Title: Re: Bridging works but there are FF errors
Post by: Nibbler on November 04, 2007, 01:22:18 AM
Try

$pic_html = "<a href=\"javascript:void(0);\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
Title: Re: Bridging works but there are FF errors
Post by: jlove on November 04, 2007, 01:45:30 AM
Fabuloso!

It works! Thanks so much!