PDA

Zobacz pełną wersję : Totalna klęska j statistics



PawelJacekZ
10-02-2009, 23:16
Witam
Wstawiłem komponent J stats i było ok.
Wstawiłem bota : bot_jstats_activate1.2.zip i wywaliło mi całą joomlę..!!!!!!

Mam jedynie komunikat
"Restricted access"

Co zrobić.....pomocy!!!!!!!!!

PawelJacekZ
10-02-2009, 23:17
Dodam że mam joomla 1.5.9 i wszystko było oki.
http://www.zatta.home.pl/psy/

i co mam zrobić jak wyłączyć tego bota!!!!!!!

hesar
10-02-2009, 23:25
nie panikuj i na przyszlosc nie pisz posta pod postem tylko zedytuj
zaloguj sie phpmyadminem do swojej bazy, znajdz ten plugin w tabeli jos_plugin (rozumiem ze to plugin do joomli a nie do tych statow) i zmien mu recznie w bazi eparametr published z 1 na 0
powinno zadzialac

PawelJacekZ
10-02-2009, 23:48
Taki jest wpis w tym bocie:
<?php
/**
* Version 1.2
* @copyright Copyright (C) 2007 JoomlaStats. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/

// no direct access
defined('_VALID_MOS') or die('Restricted access');

$_MAMBOTS->registerFunction('onAfterStart', 'bot_jstats_activate');

/**
* Using this bot you don't need to manualy add the lines to your template
* However there is NO PAGETITLES !!!
* use other activation methode if you want pagetitles.
*/
function bot_jstats_activate()
{
global $mainframe,$GLOBALS;

$absolute_path = $GLOBALS['mosConfig_absolute_path'];
//RB fixed issue using '' (thanks to bpearson), other option was no $absolute_path variable

if (file_exists($absolute_path."/components/com_joomlastats/joomlastats.inc.php"))
require_once($absolute_path."/components/com_joomlastats/joomlastats.inc.php");
else
if (file_exists($absolute_path . "/components/com_tfsformambo/tfsformambo.php"))
require_once($absolute_path . "/components/com_tfsformambo/tfsformambo.php");

A to było w pliku XML
<mosinstall version="1.0.x" type="mambot" group="system">
<name>Activate JoomlaStats</name>
<author>JoomlaStats Team</author>
<creationDate>2007/10/12</creationDate>

<copyright>
(C) 2007 JoomlaStats Team. All rights reserved. Based on work from Norbert Bayer.
</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>info@JoomlaStats.org</authorEmail>
<authorUrl>www.JoomlaStats.org</authorUrl>
<version>1.2</version>

<description>
This Bot activates the JoomlaStats Component. It's an alternative for manually adding a line to the template. WARNING: NO PAGETITLES, use other activation methode if you want page titles!
</description>

<files>
<filename mambot="bot_jstats_activate">bot_jstats_activate.php</filename>
</files>
</mosinstall>

nie mogę znaleźć tego pluuga w tabeli pluginów

hesar
10-02-2009, 23:52
no i dobrze - ale na co mi ten kod?
zrobiles co mowilem czy nie?

PawelJacekZ
11-02-2009, 00:17
znajdz ten plugin w tabeli jos_plugin (rozumiem ze to plugin do joomli a nie do tych statow)

Nie znalazłem w tabeli tego plugina!!!!!!!!!!

PawelJacekZ
11-02-2009, 00:27
Dzięki ręce mi sie trzęsły a trzeba było zobaczyć stronę następną w pluginach.
Dzięki wielkie!!!!!!!!!!!!
Udało się!!!!!!!!!!