Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Nickname Styles
#1
Eine neue Erweiterung wurde veröffentlicht: Nickname Styles

Zitat:Plugin Name: Nickname Styles
Plugin Author: Edson Ordaz
Plugin Website: http://www.mybb-es.com
Plugin Version: 1.0
Plugin Mybb Compatibility: 1.6x
Plugin Description: allows users to edit the style of his nickname.


Admin panel

To change the tab to go to the users and the last module where it says nickname style and enter there.

It will show the table with styles created and two options are to edit and delete.

Creating new style
To create a new way to click on the tab and enter the new style name, style, posts, reputation, time online, and order groups.

Name: Enter the name of style.
Style: Style nickname, you must enter {username} as this will replace the user's name
Posts: Enter the number of messages you need to use this style.
Points: Enter the number of reputation you need to use this style.
Uptime: Enter the number of days / months you need to have the online user to use this style.
Groups: Select the user groups to be able to use this style of nickname.
Order: Enter the order in which they show with the other styles.

This is the configuration with the styles


User Control Panel

Go to control panel user / edit profile and even below this nickname styles and displays a select input to select the style you want (only nickname styles show your user group can see if you comply with the time online, messages and reputation).
Below is a fieldset with the style of your current nickname and down a link to a page, if you click there will open a popup with all styles of his nickname but show styles and his nickname to see which you like best and you choose.

Always on the list will come the default nickname is the style of the group.

*Important:

For operation of the plugin to edit the functions.php file that is inside root / inc if your file is modified and will have to modify it again to add the following.

Open your functions.php file with some preferred editor notepad + + and look for the following

