Greybox only works when logged in

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/15/2010 10:11:21 AM
Gravatar
Total Posts 190

Greybox only works when logged in

Hi All,

Using the Greybox functionality available in mojoPortal seems incredibly simple. I put something like this on a page:

 <a title="My Big Image" rel="gb_image[]" href="/Data/Sites/1/media/slide/BigImage.jpg"><img src="/Data/Sites/1/media/icons/SmallImage.gif" alt="Click to Show Larger" width="33" height="33" /></a>

And it looks fine as long as I'm logged in. When I'm not logged in the page goes all to hell when you click on the linked small image. Does anyone have an obvious answer for this one?

Thanks again,

John 

1/15/2010 10:25:00 AM
Gravatar
Total Posts 18439

Re: Greybox only works when logged in

If you want GreyBox to always be available then in your layout.master add IncludeGreyBox="true" on the ScriptLoader control, and add IncludeGreyBoxCss="true" on StyleSheetCombiner

Best,

Joe

1/15/2010 10:31:19 AM
Gravatar
Total Posts 190

Re: Greybox only works when logged in

I should be getting use to looking for that by now! Thanks again Joe.

1/15/2010 10:43:58 AM
Gravatar
Total Posts 18439

Re: Greybox only works when logged in

Hey John,

Many thanks for the beers! Much appreciated.

Cheers,

Joe

1/15/2010 10:57:26 AM
Gravatar
Total Posts 190

Re: Greybox only works when logged in

Hmmm. Still getting same behavior. I followed your instructions there but it still only works if I'm logged in. Is the method call in the "rel" attribute of the link tag the only thing needed, or is there some other code I should be adding to the page?

1/15/2010 1:48:18 PM
Gravatar
Total Posts 190

Re: Greybox only works when logged in

Anybody else run across this issue?

1/15/2010 2:28:57 PM
Gravatar
Total Posts 18439

Re: Greybox only works when logged in

Hi John,

I've just uploaded mojoPortal-2-3-3-4-b on the Novell Forge Download page and working on updating Codeplex now.

This update fixes the bugs reported since 2.3.3.4 was released and also includes an improvement to the Contact Form, where the View Messages link now also uses GreyBox.

It should work using this updated version, I think the setting on the StyleSheetCombiner was not in 2.3.3.4.

Best,

Joe

3/4/2010 8:43:33 PM
Rob
Gravatar
Total Posts 10
2 lefts don't make a right, but 3 do.

Re: Greybox only works when logged in

Hi there,

I've been experiencing similar problems John. I'm using MojoPortal version 2.3.1.9.

My issue was that the greybox was not working at all unless the ImageGallery was also on the page as this added the required css and javascript for grey box. To make greybox available at all times I was changed the layout.master and added IncludeGreyBox="true" on the ScriptLoader control, and add IncludeGreyBoxCss="true" on StyleSheetCombiner, which did not help.

To fix the problem without upgrading MojoPortal I changed the layout.master so that this code was added after the script loader:

<link rel='stylesheet' type='text/css' href='/site/ClientScript/greybox/gb_styles.css' media='all' />
<script type="text/javascript">var GB_ROOT_DIR = '/site/ClientScript/greybox/'; var GBCloseText = 'Close'; </script>
<script src="/site/ClientScript/greybox/gbcombined.js" type="text/javascript" ></script>

Now it works all the time.

P.S you still need to leave the includeGreyboxCss statements as above.

Cheers,

Rob

3/4/2010 9:00:18 PM
Gravatar
Total Posts 190

Re: Greybox only works when logged in

Many thanks guys, this is working great now. I've been drug off to other tasks recently and just now getting back to mojoPortal again. It seems to come in fits and starts. I've updated from SVN a couple of times since I first posted this and I've looked up and played around with all the other methods and functionality on the greybox website. I wish I could say exactly what happened when it all started working but it's just not coming to me.

You must sign in to post in the forums. This thread is closed to new posts.