Seite 1 von 13

Gibt es einen Lexikon-Mod?

Verfasst: 01.01.2004 15:35
von rainer1972
Hallo Forum,

gibt es für die Version 2.0.6. einen Lexikon-Mod? WO find ich den?

Grüße
Rainer

Verfasst: 01.01.2004 15:38
von Fabian
Was ist ein Lexikon-MOD?

Lexikon

Verfasst: 01.01.2004 15:40
von rainer1972
Ich möchte ein Lexikon auf dem phpbb einbauen.

Verfasst: 01.01.2004 15:41
von Fabian
Achso. Von so einem MOD weiß ich nichts.
Hast du schon auf Tux: Adult-URL entfernt. geschaut?

ich war

Verfasst: 01.01.2004 15:42
von rainer1972
schon vielerorts, aber ich hab noch kein Lexikon gefunden.

Verfasst: 01.01.2004 15:58
von Fabian
Kleine Faustregel:
Was es für phpBB Foren auf Tux: Adult-URL entfernt. nicht gibt, wird es wahrscheinlich nicht geben

Verfasst: 01.01.2004 16:01
von JumpinJack
ähm...sicher das ihr hier Tux: Adult-URL entfernt. meint? Oder meint ihr http://phpbbhacks.com ?
*klugscheiss*

Verfasst: 01.01.2004 16:09
von Fabian
Huch, da hab ich mich vertan...sorry!

Ich meine natürlich phpbb

Verfasst: 26.09.2004 19:32
von BZebra
Ein Lexikon oder Glossar gibts z.B. bei http://eXperienZ.NET.

Beispiel: http://experienz.net/lexique.php
Download: http://experienz.net/dload.php?action=file&id=7

Ich hab die lexique.php (heißt bei mir glossar.php, sollte auch so benannt werden, andernfalls in Zeile 135 und 136 abändern) etwas angepasst, mit Forumsheader und Footer versehen, Style subSilver ...

Wer sie haben mag:

Code: Alles auswählen

<?php 
/*************************************************************************** 
*     debut                  : jeudi 22 juillet 2004 
*     copyright              : http://www.experienz.net 
*     Auteur                 : eXperienZ.NET 
*     version                : 1.0 
*     email                  : nellsy@experienz.net 
*     module                 : lexique 
**************************************************************************** 
*     description            : 
* 
* Ajoute un lexique en MOD sur un forum de type PhpBB. 
* La configuration du mod, ainsi que la modification de mot 
*  se fais via le panneau d'administration. 
**************************************************************************** 
* MOD crée par l'équipe d'eXperienZ.NET 
****************************************************************************/  

define('IN_PHPBB', true); 

$phpbb_root_path = './'; // <-- 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 

include($phpbb_root_path . 'includes/page_header.'.$phpEx); 

// Connection au fichier de la base de données 
include("config.php"); 

// connection a la base de donnees 
$connect = mysql_connect($dbhost,$dbuser,$dbpasswd); 

// selection de la base 
mysql_select_db($dbname, $connect); 

// Définition des tables utilisés pour le lexique 
$table = "phpbb_lexique_config"; // Par défaut phpbb_lexique_config 
$table2 = "phpbb_lexique"; // Par défaut phpbb_lexique 
$table_session = "phpbb_session"; // Par défaut phpbb_session 

//Requête de selection des entrées 
$affiche="SELECT * FROM $table "; 
$result = mysql_query($affiche); 
$val = mysql_fetch_array($result); 

//Récupération des variables avant de les afficher 
$nom_page=$val['nom_page']; 
$explication_page=$val['explication_page']; 

?> 

<HEAD> 

<style type="text/css"> 
<!-- 


