New Registered Users Today New Registered Users Today
 

News:

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

Main Menu

New Registered Users Today

Started by just_some_guy, October 18, 2007, 10:32:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just_some_guy

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

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

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

just_some_guy

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

Thanks,
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

good work just_some_guy

Just a tip :
you're using hard coded table prefix on codebase.php
this

$result = mysql_query("SELECT * FROM cpg1411_users WHERE DATE_SUB(CURDATE(),INTERVAL 1 DAY) <= user_regdate");

should be

$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 :)
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

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

Thanks,
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

QuoteFor 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
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

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

Thanks,
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

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

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.
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

Version 2: Multi Lingual support: see first post.
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

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
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

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.
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

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

François Keller

QuoteAs you can probebly tell...im new to this sort of thing.
not a problem  ;) i make mistakes too  ;)
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

Ok, Thanks Farnsi. I have added your translation to the download.
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

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

just_some_guy

Thanks Hein, i added your translation on the first post.
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

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

just_some_guy

Thanks Lontano, i added your translation on the first post.
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

i installed this plugin. cant see where the users today is... i created a test user to check this out. no luck