New Registered Users Today DEMO (http://www.mysimtractor.com)CPG 1.4xThis 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 - Added the option of displaying the user name as a link or not. (as suggested by Hein)
- Fixed some minor coding issues. (Thanks Sami)
- 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
Might want to build in a option to show the new usernames without the profile link. In case people want privacy etc..
Good suggestion Hein, i edited my original post and added that feature.
Thanks,
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 :)
Thanks Sami, I ment to change that before i posted this plugin, i will change my first post attachment accordingly.
Thanks,
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
Ok, i will have a read through others codebase's. This is a feature i really want to add.
Thanks,
it's not difficult to do.
i am still finding this impossible i started a thread here for help: http://forum.coppermine-gallery.net/index.php?topic=47669.0 (http://forum.coppermine-gallery.net/index.php?topic=47669.0)
Thanks, your help would be appreciated.
Version 2: Multi Lingual support: see first post.
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
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.
Thanks for this plugin. I attached the german translation. :)
QuoteAs you can probebly tell...im new to this sort of thing.
not a problem ;) i make mistakes too ;)
Ok, Thanks Farnsi. I have added your translation to the download.
No zip option here so just rename the file to dutch.php ;)
Nice work!
Thanks Hein, i added your translation on the first post.
Here comes the Italian translation, just unzip inside /land directory as usual to have it working.
Thanks!
Thanks Lontano, i added your translation on the first post.
i installed this plugin. cant see where the users today is... i created a test user to check this out. no luck
We're out of crystal balls. Please do as suggested per board rules: http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616