Bezugnehmend auf diesen Threat:
http://www.pragmamx.org/modules.php?name=Forum&topic=17184.0
Ich habe diese Änderungen mal vorgenommen, aber die Beiträge werden nicht in Punkte umgerechnet.
Eigentlich fehlt doch da noch etwas, denn in den Benutzer-Einstellungen kann ich ja nur die Punkte fürs E-Board auswählen, nicht jedoch für das SMF.
Ich denke mal, dass die Erweiterung in der userpoints.php (YA-Erweiterung) schon läuft, nur eben mit dem Wert "Null Punkte" :-\
Hat wer ne Idee?
Hi,
Schau wieder auf: http://www.pragmamx.org/modules.php?name=Forum&topic=17184.0
L.g
okü.. isch warte gespannt ^^**
Hab die lösung schon im anderen gepostet, das wollte ich damit ausdrücken.
l.g
ZitatHi,
Plus zu dem Code oben noch in der .../admin/modules/userconfig.php folgendes ändern.
Ich Poste gleich meine daher, bitte vorher von eurer ein Backup machen!
L.g
aber da ist leider kein File ^^
Also da ist eins und 2 mal schon runtergeladen steht dort.
Hier nochmal das file.
[gelöscht durch Administrator]
ich kann da immer noich nichts sehen. habs mir jetzt hier runtergeladen.
--> schau mal das Bild an. Da ist nichts!
[gelöscht durch Administrator]
Parse error: parse error in /home/www/web1/html/PORTAL/admin/modules/usersconfig.php on line 456
tut noch nicht :(
Hi,
Hier meine ..admin/modules/userconfig.php
<?php // $Id: usersconfig.php,v 1.3 2005/04/19 14:52:01 tora60 Exp $
/************************************
pragmaMx Content Management System
Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
***********************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
***********************************
$Source: /cvsroot/pragmamx/stable/admin/modules/usersconfig.php,v $
$Revision: 1.3 $
$Author: tora60 $
$Date: 2005/04/19 14:52:01 $
***********************************
Bariba-Newsletter Integration by sidewind, http://www.komplett-umsonst.de
************************************/
if (!defined("mxAdminFileLoaded")) die("Access Denied");
if (!mxGetAdminPref("radminuser")) {
mxErrorScreen("Access Denied"); die();
}
$url_smiles = "modules/Private_Messages/images/smilies";
$pagetitle = "- "._PTITLE."";
/*********************************************************/
/* Configuration Functions to Setup all the Variables */
/*********************************************************/
function usersconfig() {
global $admin, $aid;
if (!defined("mxYALoaded")) define("mxYALoaded",1);
include ("modules/Your_Account/config.php");
$useavatar = FALSE;
include ("header.php");
GraphicAdmin();
title(_USERSADMINHEAD);
OpenTable();
#echo "<blockquote><font class=\"option\"><b>"._USERS_ADMIN."</b></font></blockquote><br>";
echo "<form action=\"admin.php\" method=\"post\">"
."<table border=\"0\"><tr><td>"._SENDDELTEMAIL."</td><td>";
if ($senddeletemail==1) {
echo "<input type=\"radio\" name=\"xsenddeletemail\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xsenddeletemail\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xsenddeletemail\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xsenddeletemail\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr><tr><td>"._SENDADDMAIL."</td><td>";
if ($sendaddmail==1) {
echo "<input type=\"radio\" name=\"xsendaddmail\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xsendaddmail\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xsendaddmail\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xsendaddmail\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr><tr><td>"._ADMKUNEWSLETTER."</td><td>";
if (!empty($shownewsletter)) {
echo "<input type=\"radio\" name=\"xshownewsletter\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xshownewsletter\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xshownewsletter\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xshownewsletter\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr><tr><td>"._CHANGETHEMEN."</td><td>";
if ($allowchangetheme==1) {
echo "<input type=\"radio\" name=\"xallowchangetheme\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xallowchangetheme\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xallowchangetheme\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xallowchangetheme\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr><tr><td>"._LOGINSTARTPAGE."</td><td>";
echo "<input type='text' name='xyastartpage' value='".((empty($yastartpage)) ? "modules.php?name=Userinfo" : $yastartpage)."' size='30'>";
echo "</td></tr>";
/* START Benutzer muessen den AGB zustimmen - 2005-18-05 (RtR)*/
echo "<tr><td colspan='2'><hr size='1' noshade></td></tr>";
global $prefix;
echo "<tr>
<td>"._AGREERULES."</td>";
if ($agb_content < 1)
{
echo "<td><input type=\"radio\" name=\"xagb_content\" value=\"0\" checked><strong>"._NO."</strong></td>";
}
else
{
echo "<td><input type=\"radio\" name=\"xagb_content\" value=\"0\">"._NO."</td>";
}
echo "</tr>";
$seccontlist = sql_query("SELECT artid, title FROM ".$prefix."_seccont ORDER BY secid ASC");
$showseccontlist = sql_num_rows($seccontlist);
if ($showseccontlist >= 1)
{
echo "<tr>
<td>";
if ($agb_content == 1)
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"1\" checked><strong>"._YES."</strong>";
}
else
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"1\">"._YES."";
}
echo " - "._FROM.": "._SECTIONSMANAGER."</td>";
echo "<td><select size=\"1\" name=\"xagb_content_sub1\">";
while(list($artid, $secconttitle) = sql_fetch_row($seccontlist))
{
if ($artid == $agb_content_sub1)
{
$agb_sub1_select = " selected";
}
else
{
$agb_sub1_select = "";
}
$agb_sub1_laenge = strlen($secconttitle);
if ($agb_sub1_laenge >= 30)
{
$secconttitle = substr($secconttitle, 0, 26);
$secconttitle .= " ...";
}
echo "<option value=\"$artid\"".$agb_sub2_select.">$secconttitle</option>";
}
echo "</select></td>
</tr>";
}
$contentlist = sql_query("SELECT pid, title FROM ".$prefix."_pages WHERE active='1' ORDER BY pid DESC");
$showcontentlist = sql_num_rows($contentlist);
if ($showcontentlist >= 1)
{
echo "<tr>
<td>";
if ($agb_content == 2)
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"2\" checked><strong>"._YES."</strong>";
}
else
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"2\">"._YES."";
}
echo " - "._FROM.": "._CONTENTMANAGER."</td>";
echo "<td><select size=\"1\" name=\"xagb_content_sub2\">";
while(list($pid, $pagetitle) = sql_fetch_row($contentlist))
{
if ($pid == $agb_content_sub2)
{
$agb_sub2_select = " selected";
}
else
{
$agb_sub2_select = "";
}
$agb_sub2_laenge = strlen($pagetitle);
if ($agb_sub2_laenge >= 30)
{
$pagetitle = substr($pagetitle, 0, 26);
$pagetitle .= " ...";
}
echo "<option value=\"$pid\"".$agb_sub2_select.">$pagetitle</option>";
}
echo "</select></td>
</tr>";
}
$moduleslist = sql_query("SELECT mid, title, custom_title FROM ".$prefix."_modules WHERE active='1' ORDER BY custom_title ASC");
$showmoduleslist = sql_num_rows($moduleslist);
if ($showmoduleslist >= 1)
{
echo "<tr>
<td>";
if ($agb_content == 3)
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"3\" checked><strong>"._YES."</strong>";
}
else
{
echo "<input type=\"radio\" name=\"xagb_content\" value=\"3\">"._YES."";
}
echo " - "._FROM.": "._ACTIVEMODULES."</td>";
echo "<td><select size=\"1\" name=\"xagb_content_sub3\">";
while(list($mid, $title, $custom_title) = sql_fetch_row($moduleslist))
{
if ($custom_title == "")
{
$custom_title = $title;
}
if ($mid == $agb_content_sub3)
{
$agb_sub3_select = " selected";
}
else
{
$agb_sub3_select = "";
}
$agb_sub3_laenge = strlen($custom_title);
if ($agb_sub3_laenge >= 30)
{
$custom_title = substr($custom_title, 0, 26);
$custom_title .= " ...";
}
echo "<option value=\"$mid\"".$agb_sub3_select.">$custom_title</option>";
}
echo "</select></td>
</tr>";
}
/* ENDE Benutzer muessen den AGB zustimmen */
if (@file_exists("modules/Private_Messages")) {
echo "<tr><td colspan='2'><hr size='1' noshade></td></tr>";
echo "<tr><td>"._SENDNEWMESS."</td><td>";
if ($sendnewusermsg==1) {
echo "<input type=\"radio\" name=\"xsendnewusermsg\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xsendnewusermsg\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xsendnewusermsg\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xsendnewusermsg\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr>";
echo "<tr><td colspan='2'><span class=\"tiny\">"._NEWMESSMESS."</span></td></tr>";
echo "<tr><td>"._MSGADMIN."</td><td>";
echo printMsgUsersList($msgadminid);
echo "</td></tr><tr><td>"._MSGLANG.":</td><td>";
printMsgLanguage($msgdefaultlang);
echo "</td></tr><tr><td valign=\"top\">"._MSGICON.": <br>(".$GLOBALS['url_smiles'].")</td><td nowrap>";
getMessageImages($msgicon);
echo "</td></tr>";
}
else {
echo "<input type='hidden' name='xsendnewusermsg' value='0'>";
}
echo "<tr><td colspan='2'><hr size='1' noshade></td></tr>";
echo "<tr><td>"._USERPOINTS."</td><td>";
if ($useuserpoints==1) {
echo "<input type=\"radio\" name=\"xuseuserpoints\" value=\"1\" checked size=20>"._YES."
<input type=\"radio\" name=\"xuseuserpoints\" value=\"0\" size=20>"._NO."";
} else {
echo "<input type=\"radio\" name=\"xuseuserpoints\" value=\"1\" size=20>"._YES."
<input type=\"radio\" name=\"xuseuserpoints\" value=\"0\" checked size=20>"._NO."";
}
echo "</td></tr><tr><td valign=\"top\">"._NOUSER."</td><td><textarea cols=\"35\" rows=\"3\" name=\"xexcludedusers\">".stripslashes($excludedusers)."</textarea>";
echo "</td></tr><tr><td colspan=\"2\">";
echo ""._HEAD2."<br><blockQuote>";
echo "<table border=\"0\"><tr><td>"
.""._DOWN1.":</td><td><input type=\"text\" name=\"xpoints_downloads1\" value=\"$points_downloads1\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._DOWN2.":</td><td><input type=\"text\" name=\"xpoints_downloads2\" value=\"$points_downloads2\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._LINKS1.":</td><td><input type=\"text\" name=\"xpoints_links1\" value=\"$points_links1\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._LINKS2.":</td><td><input type=\"text\" name=\"xpoints_links2\" value=\"$points_links2\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._UMFRAGEN.":</td><td><input type=\"text\" name=\"xpoints_umfragen\" value=\"$points_umfragen\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._ARTIKEL.":</td><td><input type=\"text\" name=\"xpoints_artikel\" value=\"$points_artikel\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._KOMMENTS.":</td><td><input type=\"text\" name=\"xpoints_kommentare\" value=\"$points_kommentare\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._GB1.":</td><td><input type=\"text\" name=\"xpoints_gb1\" value=\"$points_gb1\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._GB2.":</td><td><input type=\"text\" name=\"xpoints_gb2\" value=\"$points_gb2\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._POSTS.":</td><td><input type=\"text\" name=\"xpoints_fposts\" value=\"$points_fposts\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._THREADS.":</td><td><input type=\"text\" name=\"xpoints_fthreads\" value=\"$points_fthreads\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
."SMF Posts:</td><td><input type=\"text\" name=\"xpoints_smfmessages\" value=\"$points_smfmessages\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
."SMF Topics:</td><td><input type=\"text\" name=\"xpoints_smftopics\" value=\"$points_smftopics\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._KALENDER.":</td><td><input type=\"text\" name=\"xpoints_kalender\" value=\"$points_kalender\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._GALLPICS1.":</td><td><input type=\"text\" name=\"xpoints_bilder1\" value=\"$points_bilder1\" size=\"5\" maxlength=\"5\">"
."</td></tr><tr><td>"
.""._GALLPICS2.":</td><td><input type=\"text\" name=\"xpoints_bilder2\" value=\"$points_bilder2\" size=\"5\" maxlength=\"5\">"
."</td></tr>"
."</table></blockquote>"
."</td></tr>";
echo "<tr><td colspan='2'>"
."<input type=\"hidden\" name=\"op\" value=\"UsersConfigSave\" size=20>"
."<center><br><br><input type=\"submit\" value=\""._UCSAVECHANGES."\" size=20></center>"
."</td></tr></table>"
."</form>";
Credits();
CloseTable();
include ("footer.php");
}
function Credits() {
echo "<div align=\"right\"><font class=\"tiny\">Users Admin Script by <br>
<a href=\"http://www.pragmamx.de\">maaX dESIGN</a></font>, <a href=\"http://www.shiba-design.de\">shiba-dESIGN</a> & <a href=\"http://www.myself-design.com\">Myself Design</a></font></div>\n";
}
function UsersConfigSave($pvs) {
#mxDebugFuncVars($pvs);
extract($pvs);
$xpoints_fthreads = (empty($xpoints_fthreads)) ? 0 : $xpoints_fthreads;
$xpoints_smftopics = (empty($xpoints_smftopics)) ? 0 : $xpoints_smftopics;
$xpoints_bilder2 = (empty($xpoints_bilder2)) ? 0 : $xpoints_bilder2;
$xpoints_kalender = (empty($xpoints_kalender)) ? 0 : $xpoints_kalender;
$xpoints_fposts = (empty($xpoints_fposts)) ? 0 : $xpoints_fposts;
$xpoints_smfmessages = (empty($xpoints_smfmessages)) ? 0 : $xpoints_smfmessages;
$xpoints_gb2 = (empty($xpoints_gb2)) ? 0 : $xpoints_gb2;
$xpoints_gb1 = (empty($xpoints_gb1)) ? 0 : $xpoints_gb1;
$xpoints_kommentare = (empty($xpoints_kommentare)) ? 0 : $xpoints_kommentare;
$xpoints_artikel = (empty($xpoints_artikel)) ? 0 : $xpoints_artikel;
$xpoints_umfragen = (empty($xpoints_umfragen)) ? 0 : $xpoints_umfragen;
$xpoints_links2 = (empty($xpoints_links2)) ? 0 : $xpoints_links2;
$xpoints_links1 = (empty($xpoints_links1)) ? 0 : $xpoints_links1;
$xpoints_downloads2 = (empty($xpoints_downloads2)) ? 0 : $xpoints_downloads2;
$xpoints_downloads1 = (empty($xpoints_downloads1)) ? 0 : $xpoints_downloads1;
$xmsgdefaultlang = (empty($xmsgdefaultlang)) ? 0 : $xmsgdefaultlang;
$xmsgicon = (empty($xmsgicon)) ? 0 : $xmsgicon;
$xmsgadminid = (empty($xmsgadminid)) ? 0 : $xmsgadminid;
$xsendnewusermsg = (empty($xsendnewusermsg)) ? 0 : $xsendnewusermsg;
$xallowchangetheme = (empty($xallowchangetheme)) ? 0 : $xallowchangetheme;
$xuseuserpoints = (empty($xuseuserpoints)) ? 0 : $xuseuserpoints;
$xshownewsletter = (empty($xshownewsletter)) ? 0 : $xshownewsletter;
$xsendaddmail = (empty($xsendaddmail)) ? 0 : $xsendaddmail;
$xsenddeletemail = (empty($xsenddeletemail)) ? 0 : $xsenddeletemail;
$xyastartpage = (empty($xyastartpage)) ? "modules.php?name=Userinfo" : $xyastartpage;
$xagb_content = (empty($xagb_content)) ? 0 : $xagb_content;
switch($xagb_content)
{
case "1":
$xagb_content_sub1 = intval($xagb_content_sub1);
$xagb_content_sub2 = "0";
$xagb_content_sub3 = "0";
break;
case "2":
$xagb_content_sub1 = "0";
$xagb_content_sub2 = intval($xagb_content_sub2);
$xagb_content_sub3 = "0";
break;
case "3":
$xagb_content_sub1 = "0";
$xagb_content_sub2 = "0";
$xagb_content_sub3 = intval($xagb_content_sub3);
break;
default:
$xagb_content_sub1 = "0";
$xagb_content_sub2 = "0";
$xagb_content_sub3 = "0";
}
$content = "<?php // pragmaMx, automated generated file\n";
$content .= "if (!defined(\"mxYALoaded\")) die (\"You can't access this file directly...\");\n\n";
$content .= "\$senddeletemail = $xsenddeletemail;\n";
$content .= "\$sendaddmail = $xsendaddmail;\n";
#$content .= "\$desiredpass = $xdesiredpass;\n";
$content .= "\$shownewsletter = $xshownewsletter;\n"; # by sidewind
$content .= "\$useuserpoints = $xuseuserpoints;\n";
$content .= "\$allowchangetheme = $xallowchangetheme;\n";
$content .= "\$yastartpage = \"$xyastartpage\";\n";
$content .= "\$sendnewusermsg = $xsendnewusermsg;\n";
$content .= "\$msgadminid = $xmsgadminid;\n";
$content .= "\$msgicon = \"$xmsgicon\";\n";
$content .= "\$msgdefaultlang = \"$xmsgdefaultlang\";\n";
$content .= "\$points_downloads1 = $xpoints_downloads1;\n";
$content .= "\$points_downloads2 = $xpoints_downloads2;\n";
$content .= "\$points_links1 = $xpoints_links1;\n";
$content .= "\$points_links2 = $xpoints_links2;\n";
$content .= "\$points_umfragen = $xpoints_umfragen;\n";
$content .= "\$points_artikel = $xpoints_artikel;\n";
$content .= "\$points_kommentare = $xpoints_kommentare;\n";
$content .= "\$points_gb1 = $xpoints_gb1 ;\n";
$content .= "\$points_gb2 = $xpoints_gb2;\n";
$content .= "\$points_fposts = $xpoints_fposts;\n";
$content .= "\$points_fthreads = $xpoints_fthreads;\n";
$content .= "\$points_smfmessages = $xpoints_smfmessages;\n";
$content .= "\$points_smftopics = $xpoints_smftopics;\n";
$content .= "\$points_kalender = $xpoints_kalender;\n";
$content .= "\$points_bilder1 = $xpoints_bilder1;\n";
$content .= "\$points_bilder2 = $xpoints_bilder2;\n";
$content .= "\$agb_content = $xagb_content;\n";
$content .= "\$agb_content_sub1 = $xagb_content_sub1;\n";
$content .= "\$agb_content_sub2 = $xagb_content_sub2;\n";
$content .= "\$agb_content_sub3 = $xagb_content_sub3;\n";
$content .= "# User, die nicht gezaehlt werden sollen\n";
$content .= "# Namen mit Komma trennen!\n";
$content .= "\$excludedusers =\"".addslashes($xexcludedusers)."\";\n";
$content .= "\n?>";
extract(mxGetAdminSession());
if (empty($GLOBALS["mxDemoMode"])){
# Settings schreiben:
@chmod("modules/Your_Account/config.php", 0777);
$file = fopen("modules/Your_Account/config.php", "w");
fwrite($file, $content);
fclose($file);
@chmod("modules/Your_Account/config.php", 0444);
}
Header("Location: admin.php?op=usersconfig");
}
#------------------------------------------------------------------------#
# zeigt in der Admineditmaske eine Auswahl der User
function printMsgUsersList($msgadminid) {
global $user_prefix, $prefix;
$sel=""; $attime="";
$qry = "SELECT * FROM ".$user_prefix."_users WHERE uid > 1 order by uname";
$result1 = sql_query($qry);
$liste= "<select name=\"xmsgadminid\">\n";
while($rowUsers = sql_fetch_array($result1)) {
if ($rowUsers["uid"]==$msgadminid){
$sel= " selected";
}
else {
$sel= "";
}
$liste.= "<option value=\"".$rowUsers["uid"]."\"$sel>".$rowUsers["uname"]." </option>\n";
}
$liste.= "</select>\n";
return $liste;
}
#------------------------------------------------------------------------#
# zeigt in der Admineditmaske eine Auswahl der User
function printMsgLanguage($msgdefaultlang) {
$handle=opendir('modules/User_Registration/language');
while ($file = readdir($handle)) {
if (preg_match("/^hello\-(.+)\.php/", $file, $matches)) {
$langlist[] = str_replace(".php","",str_replace("hello-","",$file));
}
}
asort($langlist);
closedir($handle);
echo "<select name=\"xmsgdefaultlang\">";
while (list ($key, $file) = each ($langlist)) {
if($msgdefaultlang==$file) $sel=" selected";
else $sel="";
echo "<option value=\"$file\" $sel>$file</option>\n";
}
echo "</select>";
}
#------------------------------------------------------------------------#
function getMessageImages($ringSendprvmsgIcon) {
global $url_smiles;
$handle=opendir("$url_smiles");
$count=0;
while ($file = readdir($handle)) {
$filelist[] = $file;
}
asort($filelist);
while (list ($key, $file) = each ($filelist)) {
if (ereg(".gif|.jpg",$file)) {
$count++;
if ($file == $ringSendprvmsgIcon && $ringSendprvmsgIcon != "") {
echo "<INPUT TYPE=\"radio\" NAME=\"xmsgicon\" VALUE=\"$file\" checked><IMG SRC=\"$url_smiles/$file\" BORDER=\"0\"> ";
}
else {
if ($ringSendprvmsgIcon == "" && !$a){
$sel = " checked"; $a=1;
}
else {
$sel = "";
}
echo "<INPUT TYPE=\"radio\" NAME=\"xmsgicon\" VALUE=\"$file\"$sel><IMG SRC=\"$url_smiles/$file\" BORDER=\"0\"> ";
}
if ($count >= 6) {
$count=0; echo "<br>";
}
}
}
}
switch($op) {
case "usersconfig":
usersconfig();
break;
case "UsersConfigSave":
UsersConfigSave($_POST);
break;
}
?>
Das musst aber jetzt sehen können 8)
L.g
huhu,
wir haben aneinander vorbei geredet.
im anderen Threat habe ich den Download nicht sehen können, HIER SCHON
Aber das Einbinden in mein Pragma hat einen Fehler hervorgerufen --> siehe letztes Post von mir :)
Ist der code von deinem letzten Post derselbe wie in der Download datei?
Hi,
ok dann sag mal was bei dir in dieser Zeile ist?
L.g
Zitat von: asder am 08 Juli 2006, 19:49:41
Parse error: parse error in /home/www/web1/html/PORTAL/admin/modules/usersconfig.php on line 456
tut noch nicht :(
Hab grad gesehen, dass in deinem ZIP File am Ende etwas fehlte.
ab 256 war leer.
der Vergleich der Versionen die du hast und ich habe sagt:
DU:
$Revision: 1.3 $
$Author: tora60 $
$Date: 2005/04/19 14:52:01 $
ICH:
* $Revision: 1.8.4.1 $
* $Author: tora60 $
* $Date: 2005/12/17 18:45:15 $
meine Datei sieht nun so aus:
[gelöscht durch Administrator]
So, Fehlermeldung kommt keine mehr, aber aktualisiert wird auch nichts :(
Leere mal das BlockCache vielelicht hilft das!
L.g
nein, hilft nicht :(
Hi,
Hast du dann die werte für das SMF gestetz im PunkteMenü?
Kannst mal meine Datei nehmen und mit der auch testen?
L.g
hab mit deiner Datei getestet
Fehlerhaft!
Aber:
Nach Änderung einiger Codeschnipsel folgend:
modules/Your_Account/userpoint.php
#Userpunkte SMF Anfang#
# SMF Forenbeiträge
// $tablepre = "{$GLOBALS[prefix]}_smf_";
// $table_messages = $tablepre.'messages';
// $table_topics = $tablepre.'topics';
# SMF Forenbeiträge
if (!empty($points_smftopics) && in_array("${prefix}_smf_topics", $tables)) {# Forumsbeitraege !!!! SMF !!!!
$result= sql_query("select count(ID_MEMBER_STARTED) from ${prefix}_smf_topics where ID_MEMBER_STARTED='".mxAddSlashesForSQL($uid)."'");
list($points) = sql_fetch_row($result);
$userpoints = $userpoints + ($points * $points_smftopics);
}
if (!empty($points_smfmessages) && in_array("${prefix}_smf_messages", $tables)) {# Forumsbeitraege !!!! SMF !!!!
$result= sql_query("select count(ID_MEMBER) from ${prefix}_smf_messages where posterName='".mxAddSlashesForSQL($uname)."'");
list($points) = sql_fetch_row($result);
$userpoints = $userpoints + ($points * $points_smfmessages);
}
// }
#Userpunkte SMF Ende#
plus deine Änderungen in der admin/modules/usersconfig.php
Hi,
Mach doch mal die modules/Your_Account/userpoint.php so wie ichs geschrieben habe, hast es ja anderst.
if (!empty($points_smffthreads) && in_array($table_topics, $tables)) {# Forumsbeitraege !!!! SMF !!!!
$result= sql_query("select count(ID_MEMBER_STARTED) from ".$table_topics." where ID_MEMBER_STARTED='".mxAddSlashesForSQL($uid)."'");
list($points) = sql_fetch_row($result);
$userpoints = $userpoints + ($points * $points_smffthreads);
}
if (!empty($points_smffposts) && in_array($table_messages, $tables)) {# Forumsbeitraege !!!! SMF !!!!
$result= sql_query("select count(ID_MEMBER) from ".$table_messages." where posterName='".mxAddSlashesForSQL($uname)."'");
list($points) = sql_fetch_row($result);
$userpoints = $userpoints + ($points * $points_smffposts);
}
genau so geht es aber nicht, es werden andere variablen abgefragt, wie in der config angelegt werden.
das kann ja nicht funktionieren.
threads heisst topics und posts heisst messages
@munzur
kannst du mal deine modules/Your_Account/userpoint.php hochladen immer wenn ich das ändere wie beschrieben geht es bei mir trotzdem nicht es kommt auch keine Fehlermeldung.
LG
Moin :)
wenn du ein paar Tage auf die 0.1.9 warten kannst, da ist es drin....
Hallo Andi werde warten.Bin schon ganz gespannt :D