[horde] [goops] No sources in Block
Roel Gloudemans
roel at gloudemans.info
Fri Aug 6 10:18:21 PDT 2004
Jan, Thanks for the fix.
Below I have a patch to open all search links in a new window. Additionally I
also found a bug in Goops.php.
The file /graphics/new_window.gif from the goops tree can be moved to the attic
Cheers,
Roel.
Patch for links in new window
--- result-row.inc.orig 2004-08-06 19:00:09.119321684 +0200
+++ result-row.inc 2004-08-06 19:05:40.622887110 +0200
@@ -8,19 +8,17 @@
<tr class="<?php echo $class ?>" onmouseover="className='<?php echo $class
?>-hi';" onmouseout="className='<?php echo $class ?>';">
<td align="right" valign="top" width="1%">
- <?php echo $result['rank']; ?>.<br>
- <?php echo Horde::link(Horde::externalUrl( $result['url'] ), sprintf(
_("Open '%s' in a new Window"), $result['title']), null, '_new') .
- Horde::img( 'new_window.gif', sprintf(_("Open '%s' in a new
Window"), $result['title'] )) ?></a>
+ <?php echo $result['rank']; ?>
</td>
<td>
<table cellspacing=2 cellpadding=0 border=0>
<tr>
<td valign="top">
- <?php echo Horde::link(Horde::externalUrl($result['url']),
sprintf(_("Image for '%s'"), $result['title'])) .
+ <?php echo Horde::link(Horde::externalUrl($result['url']),
sprintf(_("Image for '%s'"), $result['title']), null, '_new') .
(!empty($result['image']) ? Horde::img($result['image'],
sprintf(_("Image for '%s'"), $result['title']), null, '') : '') ?></a>
</td>
<td valign="top">
- <?php echo Horde::Link(Horde::externalUrl($result['url']),
sprintf(_("Open '%s'"), $result['title'])) ?>
+ <?php echo Horde::Link(Horde::externalUrl($result['url']),
sprintf(_("Open '%s'"), $result['title']), null, '_new') ?>
<?php
if ($prefs->getValue('highlight') == true) {
echo Goops::highlightWords($result['title'], $params['query']);
Patch for Goops.php
--- Goops.php.org 2004-08-06 18:58:29.674787107 +0200
+++ Goops.php 2004-08-06 18:58:40.028968589 +0200
@@ -160,7 +160,7 @@
return $results;
}
- for ($i = 0; $i < code($offensiveWords); $i++) {
+ for ($i = 0; $i < count($offensiveWords); $i++) {
if ($i == 0) {
$words = $filter_regExp['words']['start'] . $offensiveWords[$i]
. $filter_regExp['words']['end'];
} else {
More information about the horde
mailing list