Code:
function format_name($username, $usergroup, $displaygroup="")
{
    global $groupscache, $cache;

    if(!is_array($groupscache))
    {
        $groupscache = $cache->read("usergroups");
    }

    if($displaygroup != 0)
    {
        $usergroup = $displaygroup;
    }

    $ugroup = $groupscache[$usergroup];
    $format = $ugroup['namestyle'];
    $userin = substr_count($format, "{username}");

    if($userin == 0)
    {
        $format = "{username}";
    }

    $format = stripslashes($format);

    return str_replace("{username}", $username, $format);


and replacing this

Code:
function format_name($username, $usergroup, $displaygroup="")
{
    global $groupscache, $cache, $db;

    if(!is_array($groupscache))
    {
        $groupscache = $cache->read("usergroups");
    }

    if($displaygroup != 0)
    {
        $usergroup = $displaygroup;
    }

    $ugroup = $groupscache[$usergroup];
    $format = $ugroup['namestyle'];
    $userin = substr_count($format, "{username}");

    if($userin == 0)
    {
        $format = "{username}";
    }

    $format = stripslashes($format);
    
    if($db->table_exists("nickstyles_nicks"))
    {
        global $db;
        $query = $db->simple_select('users', 'nickstyle', "username='{$username}' AND usergroup='{$usergroup}'");
        $user = $db->fetch_array($query);
        if(!empty($user['nickstyle']))
        {
            $query = $db->simple_select('nickstyles_nicks', 'style', 'nid='.$user['nickstyle']);
            $style = $db->fetch_array($query);
            $format = $style['style'];
            $format = stripslashes($format);
            return str_replace("{username}", $username, $format);
        }
        else
        {
            return str_replace("{username}", $username, $format);
        }
    }

    return str_replace("{username}", $username, $format);

and if it is modified to put the functions.php that is inside the attachment.
Zitieren
#2
Hallo,

Ich habe ein Problem, also ich wollte ein Plugin installieren. Welches mich danach auf ne Errorseite gehauen hat.


Dadurch das es nicht funktioniert hat, wollte ich es dann wieder Deinstallieren hab also die .php dabei vom Plugin gelöscht nun kommt aber immer:

Fatal error: Cannot pass parameter 2 by reference in /var/kunden/webs/hueltzbeck/inc/functions.php on line 2963


Das wäre dann:
Zitat: if($plugins)
{
$plugins->run_hooks("get_ip", array("ip" => $ip));
}


Ich weis ehrlich nicht was ich noch machen soll :<


Angehängte Dateien Thumbnail(s)
   
Zitieren
#3
Um welches Plugin handelt es sich denn? Bitte mit Link zum Download.

(20.05.2013, 08:13)Kuschel schrieb: ....wollte ich es dann wieder Deinstallieren hab also die .php dabei vom Plugin gelöscht...

Einfach die Plugin-Datei zu löschen, deinstalliert das Plugin nicht. Hast Du es vorher nicht dekativiert und deinstalliert?
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#4
(20.05.2013, 08:21)Jockl schrieb: Um welches Plugin handelt es sich denn? Bitte mit Link zum Download.

(20.05.2013, 08:13)Kuschel schrieb: ....wollte ich es dann wieder Deinstallieren hab also die .php dabei vom Plugin gelöscht...

Einfach die Plugin-Datei zu löschen, deinstalliert das Plugin nicht. Hast Du es vorher nicht dekativiert und deinstalliert?


Konnte ich nicht mehr, nach der installation kam direkt das, was ihr hier seht :<

Dload: http://mods.mybb.com/view/nickname-styles
Zitieren
#5
Das Plugin ist möglicherweise nicht mehr kompatibel. Siehe hierzu auch:
http://community.mybb.com/thread-106729.html
http://docs.mybb.com/165.html

Trotzdem sollte sich das Plugin über das ACP deaktivieren/deinstallieren lassen. Danach können die Dateien gelöscht werden.


Nachtrag:
außerdem beinhaltet es eine komplett veraltete inc/functions.php. Da wäre ich sowieso vorsichtig!
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#6
(20.05.2013, 08:42)Jockl schrieb: Das Plugin ist möglicherweise nicht mehr kompatibel. Siehe hierzu auch:
http://community.mybb.com/thread-106729.html
http://docs.mybb.com/165.html

Trotzdem sollte sich das Plugin über das ACP deaktivieren/deinstallieren lassen. Danach können die Dateien gelöscht werden.


Nachtrag:
außerdem beinhaltet es eine komplett veraltete inc/functions.php. Da wäre ich sowieso vorsichtig!

Ich komm ja leider überhaupt nicht mehr auf die Seite drauf, weder Admin Pannel, noch Main Seite! :-(

Wäre es möglich das Sie mir eine geupdate bzw. die neuste fuctions.php hochladen würden? :-)
Zitieren
#7
Hier steht die Datei in grenzenloser Menge zur Verfügung Wink
https://www.mybb.de/downloads/


Nachtrag:
habe das Plugin auch gerade mal hoch geladen. Ist schon traurig, da geht ja gleich gar nichts mehr, wenn man die alte inc/functions.php des Plugins verwendet. Wenn man sie durch die aktuelle ersetzt, geht wieder alles. Ich würde Dir raten, die Finger von dem Plugin zu lassen.
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#8
(20.05.2013, 08:53)Jockl schrieb: Hier steht die Datei in grenzenloser Menge zur Verfügung Wink
https://www.mybb.de/downloads/


Nachtrag:
habe das Plugin auch gerade mal hoch geladen. Ist schon traurig, da geht ja gleich gar nichts mehr, wenn man die alte inc/functions.php des Plugins verwendet. Wenn man sie durch die aktuelle ersetzt, geht wieder alles. Ich würde Dir raten, die Finger von dem Plugin zu lassen.

Leider ist dort keine fuctions.php dabei.

Und ja in Zukunft werde ich vorher schauen ob das Plugin Kompatibel sind. :s


Edit:

Hab MYBB mal geupdated und jetzt funktioniert wieder alles!! :-)
Dank der Seite: https://www.mybb.de/doku/screencasts/wie...ate-durch/

Vielen Dank für alles <3

~Kuschel
Zitieren
#9
(20.05.2013, 09:05)Kuschel schrieb: Leider ist dort keine fuctions.php dabei.
Bitte? Wink

Lade das Mybb 1.6.10 Paket runter, da ist die Datei functions.php enthalten.
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren