Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Nie działające guziki w poście

Błąd   Założony przez  matajas1.

wersja skryptu MyBB:1.6.9
adres forum:www.upload-music.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Nie wiem dlaczego, lecz nagle przestał poprawnie działać "guziki" w poście typu Edycja, Cytowanie itp.

Tak powinno wyglądać poprawnie :

[Obrazek: lo7g04.jpg]

A niestety jest tak :

[Obrazek: w9zbtm.jpg]


I w przypadku "guzika" Edycja nie rozwija się a powinien.

Zauważyłem, że dzieję się tak przez plugin "Guest warn"
Link:
http://mods.mybb.com/view/warn-guest
Wie ktoś dlaczego ?
Ja wiem
https://webboard.pl/thread-36416.html
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
A czy mógłby ktoś zamienić z $ na jQuery ? Gdyż nigdy się z tym nie spotkałem.
Plugin :

<?php

/**
@ Author: Clear
@ Created: 20/06/2012
@ Version: 3.0
@ Contact: davidenontiinteressa@gmail.com
@ License: Is not allowed the copy, redistribution and sale of this plugin. For all problem, contact me.

*/

if(!defined("IN_MYBB"))
    die("This file cannot be accessed directly.");
    
$plugins->add_hook('global_start', 'avvisospiti');

function avvisospiti_info() {
    return array(
      'name'         => 'Guest warn',
      'description'  => 'Show an elegant warn for all guest of your forum.',
      'website'      => 'http://www.mybb.com/',
      'author'       => 'Clear',
      'authorsite'   => 'http://www.downloadsafe.altervista.org',
      'version'      => '3',
  );
}

function avvisospiti()
{
    global $mybb;
    
        
            global $theme,$avvisospiti;
            
            if ($mybb->user['usergroup'] == 1)
        {
            $cookie = $_COOKIE['chiudi_avviso'];
            
            if (!$cookie) {
                
            $avvisospiti='<style>' . $mybb->settings['avvisospiti_2'] . '</style> <div class="avviso"><a href="get-cookie.php"><div class="close"></div></a>' . $mybb->settings['avvisospiti_1'] . '</div>';
            
            }

        }
}

function avvisospiti_activate()
{
    global $db, $mybb;
    
// Settings
    $avvisospiti_group = array(
        "gid" => "NULL",
        "name" => "avvisospiti",
        "title" => "Guest warn Settings",
        "description" => "These settings allow an elegant warn for all guest of your forum.",
        "disporder" => "1",
        "isdefault" => "no",
    );
    $db->insert_query("settinggroups", $avvisospiti_group);
    
    $gid = $db->insert_id();
    $avvisospiti_setting_1 = array(
        "sid"            => "NULL",
        "name"            => "avvisospiti_1",
        "title"            => "Enter your guest warn message here",
        "description"    => "This text will are show in the warn for the guests off your forum",
        "optionscode"    => "textarea",
        "value"            => 'Hello Guest, if you read this, it means you are not registered. <a href="member.php?action=register">Click here</a> to register a few simple steps, you will enjoy all the features of our Forum. Please note that nicknames are prohibited lewd or meaningless (no numbers or letters at random) and presented in the section for you to meet our community.',
        "disporder"        => '1',
        "gid"            => intval($gid),
    );
    $avvisospiti_setting_2 = array(
        "sid"            => "NULL",
        "name"            => "avvisospiti_2",
        "title"            => "Edit the style of warn (you must know CSS)",
        "description"    => "You can edit the CSS style of the warn",
        "optionscode"    => "textarea",
        "value"            => '.avviso {
  background: #000;
  margin-right: 7px;
  color: #fff;
  font-size: 13px;
  border: 0px solid #94c2e8;
  padding: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;  
  filter:alpha(opacity=88);
  -moz-opacity:.88; opacity:.88;
  -moz-box-shadow:5px 5px 5px #191919;
  -webkit-box-shadow:5px 5px 5px #191919;
  box-shadow:2px 2px 5px #191919;
  width: 300px;
  position: fixed;
  top: 50%;
  right: 2%;
  text-align: left;
  z-index: 10000000;
}

.avviso a:link {
  color: #fff; text-decoration: none;
}

.avviso a:visited {
  color: #fff; text-decoration: none;
}

.avviso a:hover, #avviiso a:active {
  color: #fff; text-decoration: underline;
}

.close {
    background: url(images/+.png) no-repeat;
    height: 19px;
    width: 18px;
    border: none;
    margin-left: 5px;
    float: right;
}

.close:hover {
    background: url(images/-.png) no-repeat;
    cursor: pointer;
}',
        "disporder"        => '2',
        "gid"            => intval($gid),
    );
    $db->insert_query("settings", $avvisospiti_setting_1);
    $db->insert_query("settings", $avvisospiti_setting_2);
    require MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets("headerinclude", "#".preg_quote('{$stylesheets}')."#i",'{$stylesheets} <script type="text/javascript">jQuery.noConflict();
jQuery(function($) { $(".close").click(function () {
  $(".avviso").fadeOut("slow");
  }); });</script> <script src="http://code.jquery.com/jquery-latest.js"></script> {$avvisospiti}');
    
// Rebuilding settings
    rebuild_settings();
}

function avvisospiti_deactivate()
{
    global $db, $mybb;
    $db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='avvisospiti'");
    $db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='avvisospiti_1'");
    $db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='avvisospiti_2'");
    require MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets("headerinclude", "#".preg_quote('<script type="text/javascript">jQuery.noConflict();
jQuery(function($) { $(".close").click(function () {
  $(".avviso").fadeOut("slow");
  }); });</script> <script src="http://code.jquery.com/jquery-latest.js"></script> {$avvisospiti}')."#i", '', 0);
    
// Rebuilding settings
    rebuild_settings();
}


?>

Teraz nawet po całkowitym usunięciu pluginu Guest warn,
nie działają guziki przedstawione wyżej jaki shoutbox.
Jak temu zaradzić ?



Użytkownicy przeglądający ten wątek:

3 gości