forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: cmfa on February 06, 2011, 10:15:30 pm

Title: CopperRank - The Ranking System For Coppermine
Post by: cmfa on February 06, 2011, 10:15:30 pm
Hi@all

The copperrank (http://forum.coppermine-gallery.net/index.php/topic,48058.0.html) of the gallery plugin version 1.4xx has been ported to version 1.5xx.
What remains to be done by the Dev Team member must be the version number matching.
I also hope to have fixed the probelms. Please check again. On critical note, I would look forward to. I hope it finds your favor.

Demo (http://fotofreunde-rathenow.adtg.de/Teil5/profile.php?uid=2)

Thanks to all

CMFA

Adaptation of Configurations file
modified query in the profile.php
observed change instructions.txt

Quote from: Just_Some_Guy - Original plugin Author
CopperRank
CPG 1.4x
DEMO

This plugin will create fully customizable ranks for your gallery, all ranks are based on the number of uploads made by the user. The rank name, value (number uploads required to achieve the rank) and the rank images can all be changed through the plugin config page.

The default ranks are -


Newbie                     10
Member                    25
Extreme Member         35
Power Member           45
Addict                      50+

The default images are blue squares; 1 for 1st rank, 2 for 2nd rank, etc.

Everything is customizable and doesn't need to be changed if you would like to keep the default settings.

Installation -


Upload the attached archive via the plugin manager.
Install the plugin.
Follow the instructions in instrutions.txt.
(optional) configure the plugin using the config page.

Languages


English.
German (by Farnsi).
Dutch (by Hein).
Italian (by Lontano).
Spanish (by/por ksawery)
Translations welcome.

CHANGELOG


04/11/07 - 15:40 - Added German lang files. (by Farnsi)
04/11/07 - 16:35 - Added Danish lang file. (by Hein)
04/11/07 - 19:35 - Added Italian lang file. (by Lontano)
19/05/08 - 13:14 - Added Spanish lang file. (by/por ksawery)
19/05/2008 - 22:08 - V2 released including a change to a database query and init.inc.php by Nibbler
See the attachments for a demo picture.

Thanks to Sami and Frantz for the help!

Hope this proves useful,

just_some_guy

Title: Re: CopperRank - The Ranking System For Coppermine
Post by: Αndré on February 07, 2011, 02:43:04 pm
What remains to be done by the Dev Team member must be the version number matching.
Just add
Code: [Select]
$plugin_cpg_version = array('min' => '1.5');to configuration.php.


Moving to plugin contributions board. You're now member of the 'Contributor' group and will be able to edit your posts, mainly to maintain your announcement threads. Please don't edit posts in a way that replies to your posts or whole threads will become contextless.
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: mitko on December 18, 2011, 05:18:22 pm
Code in the instruction page (for profile.php) is incorrect. Accroding to it there is no users with 4 level, cause conditions are:
<=lev4 and next is >lev5
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: allvip on May 18, 2013, 10:30:55 pm
I installed this plugin and it does nothing,but now the profile page is broken:


http://allvip.us/gallery/profile.php?uid=127

I uninstalled and deleted the plugin.I deleted the profile.php file from the host and reupload it,but it's still broken.
what can I do?

Title: Re: CopperRank - The Ranking System For Coppermine
Post by: Joe Carver on May 19, 2013, 02:35:42 pm
It looks like you still have a few other plugins still running.

XFeed looks to be interfering, but since you also have MassImport running too, the best suggestion
is to uninstall and / or reorder those plugins.
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: allvip on May 20, 2013, 08:56:37 pm
done.
still broken
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: allvip on May 20, 2013, 09:07:53 pm
THANKS A LOT.
was the newsletter plugin
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: allvip on May 28, 2013, 07:11:09 pm
I really want this plugin to work
please help
I does not do nothing.

my steps:

1.
Code: [Select]
$plugin_cpg_version = array('min' => '1.5');
to configuration.php in the cooper rank folder after global $Config;

2.install the plugin


3.profile.php

Replace endtable(); with -

Code: [Select]
//CopperRank Begin
  require('./plugins/CopperRank/include/init.inc.php');
  Global $lang_plugin_CopperRank;

  $rankplugin = mysql_result(cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_PLUGINS']} WHERE name = '{$lang_plugin_CopperRank['CopperRank']}' "), 0);
 
  if ($rankplugin == 1)
  {
  echo '<tr>';
  echo '<td width="40%" class="tableb graybox" height="25">';
  echo $lang_plugin_CopperRank['User_Rank'];
  echo '</td>';
  echo '<td class="tableb graybox" >';
  $result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = $uid ");
  list($rank) = mysql_fetch_row($result);

  $rank1 = $CONFIG['rank_value1'];
  $rank2 = $CONFIG['rank_value2'];
  $rank3 = $CONFIG['rank_value3'];
  $rank4 = $CONFIG['rank_value4'];
  $over =  $CONFIG['rank_value5'];

  if ($rank <= $rank1) {
      echo "{$CONFIG['rank1']}";
      echo "{$CONFIG['rank_image1']}";
  } elseif ($rank <= $rank2) {
      echo "{$CONFIG['rank2']}";
      echo "{$CONFIG['rank_image2']}";
  } elseif ($rank <= $rank3) {
      echo "{$CONFIG['rank3']}";
      echo "{$CONFIG['rank_image3']}";
  } elseif ($rank <= $rank4) {
      echo "{$CONFIG['rank4']}";
      echo "{$CONFIG['rank_image4']}";
  } elseif ($rank > $over) {
      echo "{$CONFIG['rank5']}";
      echo "{$CONFIG['rank_image5']}";
   
  } else {
     echo $lang_plugin_CopperRank['no_rank'];
  }
  echo '</td>';
  echo '</tr>';
  }
//CopperRank END


but the users have no rank
I created a new users,uploaded 11 files but the user has no ranks.I deleted the 11 files
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: cmfa on May 28, 2013, 09:01:22 pm
The plugin works as desired,
the code is between:
Code: [Select]
make_form($display_profile_form_param, $form_data);and
Code: [Select]
endtable();
CMFA
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: allvip on May 28, 2013, 10:13:16 pm
still nothing

where should I see the ranking images?

in the profile?

should I upload new images?
Title: Re: CopperRank - The Ranking System For Coppermine
Post by: cmfa on May 29, 2013, 07:32:13 am
If the code in profile.php? the plugin does the rest images need not be changed. Own graphics can be changed in the plugin folder

cmfa