Joomler!.net - Decided on Joomla!

Jboard is Multiple Board!

Latest Posts

Greybox Inside Module
Hello again, I have a new problem now and I can't find the solution by muself. Im trying t...
Relugin anywhere
Avatar Joomler! 2011/09/09 18:45
Please see the following link. http://orangoo.com/labs/GreyBox/
Re:Menu buttons and Gray Box
Avatar Joomler! 2011/09/01 08:47
For slowness execution of greybox for Chrome. As one measures Script is filled in on the right...
Can Greybox work with map-command?
Avatar Zorroson 2010/06/02 07:33
Hello, First - many thanx for this great plugin!! I have no problems making this works the ...
Multiple images not working, please help
Avatar marijke 2010/06/01 19:46
The slideshow isn't working. I only see one image from the directory where it's in, while there a...

Popular Posts

How about change SyntaxHighlighter plugin to a system type plugin?
Avatar baijianpeng 2010/02/25 19:25
Thanks to Joomler for developed the SyntaxHighlighter plugin for Joomla. This is a Content type p...
HowTo use SyntaxHighLighter ?
Avatar rfer 2008/11/07 23:50
Hello, I have last version of joomla 1.5.7, and i want use SyntaxHighLighter, but i don''t kno...

Forum Stats

All times are UTC + 9 hours
Total Topics:231
Total Posts:1222
New Members:
Avatar tremrevingtare

Forum Online

Total Online:88
Total Guest:88
Bottom
Home » Support » Plugins » Free Plugin » GreyBox Show » Menu buttons and Gray Box
Menu buttons and Gray Box
Menu buttons and Gray Box
Saturday, 17 October 2009 07:43
2 votes
Hi!

One of my menu buttons points to external web page of my Joomla 5.14 site.
How can I make this web page, to be loaded in gray box?
As I see, there is no option for that in Joomler! GreyBox plug-in.
Some help?

Thanks in advanced. smile.png
Vladi
Fresh Boarder
Fresh Boarder
2
2009/10/17
Re:Menu buttons and Gray Box
Saturday, 17 October 2009 08:39
2 votes
For example, it is possible if it adds to your template(index.php) as follows.
<?php
$mainframe = & JFactory::getApplication();
$js_root = JURI::base(true). '/plugins/content/greybox/';
$headtag = array();
$headtag[] = '<script type="text/javascript">var GB_ROOT_DIR = "'. $js_root. '"</script>';
$headtag[] = '<script type="text/javascript" src="'. $js_root. 'AJS.js"></script>';
$headtag[] = '<script type="text/javascript" src="'. $js_root. 'AJS_fx.js"></script>';
$headtag[] = '<script type="text/javascript" src="'. $js_root. 'gb_scripts.js"></script>';
$headtag[] = '<link href="'. $js_root. 'gb_styles.css" rel="stylesheet" type="text/css" />';
$mainframe->addCustomHeadTag( implode( "\n", $headtag ) );
JHTML::_( 'behavior.mootools' );

$addjs = "
window.addEvent('domready', function(){
	$$('li.your_menu_class a').each(function(e){
		e.setProperty('rel','gb_page_fs[]');
	});
});";
$document = & JFactory::getDocument();
$document->addScriptDeclaration($addjs);
?>
and Output GreyBox.js in Plugin Parameters to No.

li.your_menu_class a
This part is different according to your environment.
Joomler!
Platinum Boarder
Platinum Boarder
489
2007/08/26
Re:Menu buttons and Gray Box
Saturday, 17 October 2009 10:18
0 votes
You are amazing... smile.png))
Thank you so much!
It works perfectly!
Vladi
Fresh Boarder
Fresh Boarder
2
2009/10/17
Re:Menu buttons and Gray Box
Wednesday, 31 August 2011 22:00
0 votes
It worked perfect for me in firefox and internet explorer
unfortunally in google chrome didn't work

in the code.. I changed the line
li.your_menu_class a
for
li#your_menu_id a

There is a solution to fix it on chrome?

If you wanna take a look

http://www.ilustraweb.com.br
and click in portfolio on top menu

tnx
Jorge Augusto Morera de Moura
Fresh Boarder
Fresh Boarder
3
2011/08/31
Re:Menu buttons and Gray Box
Thursday, 01 September 2011 08:47
0 votes
For slowness execution of greybox for Chrome.
As one measures
Script is filled in on the right under of the menu.

<li class="maximenuCK parent first item5 level0 " style="z-index: 11997;"><span class="separator "><span class="titreCK">Contatos</span></span>
	<div style="height: 0px; visibility: hidden; opacity: 0; left: -999em;" class="floatCK"><div class="maxidrop-top"><div class="maxidrop-top2"></div></div><div style="margin-top: -253px;" class="maxidrop-main"><div class="maxidrop-main2"><div class="maximenuCK2 first ">
<script type="text/javascript">
	$$('li#lightbox a').each(function(e){e.setProperty('rel','gb_page_fs[]');
});</script>
Joomler!
Platinum Boarder
Platinum Boarder
489
2007/08/26
 
Home » Support » Plugins » Free Plugin » GreyBox Show » Menu buttons and Gray Box
joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.