Dragonfly CMS - German Community  
Toggle Content
Toggle Content Navigation

Toggle Content Wer ist wo
 Bots:
1: Majestic-12 > Startseite
2: Google > Forum 9.x
3: YANDEX > Forum 9.x
 Visitors:
1: Forum 9.x

Toggle Content Languages

Toggle Content Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

Toggle Content Downloads (Top)

Forum 9.x > > Dragonfly CMS 9.x > > HowTo & Allgemeine Fragen > > Suchenfunktion
Suchenfunktion
Fragen und Diskussionen zur aktuellen Version
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > HowTo & Allgemeine Fragen

View previous topic :: View next topic  
Author Message
Katerrobin
Doppel-Null-Agent
Doppel-Null-Agent


Joined: Feb 14, 2008
Posts: 144

PostPosted: 21.04.2010 21:03    Post subject: Suchenfunktion Reply with quote

Hmm. hat sich schon jemand mal ans Thema rangewagt die Suchenfunktion bei mehrfach installierten Content (enhanced) Modul zu ändern. Tatsache ist, er nimmt für die Suche nur die Informationen des erstem Modules. Klar die search.inc ist auch in jeden Fall die gleiche. Das reine Suchen in den anderen Modulen lässt sich recht einfach umstellen. Zeile 119 den Link content gegen content_2 oder _3 usw. austauschen. Dann sucht er richtig.
Aber bei der erweiterten Suche werden nur wieder die Kategorien des ersten Moduls angezeigt.
Vielleicht hat ja jemand eine Idee.....

_________________
Meine Seiten:
www.bdo-ev.net (DF 9.2.1. Seite
mit 4 Unterseiten als Forum)
www.denises-welt.de (DF 9.2.1
Seite unserer Tochter)
www.bikes-parts-design.com
(DF 9.2.1 in Verbindung mit Oscommerce)
www.kraeuterkeller.de
(Sehr nette Einbindung eines externen Newslettermoduls und das DA Bestellformular)
www.kochen-fuer-kids.de
(mal eine echte DF-Seite die sich nicht mit Warcraft beschäftigt Smile )

Katerrobin's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache / PHP 4.4.8 / MySQL 4.1.2.2 / CPG 9.2.1
Back to top
View user's profile
Katerrobin
Doppel-Null-Agent
Doppel-Null-Agent


Joined: Feb 14, 2008
Posts: 144

PostPosted: 01.05.2010 19:27    Post subject: die Lösung..... Reply with quote

(Gebe zu habe den Fehler erst jetzt gerade gesucht)
Die Variable suffix wird immer von der letzten Installation übschrieben.
Also muss die search.inc in jeden Verzeichnis Hardgecodet werden.

Beispiel Content_2 Modul
Zeile 81
Kategorien einlesen.
Code::
		\$result = \$db->sql_query(\"SELECT cid, title FROM {\$prefix}_pages_categories_2 ORDER BY title\", FALSE);

Zeile 100
Inhalt durchsuchen.
Code::
		\$sql = \"SELECT pid, cid, title, UNIX_TIMESTAMP(date) AS time, LEFT(text, 256) AS short_text FROM {\$prefix}_pages_2 WHERE active='1'\";

Und damit die Links auch stimmen:
Zeile 119
Code::
				\$furl = getlink(\"Content_2&pid=\$pid\");

Gilt natürlich alles für die Orginaldateien.

_________________
Meine Seiten:
www.bdo-ev.net (DF 9.2.1. Seite
mit 4 Unterseiten als Forum)
www.denises-welt.de (DF 9.2.1
Seite unserer Tochter)
www.bikes-parts-design.com
(DF 9.2.1 in Verbindung mit Oscommerce)
www.kraeuterkeller.de
(Sehr nette Einbindung eines externen Newslettermoduls und das DA Bestellformular)
www.kochen-fuer-kids.de
(mal eine echte DF-Seite die sich nicht mit Warcraft beschäftigt Smile )

Katerrobin's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache / PHP 4.4.8 / MySQL 4.1.2.2 / CPG 9.2.1
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > HowTo & Allgemeine Fragen
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Interactive software released under GNU GPL, Code Credits, Privacy Policy