Hey Filipe,

sorry for spelling you wrong - but you were right, I got spanish infected as I was working one year in Oviedo, Asturias. Nice place and tasty sidra! :) But back to the topic:

You were right. I modified the value in the lightbox.js and now it works.
For anyone who is interested, this is my solution:

\web\interface\themes\blueprint\js\lightbox.js

// Felipes Lightbox for viewing Content

function getLightboxexternalSearchTips(link, title) {
// create a new modal dialog
    $dialog = $('<div id="modalDialog"><div class="dialogLoading">&nbsp;</div></div>')
        .load(path + '/Help/Home?topic=search')
                .dialog({
                modal: true,
                autoOpen: false,
                closeOnEscape: true,
                title: title,
                width: 948,
                height: screen.height-250,
                close: function () {
                      $(this).remove();
                }
            });


    // done
    return $dialog.dialog('open');
}

In the footer I call the link like this:
<li><a href="javascript: void(0)" onClick="getLightboxexternalSearchTips()"> {translate text='Search Tips'} </a></li>

Filipe, thanks a lot!!


all best,

Christian



Am 25.09.2012 14:13, schrieb Filipe MS Bento (UA):
Hi, Christian!

Although not working, you caught just by a couple minutes (close call).

Well, you are using a 950px width window for the main layout.

EDIT: Sorry fro the delay, but JIRA is down (Demian, when you arrive,  could you please do a restart of it), not finding the JIRA's ticket in google cache, and RDP to "my PC" at the University got "gaolbird" at startup and is not responding to security commands... oh, well!

Luckily, I remembered I made backups of the backups I had at that PC [ :) ] and have them here in a external HDD.

Well, if you using some derivative of my solution, who should be using an iframe to display the contents in the supporting (data) .php 

(web/services/External/xxxx.php)

If so just change the proprieties of the iframe to something like:

  echo "<div class=dialogLoading><iframe id=content src="$_GET['url']) . " frameborder=0 width='933' height=100%>

and in web/interface/themes/blueprint/js/lightbox.js funtion you are calling (getLightboxexterna?), something like:

function getLightboxexternal(link, title) {
    
    // create a new modal dialog
    $dialog = $('<div id="modalDialog"><div class="dialogLoading">&nbsp;</div></div>')
        .load(path + '/services/External/xxxx.php?url=' + link)
   .dialog({
                modal: true,
                autoOpen: false,
                closeOnEscape: true,
                title: title,
                width: 948,
                height: screen.height-200,
                close: function () {
                      $(this).remove();
                }
            });

   
    // done
    return $dialog.dialog('open');
}

and you should be fine.

Like said this is a collage of backups I have here and values calculated from the top of my head, so not 100% sure that these values will work; just teak them and you'll find the right ones.

Don't forget to perform a   

   sudo rm -rf /usr/local/vufind/web/interface/cache/*; sudo rm -rf  /usr/local/vufind/web/interface/compile/*;

after every change, just in case.

EDIT: remembered now that I have a networked log of every local adjustment I have done in these last 20 months or so... looking at it, I believe this should be ok.

All the best, looking fw to your feedback (in vufind-tech@lists.sourceforge.net, perhaps it's better) that it worked or not... :|

Filipe (not "Felipe" :) -- I'm Portuguese, not Spanish
... just kidding, many people write my name that way, don't worry) 


--------------------------

Filipe Manuel S. Bento  |  http://about.filipebento.pt/


A book that shall be really a reference to all of us (has a lot of VuFind related entries):
Library Automation and OPAC 2.0: Information Access and Services in the 2.0 Landscape
http://www.igi-global.com/book/library-automation-opac/63870
(read it for free: request your free 60-day e-book exam copy)

Computer Science Specialist | Long Term LOA (Leave of Absence) from the University of Aveiro, Portugal

Electronic & Telecommunication Engineering (5 yrs degree, UA) * MSc in Electronic Information Management (U.Sheffield, UK)

European Space Agency [ESA] Industrial Placement (IRS / ESRIN – European Space Research Institute, Frascati [Rome], Italy)

ICPD Doctorate Candidate (UA | U.Porto) * PhD Researcher (UA/CETAC.Media), grant by FCT - Portuguese Foundation for Science and Technology

President/Chair of USE.pt Steering Committee (Portuguese Ex Libris Users’ National Association, hosted by Portuguese Parliament's Library, Palácio de S. Bento, Lisbon, http://metis.fe.up.pt/use/ 








On Tue, Sep 25, 2012 at 12:24 PM, Christian Dabrowski <dabrowski.christian@fh-swf.de> wrote:
Hi all,

I used Felipes lightbox function to make the Search Help appear in a Lightbox. But my problem is that I can't find the right place to adjust the size of the lightbox pop up window. I'd like to make it smaller to make sure that the user realizes that the search tips are an overlay on the original page. I'd be thankful for any hints.

Here you can see the example:
http://194.94.3.187/vufind/  Please click "Search Tips" in the right part of the footer.

 
all best,

Christian

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general