Upload knopf im profil ?

Begonnen von wolf-x, 10 Oktober 2007, 00:08:30

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

wolf-x

Hallo,

  Ich habe ein kleines problem der avatar upload knopf ist verschwunden im profil, kann mir da jemand helfen ?
  Das modul ist im admin menu aktiviert und freigeschaltet fur "user"  :'(
  Ich habe erst jetzt bemerkt das da was fehlt im profil, mein web hoster ist vor ein paar tagen von php 4.4.6 auf 4.4.7 umgestiegen und ich habe ein update vom forum SMF gemacht von 1.1.3 auf 1.1.4, konnte das vielleicht hier dran liegen ?
  Wie bekomme den knopf zuruck ?

P.S : Ich benutze Pragma 0.19 SP4



exciting

guck mal im quelltext modules/Your_Account/navbar.php
ob da was auskommentiert is was mit dem avatarmodul zu tun hat.

wolf-x

Hallo danke fur die schnelle antwort !


<?php
/**
 * pragmaMx  Content Management System
 * Copyright (c) 2006 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: /home/www/dps3311/home/cvsroot/pragmamx/html/modules/Your_Account/navbar.php,v $
 * $Revision: 1.5.4.1 $
 * $Author: tora60 $
 * $Date: 2006/09/22 21:36:42 $
 */

if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

mxGetLangfile("Your_Account");
require_once(
"includes/mx_userfunctions.php");
// // mit dieser Konstanten kann die maximale Anzahl
// // der Menüpunkte nebeneinander verändert werden
if (!defined("YA_NAVITEMSPERROW")) define("YA_NAVITEMSPERROW"6);
// //////////////////////////////////////////////////
function nav($main_up 0)
{
    if (!
MX_IS_USER) return; 
    
// / Definition der Menüpunkte
    
if (function_exists('nav_option')) {
        
$item nav_option();
    } else {
        
$item[] = "<a href=\"modules.php?name=Your_Account&amp;op=edituser\">" mxCreateImage("images/menu/info.gif"_CHANGEYOURINFO) . "<br>" _CHANGEYOURINFO "</a>";
        
$item[] = "<a href=\"modules.php?name=Your_Account&amp;op=edithome\">" mxCreateImage("images/menu/home.gif"_CHANGEHOME) . "<br>" _CHANGEHOME "</a>";
        if (
mxModuleAllowed("UserGuest")) { // falls gaestebuch vorhanden
            
$item[] = "<a href=\"modules.php?name=UserGuest&amp;op=view\">" mxCreateImage("images/menu/guestbook.gif"_GUESTBOOKVIEW) . "<br>" _GUESTBOOKVIEW "</a>";
        } 
        if (
mxModuleAllowed("Private_Messages")) {
            
$item[] = "<a href=\"modules.php?name=Private_Messages\">" mxCreateImage("images/menu/comments.gif"_PRIVATEMESSAGES) . "<br>" _PRIVATEMESSAGES "</a>";
        } 
        if (
mxModuleAllowed("Avatar")) { // falls Avatar Upload Modul vorhanden
            
$item[] = "<a href=\"modules.php?name=Avatar\">" mxCreateImage("images/menu/avatar.gif"_AVATARUPLOAD) . "<br>" _AVATARUPLOAD "</a>";
        } 
        if (
mxModuleAllowed("User_Fotoalbum")) { // falls User Fotoalbum Modul vorhanden
            
$item[] = "<a href=\"modules.php?name=User_Fotoalbum\">" mxCreateImage("images/menu/fotoalbum.gif"_FOTOALBUM2) . "<br>" _FOTOALBUM2 "</a>";
        } 
        
$item[] = "<a href=\"modules.php?name=Your_Account&amp;op=logout\">" mxCreateImage("images/menu/exit.gif"_LOGOUTEXIT) . "<br>" _LOGOUTEXIT "</a>"
        
// $item[] = "<a href=\"modules.php?name=Your_Account&amp;op=delete\">".mxCreateImage("images/menu/delete.gif", eregi_replace("<br>"," ",_DELETEACCT))."<br>"._DELETEACCT."</a>";
    

    
// / Ausgabegenerierung
    
$c_items count($item);
    if (
$c_items == 0) {
        return;
    } else if (
$c_items <= YA_NAVITEMSPERROW) {
        
$tdwidth intval(100 $c_items);
        
$menu "<tr valign=\"top\">
<td width=\"" 
$tdwidth "%\" align=\"center\"><span class=\"tiny\">" . (implode("</span></td>\n<td width=\"" $tdwidth "%\" align=\"center\"><span class=\"tiny\">"$item)) . "</span></td>
</tr>\n"
;
    } else {
        
$trows ceil($c_items YA_NAVITEMSPERROW);
        
$tcols ceil($c_items $trows);
        
$off 0;
        
$len $tcols;
        
$menu "";
        for(
$i 1$i <= $trows$i++) {
            
$xitem[$i] = array_slice($item$off$len);
            
$icount count($xitem[$i]);
            
$tdwidth = (100 $icount);
            
$off $off $len;
            if (
$icount $tcols$menu .= "</table>\n<table border=\"0\" width=\"100%\" align=\"center\">";
            
$menu .= "<tr valign=\"top\">
<td width=\"" 
$tdwidth "%\" align=\"center\"><span class=\"tiny\">" . (implode("</span></td>\n<td width=\"" $tdwidth "%\" align=\"center\"><span class=\"tiny\">"$xitem[$i])) . "</span></td>
</tr>\n"
;
        } 
        
// print $c_items."<br>".$trows."<br>".$tcols;
    

    
// / die Ausgabe
    
echo "<div align='center'>";
    echo 
"<span class=\"title\">" _THISISYOURPAGE "</span><br><br>";
    echo 
"<table border=\"0\" width=\"100%\" align=\"center\">" $menu "</table>";
    if (empty(
$main_up)) {
        echo 
"<br>[&nbsp;<a href=\"modules.php?name=Your_Account\">" _RETURNACCOUNT "</a>&nbsp;]\n";
    } 
    echo 
"</div>";


?>



Scheint alles in ordnung zu sein oder ?

wolf-x

Hi,

  Pfff habe mein knopf wieder !  :BD:
  Das modul war freigeschaltet und aktiviert im admin menu/modules aber im admin menu/gruppen war das modul bei denen die die user nicht sehen konnen.
  Habe die gruppen berechtigung modifiziert fur das avatar modul und mein knopf war zuruck im profil.
  Versteh nicht habe dort nichts geandert und das modul lief schon ein paar wochen ohne problem. :mad2:

Gruss