Nope dont have any scrollbar at all
@BnH: Do you see a scrollbar in the "manage pictures"-tab to scroll down to the following pictures?
<?php
//---------------------------------------------------------------------------------
// mm_widget_mg_backend_manager
//---------------------------------------------------------------------------------
function mm_widget_mg_backend_manager($docid='', $title = '', $roles='', $templates='') {
global $modx, $id, $content, $manager_theme;
$e = &$modx->Event;
echo $iid;
if (useThisRule($roles, $templates)){
$title = empty($title) ? "Edit gallery" : $title;
if($id != 0){
mm_createTab($title, 'mgmanager', '', '', '<iframe id="mgmanager" src="'.$modx->config['site_url'].'/?id='.$docid.'&mmgal_id='.$id.'" height="500" width="100%" scrolling="yes" frameborder="0"></iframe>');
}
else
{
mm_createTab($title, 'mgmanager', '', '', 'To manage the pictures, save this document first and then re-open it for editing.');}
}
$e->output($output . "\n");
}
?>
Okay, then that is the problem.
Please change the file [tt]/assets/plugins/managermanager/widgets/mg_backend_manager/mg_backend_manager.php[/tt] to
<?php //--------------------------------------------------------------------------------- // mm_widget_mg_backend_manager //--------------------------------------------------------------------------------- function mm_widget_mg_backend_manager($docid='', $title = '', $roles='', $templates='') { global $modx, $id, $content, $manager_theme; $e = &$modx->Event; echo $iid; if (useThisRule($roles, $templates)){ $title = empty($title) ? "Edit gallery" : $title; if($id != 0){ mm_createTab($title, 'mgmanager', '', '', '<iframe id="mgmanager" src="'.$modx->config['site_url'].'/?id='.$docid.'&mmgal_id='.$id.'" height="500" width="100%" scrolling="yes" frameborder="0"></iframe>'); } else { mm_createTab($title, 'mgmanager', '', '', 'To manage the pictures, save this document first and then re-open it for editing.');} } $e->output($output . "\n"); } ?>
The above is the whole file. This new code addresses two issues:
1) It adds the scrollbars.
2) It echoes a message in the MG-tab, when the user tries to manage the gallery before the document was saved. The widget needs to know the document ID in order to know where to store the gallery images.
Hope this helps.
Diese Webseite wird auf eine neue Adresse weitergeleitet. Sollen die eingegebenen Formulardaten an die neue Adresse gesendet werden?This means as much as
This page is redericted to a different address. Should the form data be sent to the new address?
<?php
//---------------------------------------------------------------------------------
// mm_widget_mg_backend_manager
//---------------------------------------------------------------------------------
function mm_widget_mg_backend_manager($docid='', $title = '', $roles='', $templates='') {
global $modx, $id, $content, $manager_theme;
$e = &$modx->Event;
echo $iid;
if (useThisRule($roles, $templates)){
$title = empty($title) ? "Edit gallery" : $title;
$output = "// -------------- mg_backend_manager widget include ------------- \n";
$output .= <<<HTML
function doIframe(){
o = document.getElementsByTagName('iframe');
for(i=0;i<o.length;i++){
if (/\bautoHeight\b/.test(o[i].className)){
setHeight(o[i]);
addEvent(o[i],'load', doIframe);
}
}
}
function setHeight(e){
if(e.contentDocument){
e.height = e.contentDocument.body.offsetHeight + 35;
} else {
e.height = e.contentWindow.document.body.scrollHeight;
}
}
function addEvent(obj, evType, fn){
if(obj.addEventListener)
{
obj.addEventListener(evType, fn,false);
return true;
} else if (obj.attachEvent){
var r = obj.attachEvent("on"+evType, fn);
return r;
} else {
return false;
}
}
if (document.getElementById && document.createTextNode){
addEvent(window,'load', doIframe);
}
HTML;
if($id != 0){
mm_createTab($title, 'mgmanager', '', '', '<iframe id="mgmanager" src="'.$modx->config['site_url'].'/?id='.$docid.'&mmgal_id='.$id.'" width="100%" class="autoHeight" scrolling="auto" frameborder="0"></iframe>');
}
else
{
mm_createTab($title, 'mgmanager', '', '', 'To manage the pictures, save this document first and then re-open it for editing.');}
}
$e->output($output . "\n");
}
?>
Hmmmm, in my Firefox 3.6 (Win Vista) this produces an iframe which is just as high as the scroll down and scroll up buttons at the ends of the scrollbars. Using Evolution 1.0.2,