BACK UP YOUR FILES BEFORE YOU MODIFY THEM
If you want your iframe to resize you will need this free script from dynamicdrive.com. It is against the license for me to distribute the script but I will show you where to paste the script below.
Iframe SSI script II:
http://www.dynamicdr.../iframessi2.htm
Note: This is not a perfect solution. It does not work in Opera. It is important that you add a line such as "If the gallery does not display properly click here" or something to that effect. Otherwise there will be certain people who cannot see your gallery at all. I am still looking for a better way to display Coppermine inside MKPortal but this is the best I have come up with so far.
1) Install Coppermine
www.yoursite.com/gallery/
2) Create new MKPortal module directory:
/mkportal/modules/coppermine/
3) Create a new index.php for the module and upload it to your new /mkportal/modules/coppermine/ directory
/mkportal/modules/coppermine/index.php said:
if (!eregi("index.php", $_SERVER['PHP_SELF'])) { die ("Spiacente !! Non puoi accedere a questo file direttamente."); }
// if(!$ibforums->member['id']) {
// $message = "Solo gli utenti registrati possono accedere a questa sezione";
// $mklib->error_page($message);
// exit;
//}
$output = "
If the gallery does not display properly you may access it directly.
";
$mklib->printpage("1", "1", "Coppermine Gallery", $output);
?>
2) Edit tpl_main.php.
If you are using your forum skins: mkportal/templates/Forum_Skin/tpl_main.php
FIND:
Quote
$tooltip_js
{$pmk_js}
EOF;
}
{$pmk_js}
EOF;
}
ADD ABOVE:
Quote
<script type="text/javascript">
Paste the part of the Dynamicdrive Iframe SSI script II that belongs in the section of the page here...
Paste the part of the Dynamicdrive Iframe SSI script II that belongs in the section of the page here...
Note: You can leave the iframe name as the default "myframe" but if you change it anywhere you must change it everywhere.
The URL of your gallery iframe page will be http://www.yoursite....?ind=coppermine
You may also want to edit the Coppermine template to eliminate the coppermine header. Remember to add a link back to "home" or "forum" for those people who have accessed coppermine directly so that they can get back to the rest of your site. You will want to make sure to add target="_top" to your anchor tags to break out of the frame if someone uses them when viewing the gallery in the iframe.
My demo:
http://www.visiblesoul.net/resources/mkpor...?ind=coppermine
-=DKC=-














