Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

ROZWIĄZANY: VIP members


teez

Rekomendowane odpowiedzi

Witam, mam problem z aplikacją (SOS32) Vip Members.

Po kliknięciu w menu 'Vip members' wyskakuje

Fatal error: Call to a member function listVIPMembers() on a non-object in /home/bebek112/domains/pro-gamming.pl/public_html/admin/applications_addon/other/sospromote/modules_public/list/list.php on line 84
<?php

/**

* Product Title: (SOS32) VIP Members

* Product Version: 2.1.0

* Author: Adriano Faria

* Website: SOS Invision

* Website URL: http://forum.sosinvision.com.br/

* Email: [email protected]

*/

if ( !defined('IN_IPB') )

{

print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";

exit();

}

class public_sospromote_list_list extends ipsCommand

{

protected $output = '';

protected $pageTitle = '';

public function doExecute( ipsRegistry $registry )

{

switch( $this->request['do'] )

{

case 'list':

default:

$this->listVIPMembers();

break;

}

$this->registry->output->addContent( $this->output );

$this->registry->getClass('output')->sendOutput();

}

public function listVIPMembers()

{

$this->registry->class_localization->loadLanguageFile( array( 'admin_sospromote', 'sospromote' ) );

if ( !in_array( $this->memberData['member_group_id'], explode( ',', $this->settings['sospromote_grupoa'] ) ) )

{

$this->registry->output->showError( $this->lang->words['no_permission'] );

}

$st = intval($this->request['st']) >= 0 ? intval($this->request['st']) : 0;

$end = intval( $this->settings['sospromote_pagination'] ) ? $this->settings['sospromote_pagination'] : 20;

$totalVips = $this->DB->buildAndFetch( array( 'select' => 'count(member_id) as total', 'from' => 'members', 'where' => "sospromote_vip = 1" ) );

$pages = $this->registry->output->generatePagination( array( 'totalItems' => $totalVips['total'],

'itemsPerPage' => $end,

'currentStartValue' => $st,

'baseUrl' => "app=sospromote"

) );

$this->registry->output->addNavigation( $this->caches['app_cache']['sospromote']['app_public_title'], 'app=sospromote' );

$this->DB->build( array( 'select' => 'm.member_id, m.members_seo_name, m.members_display_name, m.member_group_id, m.sospromote_vip, m.sospromote_vip_eterno, m.sospromote_vip_g_origem, m.sospromote_vip_dias',

'from' => array( 'members' => 'm' ),

'where' => 'm.sospromote_vip = 1',

'add_join' => array( array( 'select' => 'pp.*',

'from' => array( 'profile_portal' => 'pp' ),

'where' => 'pp.pp_member_id=m.member_id',

'type' => 'left' ) ),

'order' => "m.sospromote_vip_eterno, m.sospromote_vip_dias, m.members_display_name",

'limit' => array( $st, $end )

) );

$q = $this->DB->execute();

if ( $this->DB->getTotalRows( $q ) )

{

$vips = array();

while( $r = $this->DB->fetch( $q ) )

{

$r = IPSMember::buildDisplayData( $r );

$vips[ $r['member_id'] ] = $r;

}

}

$this->output .= $this->registry->output->getTemplate( 'sospromote' )->listVIPMembers( $vips, $pages );

$this->pageTitle = $this->settings['board_name']." - ".$this->caches['app_cache']['sospromote']['app_public_title'];

$this->registry->output->setTitle( $this->pageTitle );

$this->registry->output->addContent( $this->output );

$this->registry->output->sendOutput();

}

}

?>

Tutaj w/w plik

A samego VIPA nie widać tak jak tutaj w menu obok komunikatora tylko gdy odswieżam stronę - nad .

69973856537018375125.png

Edytowane przez TeeZik

Znajdziesz mnie na LinkedIn

Odnośnik do komentarza
Udostępnij na innych stronach

Zrobiłem według tego co znalazłem na Community

Here's a work-around.

1) Make some skin OTHER than IP.Board the default skin, using the blue HTML icons in ACP -> Look & Feel.

2) Edit the settings for the IP.Board skin. The skin key field should show up, and it will likely be blank. Fill in the value: default

3) save the IP.Board skin.

4) Now use those HTML icons to make IP.Board the default if you want to, but you can leave it at whichever default skin you wish.

5) Go to ACP -> Look & Feel -> Template Tools -> Rebuild Master Skin Data -> select all the checkboxes in that section -> click the Rebuild button.

That will at least get the skin key set properly, which you can check in the ibf_skin_collections table of the database. The IP.Board skin should show the value 'default' in the 'set_key' field for the IP.Board skin entry. If it's there, that should resolve the problem going forward.

If you installed a new app shortly before fixing the underlying problem, and if it's not in heavy use yet, just uninstall and reinstall it. That should work, but if it doesn't for you, please file a support tick

Działa, dziękuję i do zamknięcia :)

Znajdziesz mnie na LinkedIn

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu.

Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.