| Autor |
Nachricht |
Thomson
Universal Genius

Anmeldungsdatum: 05.08.2002
Beiträge: 4726
Wohnort: a shibby place
|
Verfasst am:
Sa 29 Jan, 2005 20:50 |
  |
| Code: |
########################################################
## Mod Title: Quick Forum & Download Search
## Mod Version: 1.0.0
## MOD Author: Thomson (thomson@phpbb2.de)
## oxpus (oxpus@phpbb2.de)
##
## MOD Description: This Mods adds two forum & download search boxes.
##
##
##
## Installation Level: Easy
## Installation Time: 10 Minutes
##
## Files To Edit: 2
## root/includes/page_header.php
## root/templates/YOUR_TEMPLATE/overall_header.tpl
##
##
## Included images: 3
##
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb2.de for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb2.de/downloads.php
##############################################################
## Author Notes:
## This Mod was designed for the phpBB-Board on http://www.phpBB2.de
## The Forum Search Box works with every normal phpBB 2.0.x-Version
## To use the Download-Search-Box you have to install the paFileDB-Download-Mod
## which is available at phpBB2.de (http://www.phpbb2.de/dload.php?action=file&file_id=141)
##
##############################################################
## MOD History:
##
## 2005-01-04 - Version 0.0.1
## - got the idea
## - presented it to the team
##
## 2005-01-05 - Version 0.1.0
## - first time only on phpBB2.de (only for team members)
##
## 2005-01-27 - Version 0.9.0
## - created some images for the boxes
## - testet the new layout on my board
##
## 2005-01-27 - Version 1.0.0
## - fixed some minor bugs
## - new layout on phpBB2.de
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
###-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Quicksearch pafiledb Start
$s_pafiledb_search_fields = '<input type="text" size="20" name="search_keywords" value="Mod-Bezeichnung" />';
$s_pafiledb_search_fields .= ' <input type="submit" name="submit" value=" GO " />';
$s_pafiledb_hidden_fields = '<input type="hidden" name="search_terms" value="all" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="search_terms" value="all" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="search_author" value="" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="cat_id" value="0" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="comments_search" value="NO" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="sort_method" value="file_time" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="sort_order" value="ASC" />';
$s_pafiledb_hidden_fields .= '<input type="hidden" name="action" value="search" />';
$s_action_pafiledb = append_sid('dload.'.$phpEx);
$template->assign_vars(array(
'S_SEARCH_PAFILEDB_FIELDS' => $s_pafiledb_search_fields,
'S_HIDDEN_PAFILEDB_FIELDS' => $s_pafiledb_hidden_fields,
'S_ACTION_PAFILEDB' => $s_action_pafiledb)
);
// Quicksearch pafiledb END
// Quicksearch Start
$s_search_top_fields = '<input type="text" size="20" name="search_keywords" value="'.$lang['Forum'].' '.$lang['Search'].'" />';
$s_search_top_fields .= ' <input type="submit" name="submit" value=" GO " />';
$s_search_hidden_fields = '<input type="hidden" name="search_fields" value="all" />';
$s_search_hidden_fields .= '<input type="hidden" name="show_results" value="topics" />';
$s_action_search_top = append_sid('search.'.$phpEx);
$template->assign_vars(array(
'S_SEARCH_TOP_FIELDS' => $s_search_top_fields,
'S_HIDDEN_TOP_FIELDS' => $s_search_hidden_fields,
'S_ACTION_SEARCH_TOP' => $s_action_search_top)
);
// Quicksearch END
#
###-----[ OPEN ]------------------------------------------
#
templates/YOUR_TEMPLATE/overall_header.tpl
#
###-----[ FIND & DELETE ]------------------------------------------
#
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
#
###-----[ FIND ]------------------------------------------
#
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
#
###-----[ AFTER ADD ]------------------------------------------
#
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2%"> </td>
<td width="25%" align="right">
<form action="{S_ACTION_SEARCH_TOP}" method="post" target="_blank" name="search_top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/fisubsilversh/images/search_left.gif" width="15" height="30"></td>
<td width="100%" class="toplist2" background="templates/fisubsilversh/images/search_back.gif">
{S_SEARCH_TOP_FIELDS}
{S_HIDDEN_TOP_FIELDS}
</td>
<td align="right"><img src="templates/fisubsilversh/images/search_back.gif" height="30"></td>
<td align="right"><img src="templates/fisubsilversh/images/search_right.gif" height="30"></td>
</tr>
</table>
</form>
</td>
<td width="46%" align="left"> </td>
<td width="25%" align="right">
<form action="{S_ACTION_PAFILEDB}" method="post" target="_blank" name="pafiledb_search">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/fisubsilversh/images/moddb_left.gif" width="15" height="30"></td>
<td width="100%" class="toplist2" background="templates/fisubsilversh/images/moddb_back.gif">
{S_SEARCH_PAFILEDB_FIELDS}
{S_HIDDEN_PAFILEDB_FIELDS}
</td>
<td align="right"><img src="templates/fisubsilversh/images/moddb_back.gif" height="30"></td>
<td align="right"><img src="templates/fisubsilversh/images/moddb_right.gif" height="30"></td>
</tr>
</table>
</form>
</td>
<td width="2%"> </td>
</tr>
</table>
|
|
| Search Box.zip |
| Beschreibung: |
|
 Download |