body, td, { font:normal 10pt Verdana; color:#000000 } 
.lettre { font:bold 10pt Verdana; text-decoration:none } 
.lettre:hover { text-decoration:underline } 
.lettre2 { font:bold 10pt Verdana; color:red } 
.lettre3 { font:bold 10pt Verdana; color:#C0C0C0 } 

.siteTitle                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #006699; } 

.siteText        { font-size : 12px; font-family: Verdana, Arial, Helvetica, sans-serif;} 

td { font-family: Verdana, Arial, Helvetica, sans-serif } 
.bodyline   { background-color: #FFFFFF; border: 1px #98AAB1 solid; } 

.forumline   { background-color: #FFFFFF; border: 2px #006699 solid; } 

td.row1   { background-color: #EFEFEF; } 
.postbody { font-size : 12px; line-height: 18px} 


--></STYLE> 


<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> 
<tr> 
<td align="left"><span class="nav"><a class="nav" href="index.php">Foren-Übersicht</a> 
<a name="Übersicht"></a></span></td> 
</tr> 
</table> 

<table class="forumline" width="100%" cellspacing="0" cellpadding="3" border="0" style="border-collapse: collapse" bordercolor="#111111"> 
<tr> 
<th class="thHead" height="25" valign="middle"><span class="tableTitle"><!- ***Hier könnt ihr eure Überschrift einfügen, Leute die in html sicher sind können auch Eigenschaften der Überschrfit verändern. Nach diesem Kommentar einfach die Überschrift reinschreiben.***-> 
Glossar</span></th> 
</tr> 

<tr> 
            <td width="100%" align=left style="font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif"> 

<table cellspacing=10 cellpadding="12"> 

<tr><td align=left> 

<b><span class="siteTitle"><? echo $nom_page; ?></span></b><br /> 
<span class="mainmenu"><? echo $explication_page; ?></span> 

</td> 
  </tr> 

</table> 

 <table cellpadding="12" > 
   <tr><td style="font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif"> 
    
<table cellspacing=10> 
<tr><td align=left> 
<? 
// Recherche les lettres présentes dans le lexique 
$res = mysql_query("SELECT DISTINCT ord(titre) FROM $table2"); 
$temp = " "; 
while($val=mysql_fetch_array($res)) $temp.=strtoupper(chr($val[0])); 

// Affichage de l'alphabet 
for($i=65;$i<91;$i++) { 
if($lettre==chr($i)) 
    
// Lettre sélectionnée 
echo "<font class=lettre2>".chr($i)."&nbsp;&nbsp;</font>"; 
elseif(!strpos($temp,chr($i))) 
    
// Lettre sans définition 
echo "<font class=lettre3>".chr($i)."&nbsp;&nbsp;</font>"; 
else 
    
// Lien 
echo "<A class=lettre href='glossar.php?lettre=".chr($i)."'>".chr($i)."</A>&nbsp;&nbsp;"; 
} ?><b>-&nbsp;&nbsp;<a class=lettre href="glossar.php">Alle</a></b> 

<br /><br /> 
</td></tr> 


<? 

if ( isset($HTTP_GET_VARS['lettre']) || isset($HTTP_POST_VARS['lettre']) ) 
{ 
   $lettre = ( isset($HTTP_POST_VARS['lettre']) ) ? htmlspecialchars($HTTP_POST_VARS['lettre']) : htmlspecialchars($HTTP_GET_VARS['lettre']); 
} 
else 
{ 
   $lettre = ''; 
} 
if($lettre) 

// Sélectionne les définitions correspondant à la lettre 
$SQL = "SELECT * FROM $table2 WHERE titre LIKE '".$lettre."%' ORDER BY titre"; 

else 

// ou fait un tirage aléatoire sur la page d'accueil 
$SQL = "SELECT * FROM $table2 ORDER BY titre"; 

// Affiche les définitions entrées dans la table 
$res = mysql_query($SQL); 
while($val=mysql_fetch_array($res)) { 
echo "<tr><td class=postbody>"; 
echo "<b>".$val["titre"]."</b><br>" 
. "<div align=justify>".$val["explication"]."<br></div>" 
. "</td></tr>"; 
} 
?> 



</td> 
  </tr> 
</td></tr> 
</table> 
</table> 
</td></tr> 
</table> 
<!- ***Hier endet der html Teil.*** -> 

<? 
// Déconnection de la base de données 
mysql_close(); 
include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>
Nicht vergessen die MySQL-Befehle durchzuführen, steht nicht in der Installationsanweisung drin.

Verfasst: 28.09.2004 19:55
von Gert
Hi....
Nicht vergessen die MySQL-Befehle durchzuführen, steht nicht in der Installationsanweisung drin.
Wo hast du da ne Installanweisung gefunden?

Gruss Gert