Thanks.
After some experimentation, and mainly because the images I was including were not natively in a standard format (so needed converting anyway) I decided to write my own gallery display routines.
Initially I was including this with an iframe, as suggested:
Code:
[html|<script type="text/javascript" src="/galleries/autoHeight.js"></script>]
[html|<iframe name="test" class="autoHeight" frameborder=0 allowtransparency="true" width=500 height=100 scrolling="auto" src="/galleries/vl.php?gal=prestel_mailbox&layout=0&cols=3"><a href="/galleries/vl.php?gal=prestel_mailbox&layout=0&cols=4">Click here for the gallery</a></iframe>]
(autoHeight.js is a routine to automatically adjust the iframe height!)
But was having trouble getting a consistent look-and-feel, because the css wasn't carrying through to the iframe, being a separate entity as far as the browser is concerned, and I just couldn't get the css to work..
In the end I made some edits to Syntax.php :
Immediately after
Code:
elseif ($attribute == "include") {
add:
Code:
if (substr($value,0,7) == "http://") { //Rob20100211
$pagecontent = file_get_contents($value);
if (strlen($pagecontent)>0) {
$pagecontent = preg_replace('/(\r\n|\r|\n)/', '{newline_in_include_tag}', $pagecontent);
$content = str_replace ($match,$pagecontent, $content);
} else {
$content = str_replace ($match, "<span class=\"deadlink\"".$this->getTitleAttribute($this->LANG->getLanguageValue0("tooltip_include_recursion_error_0")).">$value</span>", $content);
}
} else {
(I should probably have added a new error message!)
and add a single } later on just before
Code:
// Farbige Elemente
Now, the [include] parameter will also accept, e.g.:
Code:
[include|http://your.website/rob/gallery.php?foo=bar]
This worked for me, as the included page is now served up as part of the original page, so inherits all it's css, etc. Don't include any <head> or <body> html tags in your included webpage - launch straight into the code you want included.
I just need to add that to the search routines now ...!
HTH.
Rob