| Dateiname: |
Search Box.zip |
| Dateigröße: |
3.79 KB |
| Heruntergeladen: |
353 mal |
_________________ There are only 10 types of people in the world: Those who understand binary, and those who don't... |
|
      |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
fabs
phpBB2.de User

Anmeldungsdatum: 27.12.2004
Beiträge: 45
Wohnort: Österreich (OÖ)/ Linz
|
Verfasst am:
Mo 04 Apr, 2005 21:28 |
  |
hallo
ahm in Sachen proggen bin ich nicht so der Beste..
ahhm, wo mus ich denn diesen Code einfügen *liebschau*
Mfg fabs |
_________________ http://www.fabian.at.tc :: offline |
|
      |
 |
sandira
Support Team Member


Anmeldungsdatum: 28.11.2004
Beiträge: 1586
Wohnort: Magdeburg
|
Verfasst am:
Mo 04 Apr, 2005 21:55 |
  |
|
    |
 |
wb
phpBB2.de User


Anmeldungsdatum: 21.11.2004
Beiträge: 13
Wohnort: Mönchengladbach
|
Verfasst am:
Mo 16 Mai, 2005 13:08 |
  |
Habe bei mir mal den Searchbox Mod eingebaut.
Die Grafiken werden auch angezeigt, aber es sind keine Eingabefelder da und der GO-Button fehlt?
Hat jemand eine Ahnung, weil viel falsch zu machen gibt es da ja nicht, oder? |
|
|
|
    |
 |
sandira
Support Team Member


Anmeldungsdatum: 28.11.2004
Beiträge: 1586
Wohnort: Magdeburg
|
Verfasst am:
Mo 16 Mai, 2005 13:16 |
  |
Dann sind die Grafiken wohl entweder gar nicht vorhanden oder im falschen Ordner (Probiere mal z.B. templates/fisubsilversh/images.)... Was den Go-Button betrifft, bin ich erstmal überfragt. |
_________________
Vor dem Posten auf phpBB2.de --> Regeln - Anleitungen - Forumssuche |
|
    |
 |
wb
phpBB2.de User


Anmeldungsdatum: 21.11.2004
Beiträge: 13
Wohnort: Mönchengladbach
|
Verfasst am:
Mo 16 Mai, 2005 17:42 |
  |
Nee, die Grafiken kommen ja. Die waren aber auch teilweise bei der hier zum download gestellten Datei nicht dabei.
Für die rechte Searchbox waren die Grafiken moddb_left, moddb_right, und moddb_back.gif dabei.
Für die linke Searchbox werden in der overall-header.tpl Pfade auf search_left, search_right, und search_back.gif gesetzt, die sind aber nicht dabei! Halb so wild, hab ich mir selbst gebastelt. Und die erscheinen ja auch, nur halt die Eingabefelder und die "GO"-buttons nicht.
Betreibe bei mir ein phpBBBplus 1.52. Sollte doch gehen, oder?
Was mir noch aufgefallen ist, wenn ich mir von der aufgerufenen Seite den Quellcode anschaue ist die form action ="", obwohl ja eigentlich so etwas wie z.B. search.php da erscheinen sollte. |
|
|
|
    |
 |
wb
phpBB2.de User


Anmeldungsdatum: 21.11.2004
Beiträge: 13
Wohnort: Mönchengladbach
|
Verfasst am:
Mo 16 Mai, 2005 19:25 |
  |
