hi
in pragmamx.org, (the search module) search in eBoard, but eBoard is missing or desactivated.
I made this mods for search into (smf)
in modules/search/index.php
find:
} elseif ($type == "forum") {
$caption = _searchforum;
add after:
} elseif ($type == "smf") {
$caption = _searchforum;
find:
if (mxModuleAllowed('eBoard')) {
echo '<input type="radio" name="type" value="forum"' . (($type == 'forum') ? 'checked' : '') . '> ' . _DFORUM . '';
}
add after:
if (mxModuleAllowed('Forum')) {
echo '<input type="radio" name="type" value="smf"' . (($type == 'smf') ? 'checked' : '') . '> Forum - SMF ';
}
find :
// ######################ENDE eBOARD################################
add after:
/ ######################DEBUT smf ################################
elseif ($type == "smf") {
if (@file_exists('modules/Forum/smf/Settings.php')) {
include('modules/Forum/smf/Settings.php');
$result = sql_query("select ID_TOPIC, ID_MSG, subject, posterName, icon, body from {$db_prefix}messages WHERE (subject LIKE '%" . mxAddSlashesForSQL($query) . "%' OR body LIKE '%" . mxAddSlashesForSQL($query) . "%') ORDER BY ID_TOPIC DESC limit " . intval($min) . "," . intval($offset));
$nrows = sql_num_rows($result);
} else {
$nrows = 0;
$result = false;
}
print "<strong> in Threads: </strong>"; //Dans les fils de discussions:
$x = 0;
if (!empty($query)) {
echo "<table width="100%" cellspacing="1" cellpadding="5" border="0" bgcolor="$bgcolor1">n";
if ($nrows > 0) {
while (list($id_topic , $id_msg, $subject, $author, $icon, $message) = sql_fetch_row($result)) {
// Anzahl der Antworten
// $neuezahl=$tid;
// $result1 = sql_query("select tid from ".$prefix."_eBoard_posts where (tid like ".intval($neuezahl).") ORDER BY tid DESC limit ".intval($min).",".intval($offset));
// $nrows1 = sql_num_rows($result1);
// Ende
$text = trim(substr($subject, 0, 45));
if ($icon == "") $icon = "exclamation.gif";
echo "<tr bgcolor="$bgcolor2"><td width ="60%">"
. "<img src="modules/Forum/smf/Themes/mx-port/images/post/{$icon}.gif">"
. "<strong><a href="modules.php?name=Forum&topic={$id_topic}.msg{$id_msg}"> $text...</a></strong>"
. "</td><td width="25%">"
. "<a href="modules.php?name=Userinfo&uname=$author">$author</a>"
. "</td><td width="15%">"
// ."$nrows1 Antwort (en)."
. "</td></tr>";
$x++;
}
echo"</table>";
} else {
echo "<tr><td><center><font class="option"><b>" . _NOMATCHES . "</b></font></center>";
echo "</td></tr></table>";
}
$prev = $min - $offset;
if ($prev >= 0) {
print "<center><a href="modules.php?name=Search&author=$author&topic=$t&min=$prev&query=$query&type=$type">";
print "<b>$min " . _PREVMATCHES . "</b></a></center>";
}
$next = $min + $offset;
if ($x >= ($offset-1)) {
print "<center><a href="modules.php?name=Search&author=$author&topic=$t&min=$max&query=$query&type=$type">";
print "<b>" . _NEXTMATCHES . "</b></a></center>";
}
}
}
// ######################FIN smf ################################
in Threads: (english)
in den Antworten: (german)
For what we doesn't use languages files ?
ZitatThere is a problem with this link : http://www.pragmamx.org/modules.php?name=eboard
redirection to redirection to red...
Hi algebre :)
after the changes I get the following error:
Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in /srv/www/htdocs/web186/html/modules/Search/index.php on line 582
hi
in my index line 582 is:
print "<strong> in Threads: </strong>"; //Dans les fils de discussions:
replace whith this line :
print "<br><strong>in Threads: </strong><br><br>";
file info:
Zitat* $Source: /home/www/dps3311/home/cvsroot/pragmamx/html/modules/Search/index.php,v $
* $Revision: 1.5.4.7 $
* $Author: tora60 $
* $Date: 2006/12/03 12:02:36 $
Error:
Parse error: parse error, unexpected '/' in /srv/www/htdocs/web186/html/modules/Search/index.php on line 568Zitat* $Source: /home/www/dps3311/home/cvsroot/pragmamx/pragmamx_01/modules/Search/index.php,v $
* $Revision: 1.11 $
* $Author: tora60 $
* $Date: 2007/04/12 18:04:05 $
Not the same version, or?
Can you upload your index.php, please?
hi
this file can search also in coppermine gallery (but disactivated), if you like it uncomment lines 216,217,218
hi
@cihan
it work in your site
@ algebre
THANK YOU! :thumbup:
Thank you, algebre :thumbup:
THANK YOU Algebre :respekt:
Funktioniert einwandfrei :thumbup:
Noch was anderes ;)
Kann mein bei der Suche das Voreinstellen das als erstes das SMF Forum durchsucht wird und nicht mehr die Artikel :quest
hi
@Andi
ZitatThere is a problem with this link : http://www.pragmamx.org/modules.php?name=eboard
this link work
http://www.pragmamx.org/modules.php?name=eBoard
ah great :) thx :)
maybe it´s possible, that user can check a field, where he can search all opinions?
he search for the word "Pragmamx" in Themes, Gallery, SMF... and so on, all the same time with one search?