Newsletter

Login Form



Donate

 

Es kostet Zeit, Geld und Know-how, diese Plugins zu entwickeln und kostenlos zur Verfügung zu stellen. Wenn Sie meine Arbeit nützlich finden, ziehen Sie bitte in Betracht, mich mit einer kleinen Spende zu unterstützen.

It takes time, money and know-how to develop and offer this stuff for free. If you find my work useful, consider please to support it with a small donation.

Home Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Thickbox in Menu Item???
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Thickbox in Menu Item???
#272
Thickbox in Menu Item??? 2 Years ago  
Is it possible to add a thickbox to a Menu Item? I want it to be a "link" from a navigation bar and it appears as though thickbox will only work from a content link. Am I doing something wrong, missing something, or is it just not possible?
Sell
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#273
Re:Thickbox in Menu Item??? 2 Years ago  
Yes, it is possible, but may not work on all pages, e.g. Remository or Fireboard component pages.

Then create a new external link in your menu. Add the link like this:
Code:


http://your-url.com" class="smoothbox



Note that you may omit the opening and trailing double quotes (Joomla will add them).

If you want it to work on all pages, you have to include thickbox javascript files manually with your template. That means to include the following code to the header of your template's index.php

Code:


 <script type="text/javascript" src="http://<www.your-domain.com>/plugins/content/thickbox/includes/smoothbox.js"></script>
<link rel="stylesheet" href="http://<www.your-domain.com>/plugins/content/thickbox/includes/smoothbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="http://<www.your-domain.com>/plugins/content/thickbox/includes/slimbox.js"></script>
<link rel="stylesheet" href="http://<www.your-domain.com>/plugins/content/thickbox/includes/slimbox.css" type="text/css" media="screen" />
<style type="text/css">
.lbLoading {
background: #fff url(http://<www.your-domain.com>/plugins/content/thickbox/images/loading.gif) no-repeat center;
}
#lbPrevLink:hover {
background: transparent url(http://<www.your-domain.com>/plugins/content/thickbox/images/prevlabel.gif) no-repeat 0% 15%;
}
#lbNextLink:hover {
background: transparent url(http://<www.your-domain.com>/plugins/content/thickbox/images/nextlabel.gif) no-repeat 100% 15%;
}
#lbCloseLink {
display: block;
float: right;
width: 66px;
height: 22px;
background: transparent url(http://<www.your-domain.com>/plugins/content/thickbox/images/closelabel.gif) no-repeat center;
margin: 5px 0;
}
</style>




And remember to replace <your-domain.com> off course.
You may unpublish thickbox plugin then. But don't uninstall, because you are linking to the required files in the plugin directory!
admin
Moderator
Posts: 112
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#330
Re:Thickbox in Menu Item??? 1 Year, 2 Months ago  
Hello,

I try to place a thickbox Link in a Menu and followed your instruction.
But it does not work correctly. It seems only to work, if the content is a joomla article. For example I got an sitemap (added with Joomap)
where it does not work.
When I click on the link, I am always redirected to home.
Can you help me please.

Thank you.
mectiv
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

© 2012 by lbm-services.de - All rights reserved.

Valid XHTML 1.0 Transitional