_(DP23)_Forum_Viewers_1.1.rar ezt a modot probálom felrakni de nem akar sikerülni. Mindig miután megcsinálok minden a leírtak szerinte valami hiba lesz és nem jön be az oldal. A leírásban van egy rész amit nem nagyon értek.
Find: [ in function process_all_cats() ]
$this->ipsclass->forums->register_class( $this );
Add Below:
//-----------------------------------------
// (DP23) Forum Viewers
//-----------------------------------------
$cut_off = ($this->ipsclass->vars['au_cutoff'] != "") ? $this->ipsclass->vars['au_cutoff'] * 60 : 900;
$time = time() - $cut_off;
$query = $this->ipsclass->DB->query("SELECT *, count(*) as dp23 FROM ".SQL_PREFIX."sessions WHERE location_2_type='forum' AND running_time > {$time} AND in_error=0 AND id NOT LIKE '%=%' GROUP BY location_2_id HAVING location_2_id > 0");
while ($row = $this->ipsclass->DB->fetch_row($query) )
{
$this->dp23_fv_tab[$row['location_2_id']] = $row['dp23'] ;
}
$this->ipsclass->DB->build_query ( array(
'select' => '*',
'from' => 'forums',
'where' => 'parent_id > 0'
));
$this->ipsclass->DB->exec_query();
$kk = array_keys($this->dp23_fv_tab);
while ($row = $this->ipsclass->DB->fetch_row() )
{
if (in_array($row['id'], $kk) )
{
$this->dp23_fv_tab[$row['parent_id']] += $this->dp23_fv_tab[$row['id']] ;
}
}
Find: [ in function process_all_cats() ]
if ( $forum_data['redirect_on'] )
{
Add Above:
//-----------------------------------------
// (DP23) Forum Viewers
//-----------------------------------------
foreach ( $this->dp23_fv_tab as $k => $v )
{
if ($forum_data['id'] == $k )
{
$forum_data['dp23_fv'] = $v;
}
}
Én ezeket meg is csináltam de nem akar müködni meg az a baj hogy ahol írja hogy keresem meg azt a sort abból a sorbol a php fájlban van vagy 5 darab és mindenhova aláteszem a leírt részt de akkor sem müködik mi lehet a baj ?
Oldal 1 / 1
Forumot hanyan olvassák mod segítség kellene a telepítéshez
#2
Elküldve: 2008 november 29 - 13:13
Ez elég érdekes megoldás, mert én úgy tudtam, hogy ezt a class_forums.php-ban kell megcsinálni, hogy kiírja, hányan nézik épp a fórumot.
Tudom neked inkább ajánlani a D23-# Members Viewing Forum v1.0 modifikációt, az biztos, hogy működni fog.
Ezt a MOD-ot megtalálod a dscripting.com-on, ha esetleg nem találod, akkor feltöltöm erre az oldalra.
Üdv
Tudom neked inkább ajánlani a D23-# Members Viewing Forum v1.0 modifikációt, az biztos, hogy működni fog.
Ezt a MOD-ot megtalálod a dscripting.com-on, ha esetleg nem találod, akkor feltöltöm erre az oldalra.
Üdv
Téma megosztása:
Oldal 1 / 1

Súgó