Fehler gefunden!
Kleine Macke in der Anleitung!
Die Änderungen in der page-header.php werden an der falschen Stelle eingefügt!
anstatt:
| Code: |
###-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------ |
sollte es heißen:
| Code: |
###-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]------------------------------------------ |
Dann klappt's auch mit dem Nachbarn
Angepasst an den Style fiblack3d zu bewundern bei www.werner-behning.de |
|
|
|
    |
 |
modbo
phpBB2.de User

Anmeldungsdatum: 22.12.2004
Beiträge: 1181
|
Verfasst am:
Di 17 Mai, 2005 15:16 |
  |
Hier mal als Download mit den o.g. Änderungen. |
| Search_Box.zip |
| Beschreibung: |
|
 Download |
| Dateiname: |
Search_Box.zip |
| Dateigröße: |
5.85 KB |
| Heruntergeladen: |
198 mal |
|
|
    |
 |
torte88
phpBB2.de User


Anmeldungsdatum: 05.10.2004
Beiträge: 231
Wohnort: Hanau bei Frankfurt am Main
|
Verfasst am:
Mi 18 Mai, 2005 18:36 |
  |
ok ich habs mal eingebaut zu bewundern unter www.planet-torte.de nur eine sache stört mich noch, wie bekomme ich es hin, dass das suchergebniss nicht in einer neuen seite geöffnet wird?! und dass wenn man in das feld klickt die begriffe 'Forum Suchen' automatisch verschwinden |
_________________ http://www.all4phones.de Das Handyportal  |
|
      |
 |
eternitysoft
phpBB2.de User

Anmeldungsdatum: 21.06.2004
Beiträge: 16
|
Verfasst am:
Mi 18 Mai, 2005 18:59 |
  |
| Zitat: |
#
###-----[ AFTER ADD ]------------------------------------------
#
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2%"> </td>
<td width="25%" align="right">
<form action="{S_ACTION_SEARCH_TOP}" method="post" target="_blank" name="search_top"> |
das rot markierte rausnehmen
mfg
et |
|
|
|
   |
 |
torte88
phpBB2.de User


Anmeldungsdatum: 05.10.2004
Beiträge: 231
Wohnort: Hanau bei Frankfurt am Main
|
Verfasst am:
Mi 18 Mai, 2005 20:07 |
  |
|
      |
 |
oxpus
phpBB2.de User

Anmeldungsdatum: 11.02.2003
Beiträge: 8613
Wohnort: Bad Wildungen
|
Verfasst am:
Do 19 Mai, 2005 01:10 |
  |
BTW:
Das war absichtlich so gemacht, um eben die "Ursprungsseite" weiterhin zu behalten. Ist aber selbstverständlich jedem frei gestellt, dieses zu ändern. |
_________________ Karsten Ude
Support nur im Forum! || Support just on Forum!
OXPUS's Mods |
|
    |
 |
torte88
phpBB2.de User


Anmeldungsdatum: 05.10.2004
Beiträge: 231
Wohnort: Hanau bei Frankfurt am Main
|
Verfasst am:
Do 19 Mai, 2005 14:32 |
  |
jo und wie bekommt man es nun hin, dass der text verschwindet, sobald man in die box klickt?! |
_________________ http://www.all4phones.de Das Handyportal  |
|
      |
 |
$Dragonlord$
phpBB2.de User

Anmeldungsdatum: 05.06.2004
Beiträge: 669
|
Verfasst am:
Mi 07 Dez, 2005 21:13 |
  |
wenns noch interessiert:
open: includes/page_header.php
find:
| Code: |
$s_pafiledb_search_fields = '<input type="text" size="20" name="search_keywords" value="Mod-Bezeichnung" />';
|
replace with:
| Code: |
$s_pafiledb_search_fields = '<input type="text" size="20" name="search_keywords" onFocus="this.value=\'\'" value="Mod-Bezeichnung" />';
|
find:
| Code: |
$s_search_top_fields = '<input type="text" size="20" name="search_keywords" value="'.$lang['Forum'].' '.$lang['Search'].'" />';
|
replace with:
| Code: |
$s_search_top_fields = '<input type="text" size="20" name="search_keywords" onFocus="this.value=\'\'" value="'.$lang['Forum'].' '.$lang['Search'].'" />';
|
Getestet und funktioniert.
i.d.S.
Dragon |
_________________ Suchen bildet !!!
Kein Support per PN !!! Unaufgeforderte PNs werden ignoriert !!! |
|
    |
 |
|
|
|
|