Escolar Documentos
Profissional Documentos
Cultura Documentos
============================================
if (paid()) {
echo "you're a subscribed user...";
}
you can also check if a user isn't a subscriber using the code:
if (!paid()) {
echo "you're not a subscribed user...";
}
so, with this you can play a little. but to configure a module for subscribed
users only, just use the
modules administration option as usual, see the new option in the "who can view
this" selection box.
messages system also can be used on the same way. to subscribe a user, he/she
must be registered on the
site, then as administrator go and edit the user's account. you'll notice the
new options to
subscribe/unsubscribe anyone you want in periods from 1 year to 10 years. the
system is created to manage
anual subscriptions only, but i think it's as it must be. also, in your_account
module, in the main
window the user will always know how many time remains in his/her subscription.
remember to edit the
config.php file and set $subscription_url variable with the subscription
information page on your site.
enjoy and make some money with your site! :) hope you like it.
- added subscribed users block with remaining time
- fixed lot of minor bugs on downloads administration module (thanks to chatserv
from http://www.nukeresources.com)
- fixed lot of minor bugs on web links administration module (thanks to chatserv
from http://www.nukeresources.com)
- fixed a minor bug on encyclopedia administration module (thanks to chatserv from
http://www.nukeresources.com)
- fixed lot of minor bugs on downloads module (thanks to chatserv from
http://www.nukeresources.com)
- fixed lot of minor bugs on web links module (thanks to chatserv from
http://www.nukeresources.com)
- fixed a bug in search function of encyclopedia module (thanks to chatserv from
http://www.nukeresources.com)
- fixed few bugs in forums and user info blocks (thanks to chatserv from
http://www.nukeresources.com)
- fixed bad variable call on news send to a friend functions (thanks to chatserv
from http://www.nukeresources.com)
- added missing $articlecomm global declaration in navigation bar of your account
module (thanks to chatserv from http://www.nukeresources.com)
- fixed save function when editing a client in banners administration
- fixed language selection bug in forums administration
- removed index link in the avantgo module's logo (thanks goes to michael aka
mictronic)
pretty easy and transparent to use and implement, valid for fetch arrays,
numrows, object, row, etc. you can
take a look at sql_layer.php file in /includes/ directory. addons and blocks
authors, please start using it!
- changed polls votes sums to properly match the new sql abstraction layer
- modularized the user.php page. separated pages for login, password lost and new
user's registration
- modularized downloads script with independent configuration file
- modularized web links script with independent configuration file
- created modules administration system to activate or deactivate it with some
options for admins
- separated modules block from main menu block
- optimized a lot the huge $morelink variable construction on index.php (from 136
lines to just 15!)
- optimized a lot the huge $morelink variable construction on categories.php
- ephemerids block replaced by modules block on database
- ephemerids included now as independent block
- fixed br tags bug in submit.php
- added missed global variable declaration in submissions function for "delete
all" link
- fixed submissions translations bug
- fixed voters sum counter on table nuke_poll_desc (not used now, maybe in the
future)
- fixed a bug in pollbooth.php for article's polls display
- fixed security hole in index.php to prevent the inclusion of any file outside
web root
- added total hits block (author: c. verhoef, cverhoef@gmx.net)
- a lot of minor bug fixes