Premium Members

Mark

Administrator
Staff member
The Premium member feature has been moved into the VisioList core files.

Future developement of this feature will be handled in VisioList Version updates.

Thank you
 

Boardhopper

Member
Seeing how this is now in the core files, do we still need this part of code in index.php?

PHP:
$plugin_dir = opendir("{$CONF['path']}/plugins/");
while (false !== ($plugin_subdir = readdir($plugin_dir))) {

  if ($plugin_subdir != '.' && $plugin_subdir != '..' && $plugin_subdir != 'index.htm') {
    include('plugins/'.$plugin_subdir.'/languages/english.php');
      if(file_exists('plugins/'.$plugin_subdir.'/languages/'.$CONF['default_language'].'.php')) {

  include('plugins/'.$plugin_subdir.'/languages/'.$CONF['default_language'].'.php');
      }
  }
}
 

Mark

Administrator
Staff member
yup that code actually loads in the individual language files for all plugins.
 

Anna

Member
When getting more than 5 premiums, is it possible for the plugin to alternate between them? As it is now it looks like it is just the 5 newest that is shown in the sidebar.
 

Basti

Administrator
Staff member
The setting for that is allready there, just not integrated into the core it seems.

In admin you can use "Number of premium Members to feature"
Then for now ( included in next release ) open sources/misc/skin.php and find
Code:
    // Premium Member List
3 lines down, you have
Code:
    $result = $DB->query("SELECT * FROM {$CONF['sql_prefix']}_sites WHERE premium_flag = 1 ORDER BY join_date DESC LIMIT 5", __FILE__, __LINE__);
It has a hardcoded limit. replace the 5 at the end with
Code:
{$CONF['premium_number']}
That should do it
 

Mark

Administrator
Staff member
To take this one step further and make this show random premium members instead of the newest:

change the query in sources/misc/skin.php like so:
PHP:
$result = $DB->query("SELECT * FROM {$CONF['sql_prefix']}_sites WHERE premium_flag = 1 ORDER BY RAND() LIMIT {$CONF['premium_number']}", __FILE__, __LINE__);
 

cajkan

Active Member
Yeah, i didnt understand that message thats why i didnt reply - lol

Please provide more information, so we can help out
 
Top