Help needed with ColorBox

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.
9/7/2011 2:48:17 AM
Gravatar
Total Posts 51

Help needed with ColorBox

Hi mojo Crew,

I need help working with colorbox. I followed Joe´s recommendation and set IncludeColorBox="true", then add a class="cblink" to image I want to view in colorbox: e.g:<a href="pic.jpg" class="cblink"><img src="pic.jpg"></a>.

My question is: how do I play a video from youtube.com or open a web page / an inline content using ColorBox?

I need also help adding a Google Plus button. It seems like, "<portal:PlusOneButton " is not included in my version of mojoPortal: Version: 2.3.6.7 2011-07-12

Thanks.

 

9/7/2011 7:01:04 AM
Gravatar
Total Posts 18439

Re: Help needed with ColorBox

That cblink class is just a convenience, it does what it does, if you want to do something custom with colorbox you'll need to wire up an instance of it yourself so you can control everything about it. IncludeColorbox will include the main script so you don't have to add that yourself but you'll need to study the documentation for colorbox and wire up your own instances for custom things such as video.

The Google Plus button was introduced in version 2.3.6.7, it is available in the blog and it can be used as described in the article. The 2.3.6.7 release was patched with a few fixes on 2011-07-20 but those fixes were not related to the google plus button, still you might try updating if you installed it prior to that. As noted on the codeplex page:

Updated 2011-07-20 patched to fix a bug in the Contact Form and a script error that could occur if running in a non root site
the only files that changed are:
mojoPortal.Web.dll
mojoPortal.Features.UI.dll
mojoPortal.Net.dll
/ContactForm/MessageListDialog.aspx
/ClientScript/jqmojo/jquery.layout.min.js

Best,

Joe

9/7/2011 9:04:46 AM
Gravatar
Total Posts 51

Re: Help needed with ColorBox

Thanks a lot,  Joe.

I will try Erhan´s approach. I´ll also update my version of mojoPortal.

Thanks

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