Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: New Registered Users Today  (Read 87699 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
New Registered Users Today
« on: October 18, 2007, 10:32:30 am »

New Registered Users Today
DEMO

CPG 1.4x

This plugin creates a box of all the users that registered to your gallery in the past 24 hours. The box shows the number of users that registered in the past 24 hours as well as thier usernames which link to thier user profile. It is a very simple and useful plugin and this is my first plugin.


Install-

  • Go to config then navigate to the plugin manager => click browse and choose the archive that is attached on this post => then click upload.
  • Click install on the plugin manager.
  • You will then need to activate the plugin by navigating to the Album List View section of the config and add "newusers/" to the list.
  • (Version 1.1) The user names are linked to thier profiles by default. To remove this link, edit codebase.php and follow the simple instructions near the bottom of the script.
How It's Done

  • This uses the anycontent.php as a base to inputing the coding.
  • This however it will not replace your anycontent.php file.

CHANGELOG


  • Version 1.1
      -   Added the option of displaying the user name as a link or not. (as suggested by Hein)
      -   Fixed some minor coding issues. (Thanks Sami)
  • Version 2.0
      -   Added multi lingual support (thanks Sami and Frantz for the help as well as the all the other plugin authors whose plugins i read through to
          understand how to implement this system.) (see note at bottom of post)
      - Added French lang file.
      - Fixed Bug.
      - Added German lang file.
      - Added Dutch lang file.
      - Added Italian lang file.


Languages

- English
- Spanish
- French (thanks Frantz )
- German (thanks Farnsi )
- Dutch (thanks Hein )
- Italian (thanks Lontano )
- Translations welcome!

Note: The Language system should work in theroy, it works for me...but i have had trouble getting the translated text to apppear when a different language is selected. I think this problem is due to my browse/cookie settings. If someone could check this issue on thier site that would be great.

Hope you like it

just_some_guy

« Last Edit: October 19, 2007, 11:45:05 am by GauGau »
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: New Registered Users Today
« Reply #1 on: October 18, 2007, 10:38:34 am »

Might want to build in a option to show the new usernames without the profile link. In case people want privacy etc..
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #2 on: October 18, 2007, 10:59:16 am »

Good suggestion Hein, i edited my original post and added that feature.

Thanks,
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: New Registered Users Today
« Reply #3 on: October 18, 2007, 11:18:22 am »

good work just_some_guy

Just a tip :
you're using hard coded table prefix on codebase.php
this
Code: [Select]
$result = mysql_query("SELECT * FROM cpg1411_users WHERE DATE_SUB(CURDATE(),INTERVAL 1 DAY) <= user_regdate");
should be
Code: [Select]
$result = mysql_query("SELECT * FROM {$CONFIG['TABLE_PREFIX']}_users WHERE DATE_SUB(CURDATE(),INTERVAL 1 DAY) <= user_regdate");

Again good work for your first plugin
Welcome to Contributor group :)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #4 on: October 18, 2007, 11:23:21 am »

Thanks Sami, I ment to change that before i posted this plugin, i will change my first post attachment accordingly.

Thanks,
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Franšois Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9093
  • aka Frantz
    • Ma galerie
Re: New Registered Users Today
« Reply #5 on: October 18, 2007, 01:26:30 pm »

Quote
For The Future

    * I hope to possibly add some lang file
have a look into others plugins who have multilanguage possibility to see haw to do this
Logged
Avez vous lu la DOC ? la FAQ ? et cherchÚ sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #6 on: October 18, 2007, 01:38:54 pm »

Ok, i will have a read through others codebase's. This is a feature i really want to add.

Thanks,
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Franšois Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9093
  • aka Frantz
    • Ma galerie
Re: New Registered Users Today
« Reply #7 on: October 18, 2007, 01:49:54 pm »

it's not difficult to do.
Logged
Avez vous lu la DOC ? la FAQ ? et cherchÚ sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #8 on: October 18, 2007, 02:55:15 pm »

i am still finding this impossible i started a thread here for help: http://forum.coppermine-gallery.net/index.php?topic=47669.0

Thanks, your help would be appreciated.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #9 on: October 18, 2007, 05:30:16 pm »

Version 2: Multi Lingual support: see first post.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Franšois Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9093
  • aka Frantz
    • Ma galerie
Re: New Registered Users Today
« Reply #10 on: October 18, 2007, 06:12:47 pm »

french lang file attached.

btw, you must repack the plugin and rename the folder who contain the plugin files: the name muts be newusers and not newusersv2 if will not have an error message after installing the plugin
Logged
Avez vous lu la DOC ? la FAQ ? et cherchÚ sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #11 on: October 18, 2007, 06:23:31 pm »

Thanks Frantz!

Added the lang file and renamed the folder inside the zip.
As you can probebly tell...im new to this sort of thing.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Farnsi

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 177
Re: New Registered Users Today
« Reply #12 on: October 18, 2007, 06:28:42 pm »

Thanks for this plugin. I attached the german translation.  :)
Logged
Regards,
Farnsi

Franšois Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9093
  • aka Frantz
    • Ma galerie
Re: New Registered Users Today
« Reply #13 on: October 18, 2007, 06:31:57 pm »

Quote
As you can probebly tell...im new to this sort of thing.
not a problem  ;) i make mistakes too  ;)
Logged
Avez vous lu la DOC ? la FAQ ? et cherchÚ sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #14 on: October 18, 2007, 06:38:14 pm »

Ok, Thanks Farnsi. I have added your translation to the download.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: New Registered Users Today
« Reply #15 on: October 19, 2007, 07:45:22 am »

No zip option here so just rename the file to dutch.php  ;)
Nice work!
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #16 on: October 19, 2007, 09:41:22 am »

Thanks Hein, i added your translation on the first post.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: New Registered Users Today
« Reply #17 on: October 19, 2007, 10:24:37 am »

Here comes the Italian translation, just unzip inside /land directory as usual to have it working.
Thanks!

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: New Registered Users Today
« Reply #18 on: October 19, 2007, 11:41:25 am »

Thanks Lontano, i added your translation on the first post.
Logged
Tambien, Hablo Espa˝ol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

ch33p0x

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: New Registered Users Today
« Reply #19 on: May 12, 2009, 04:26:56 pm »

i installed this plugin. cant see where the users today is... i created a test user to check this out. no luck
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 20 queries.