View Full Version : Licensed Users System 1.01
Licensed Users System
- by N9ne, March 23rd 2003
- Copyright N9ne 2003+
What does this hack do?
- It adds a licensed user system to your forum.
- Extra user field: 'licensed'
- Admins can select YES or NO for 'licensed' in AdminCP for Users
- Usergroup page: Extra table, showing # of licensed and unlicensed users
- AdminCP: Search by licensed or unlicensed users
- AdminCP Options: Text for 'licensed' and 'unlicensed' users
- Shown in getinfo and postbit
- AdminCP Option: Which usergroupid's can view license status of users?
- Set usergroupids separating with a comma in AdminCP Options
- Six options added under new category in each forum's options:
- 'Unlicensed Users Options' (Licensed users use default options):
- Can view forum?
- Can post new threads?
- Can download attachments?
- Can reply to own & others' threads?
- Can view others' threads?
- Can search forum?
- Hack can easily be integrated into other systems
- Customizable error messages when unlicensed user is denied access
- Customization available through templates
- Searching for users in AdminCP: Can show licensed status in results
Created in 2.3.0 // Should work in 2.2.x and 2.3.x
Installation:
- 6 Queries to Run
- 5 Templates to Add
- 2 Templates to Modify
- Loads of file edits!
Change Log
1.01: 30th March 2003: Query fix. [vBulletin Main Options]
Addons
Forumhome: Show unlicensed text if user is unlicensed. (https://vborg.vbsupport.ru/showthread.php?s=&postid=375477#post375477)
Please Click INSTALL!
A hack like this is being used here at vb.org ;)
Note: Open the attached file in a text editor to view instructions.
16 Screenshots in next post.
DrkFusion
03-22-2003, 11:43 PM
May I be the first to say, this hack is your biggest yet, and congratulations!
Hehe, yep, it sure is my biggest hack ever, the instruction file has 900 lines in it, and the screenshot .zip is 111kb =/...
It took me a long time to make this hack, with a lot of problems on the way, but I did it all by myself in the end, and it works...
Everyone feel free to install it ;) :)
assassingod
03-22-2003, 11:49 PM
This is simply amazing N9ne! Well done on such a brilliant piece of work
Boofo
03-23-2003, 12:18 AM
Good job, my man. You outdid yourself this time. ;)
Can it be set up so you can have a time set for the user to re-verify their license? Like yearly or monthly?
Today at 02:18 AM Boofo said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=371601#post371601)
Good job, my man. You outdid yourself this time. ;)
Can it be set up so you can have a time set for the user to re-verify their license? Like yearly or monthly?
Well any sort of re-verification system would need to be implemented into this hack, as there's no such 'reverification' in this hack as it stands.
GoTTi
03-23-2003, 01:15 AM
found a problem...
attached below...
ULTIMATESSJ
03-23-2003, 01:15 AM
This could be of some use to me someday, nice work with this, looks like a great hack
/me clicks install
GoTTi
03-23-2003, 01:18 AM
found another error.
options not showing in Forum Options
Slynderdale
03-23-2003, 01:58 AM
Great hack, to bad that it doesnt use the license check system similar to vbulletin.org, It doesnt check to see if they enter valid license data used at vbulletin.com, Its just a custom license system in case you ever wanna add some sort of license for your site. Its pretty good though but doesnt use any offiecial vbulletin verification of licenses.
Ferny72
03-23-2003, 03:07 AM
I don't think vb would allow other people to use a license check system similar to here. I think that was N9ne's purpose of the hack to make it so if you have a license system you could use this hack to make it easier.
Chris Gwynne
03-23-2003, 03:13 AM
Today at 03:58 AM Slynderdale said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=371646#post371646)
Great hack, to bad that it doesnt use the license check system similar to vbulletin.org, It doesnt check to see if they enter valid license data used at vbulletin.com, Its just a custom license system in case you ever wanna add some sort of license for your site. Its pretty good though but doesnt use any offiecial vbulletin verification of licenses.
vBulletin.com would never allow multiple useage of the license system on websites. Although, it would be good for a lot of people.
N9ne, simply amazing hack! Good job :D
X-Fan
03-23-2003, 05:51 AM
Okay, currently I've got a separate usergroup for my site's paid members. Will this hack would let you set up a system that would denote paid members to your site and allow them and only them to see a particular private forum?
Mephisteus
03-23-2003, 07:24 AM
omg, I own an Internet Services Company and this is just what I was looking for. I was going to make it myself untill I read you were going to ;). And thank god you did. I don't have the time to make it!
Great hack and another GREAT job N9ne!
squawell
03-23-2003, 07:52 AM
can this to do if user post over XX posts than get the licensed??
Dean C
03-23-2003, 08:35 AM
Wow excellent job n9ne - now that i can use this :(
- miSt
Da_gotti: re-apply changes to forum.php, and user.php in the admin folder, make sure you have everything in the right places.
X-Fan: I'm not sure what you're suggesting, but if you install this hack, you can run a simple query, so it makes all users in that paid group licensed...
Run this query, replacing X with the usergroupid of your paid members group:
UPDATE `user` SET licensed = '1' WHERE usergroupid = 'X'
X-Fan
03-23-2003, 10:38 AM
N9ne, with this hack, does it allow only those set to be licensed members to view a particular private forum?
In other words, is this just an easier way of doing a paid members group without having to create an entirely new usergroup?
X-Fan
03-23-2003, 10:45 AM
Excellent! That should make life easier :)
One more question for you - is it possible to have different "types" of licensed users? By that I mean currently I have two different paid membership groups (and that has meant 3 usergroups - one for each member group and a third group for those members who are in both the other groups!).
It's possible but would take a lot more work....I really don't have time to do so, as it would mean re-writing a lot of the hack.
Koopa
03-23-2003, 02:03 PM
Very nice hack, thanks :)
No problem Koopa. Please click install, as I can then send updates should there be any bug fixes in this hack (there's likely to be a bug somewhere with what, 50 file modifications :o)
VeoMorphine
03-23-2003, 02:43 PM
Very Very Very nice.
/me drop kicks the install butten.
Chris M
03-23-2003, 03:00 PM
Very cool:)
Could come in handy soon;)
Thanks!:)
Satan
DestyNova
03-23-2003, 04:37 PM
At last, someone release useful hack... it has been for a while.
Thanks
/me installs
Xyphen
03-23-2003, 05:02 PM
OMG!! This hack will make is big for sure, I am gonna use it later on, once I finish my forums up.
lol AViO, I doubt it will make it big, but it's here for people to use anyway :p
Link14716
03-23-2003, 10:26 PM
I would install it, but I have absolutely no use for it. Still, nice job, N9ne. :)
colicab-d
03-23-2003, 10:33 PM
i may use it in the future :D does it allow for you to have license numbers for a member?
id love to see it with an integrated cp panel foe users to edit ther license etc it got that?
TranceMaster
03-23-2003, 10:38 PM
amazing man
thanks u very much
:)
Very very nice.
Great job with this hack :)
* mr e drools
maybe i'll make a forum that needs a license system so i can use the hack :D
squawell
03-24-2003, 03:57 AM
N9ne i have a question with this part
in register file u say
find
'$avatarid'
replace with:
'$avatarid','0'
i think it should be like this
'$avatarid','$licensed','0'
am i right??
and add new template part do we not need to add a template
about attach file error message like:license_error_noattach something like this??
TranceMaster
03-24-2003, 11:26 AM
Yesterday at 03:18 AM Da_GoTTi said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=371629#post371629)
found another error.
options not showing in Forum Options
im getting the same error
cant work out whats wrong.
any ideas?
Today at 05:57 AM squawell said this in Post #36 (https://vborg.vbsupport.ru/showthread.php?postid=372392#post372392)
N9ne i have a question with this part
in register file u say
find
'$avatarid'
replace with:
'$avatarid','0'
i think it should be like this
'$avatarid','$licensed','0'
am i right??
and add new template part do we not need to add a template
about attach file error message like:license_error_noattach something like this??
No, I'm pretty sure that you should leave it how it is in the instructions, so when a user registers, he registers as unlicensed.
Today at 01:26 PM TranceMaster said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=372461#post372461)
im getting the same error
cant work out whats wrong.
any ideas?
------------------------------------------------------------------------------------>>
Find:
------------------------------------------------------------------------------------>>
makeyesnocode("Count posts made in this forum towards user post counts?","countposts",$forum[countposts]);
------------------------------------------------------------------------------------>>
Below it, add:
------------------------------------------------------------------------------------>>
maketableheader("Unlicensed Users Options");
makeyesnocode("Can view forum?","licensedviewforum",$forum[licensedviewforum]);
makeyesnocode("Can post new threads?","licensedthread",$forum[licensedthread]);
makeyesnocode("Can reply to threads?","licensedreply",$forum[licensedreply]);
makeyesnocode("Can download attachments?","licensedattach",$forum[licensedattach]);
makeyesnocode("Can view others' threads?","licensedviewthread",$forum[licensedviewthread]);
makeyesnocode("Can search forum?","licensedsearchforum",$forum[licensedsearchforum]);
------------------------------------------------------------------------------------>>
That is from the instructions, if you have done that step correctly, you should be able to see the options...
TranceMaster
03-25-2003, 06:13 PM
Yesterday at 04:44 PM N9ne said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=372506#post372506)
That is from the instructions, if you have done that step correctly, you should be able to see the options...
yes they show up in each forums own options, but in the vBulletin Options part, there is another option for Licensed Users Options, but nothing shows up here.
maybe im doing sumthing wrong, ill look over it again.
The problem will be in the following then:
------------------------------------------------------------------------------------>>
INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (NULL,'Licensed Users Options','62');
------------------------------------------------------------------------------------>>
------------------------------------------------------------------------------------>>
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,62,'Which usergroups can view license status?','licenseusergroup','6','In this field, enter the usergroupids of the usergroups which you want to allow to view the license status of users on the forum. Separate each usergroup id with a comma (ie. 5,6,7)','','1');
------------------------------------------------------------------------------------>>
------------------------------------------------------------------------------------>>
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,62,'Text for licensed member?','licensedtext','Licensed','You may use HTML.','','2');
------------------------------------------------------------------------------------>>
------------------------------------------------------------------------------------>>
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,62,'Text for unlicensed member?','licensednottext','Unlicensed','You may use HTML.','','3');
------------------------------------------------------------------------------------>>
These queries, as you can see the number 62 in each, that's the setting group id. Make sure that the settinggroup you've got's id is the same as in the queries you run to add the settings.
squawell
03-28-2003, 08:57 AM
N9ne is this can do if user is unlicensed user in main page will show some text tell them they r unlicensed right now...just like here.....
Today at 10:57 AM squawell said this in Post #42 (https://vborg.vbsupport.ru/showthread.php?postid=374472#post374472)
N9ne is this can do if user is unlicensed user in main page will show some text tell them they r unlicensed right now...just like here.....
I don't quite understand your request...do you mean you want to show, on forumhome (index.php), whether the user is licensed or unlicensed?
squawell
03-28-2003, 08:31 PM
Today at 03:16 AM N9ne said this in Post #43 (https://vborg.vbsupport.ru/showthread.php?postid=374602#post374602)
I don't quite understand your request...do you mean you want to show, on forumhome (index.php), whether the user is licensed or unlicensed?
yes~
if the user is unlicensed...they will see the message and only they
have...just like here!!can do something like that...thankz~:D:D
So you want it, so you can place, in your forumhome template, the variable, say $licensedtext and if the user is licensed, it says 'licensed' or if the user is unlicensed, it says 'unlicensed' ? Or do you want it so it only displays 'unlicensed' for unlicensed users, and that's it?
squawell
03-28-2003, 09:30 PM
Today at 06:35 AM N9ne said this in Post #45 (https://vborg.vbsupport.ru/showthread.php?postid=374681#post374681)
Or do you want it so it only displays 'unlicensed' for unlicensed users, and that's it?
yes~~this is what i want....only show to unlicensed user!!
thankz!! :)
Ok squawell, I will write up the code for what you want, I will have it posted up in a few hours by the earliest though..
squawell
03-30-2003, 12:13 AM
Today at 02:55 AM N9ne said this in Post #47 (https://vborg.vbsupport.ru/showthread.php?postid=375120#post375120)
Ok squawell, I will write up the code for what you want, I will have it posted up in a few hours by the earliest though..
thankz N9ne...u r a nice guy :banana:
Ok squawell, here's the addon, sorry it's a bit late:
Licensed Users System Addon: Forumhome: If user is unlicensed, show unlicensed word.
Open index.php
Find:
} else {
$pminfo='';
}
Below it, add:
if (!$bbuserinfo['licensed']) {
$licensedword=$licensednottext;
}
Save index.php
Now, in your forumhome template, add $licensedword anywhere you want. If the user is unlicensed, it will show the text you entered in your adminCP options for unlicensed users. If the user is licensed, it will show nothing.
squawell
03-30-2003, 02:25 PM
03-23-03 at 11:18 AM Da_GoTTi said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=371629#post371629)
found another error.
options not showing in Forum Options
N9ne i got same error...
and i already check the quaries.....and all fine...
so what cause that??
Run this query:
DELETE FROM settinggroup WHERE title = 'Licensed Users Options';
Then run this query:
INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (62,'Licensed Users Options','62');
First post and entry in DB edited. Attachment in first post edited. vBulletin main options will work now. Those of you who have that problem where the options don't show in the vB Options page, do the steps I posted in post #51 in this thread.
1.01 Released.
squawell
03-30-2003, 02:56 PM
N9ne i found another problem...
the title didnot show up in postbit template......
i checked the variable and its fine.......
do u think maybe i forgot turn some options on so it not appear?
Go to your vBulletin Options page in the AdminCP, and make sure you've set a title for unlicensed and licensed users, then hit submit...hopefully that works.
squawell
03-30-2003, 03:27 PM
Today at 01:24 AM N9ne said this in Post #54 (https://vborg.vbsupport.ru/showthread.php?postid=375533#post375533)
Go to your vBulletin Options page in the AdminCP, and make sure you've set a title for unlicensed and licensed users, then hit submit...hopefully that works.
yes i did...but not lucky..:(:(
Did you apply changes to functions.php and edit the postbit template correctly? Go over those steps again from the instructions.
squawell
03-30-2003, 03:43 PM
Today at 01:31 AM N9ne said this in Post #56 (https://vborg.vbsupport.ru/showthread.php?postid=375536#post375536)
Did you apply changes to functions.php and edit the postbit template correctly? Go over those steps again from the instructions.
yes i already checked.....the file and template all correctly....
but it still cant show up.....
Have you made sure that the usergroup you are in can view licensed status? Can you see the licensed status in a member's profile (getinfo) ?
squawell
03-30-2003, 07:46 PM
Today at 01:52 AM N9ne said this in Post #58 (https://vborg.vbsupport.ru/showthread.php?postid=375540#post375540)
Have you made sure that the usergroup you are in can view licensed status? Can you see the licensed status in a member's profile (getinfo) ?
yes im sure...the default setting admin can see right?
and i can see the status in profile.....everything well but only the
postbit part cant show up.....
zfrank1
04-04-2003, 06:11 PM
I can see also in member-profile, not in thread
postbit: $licensestatus isn´t working
don´t know why
zajako
04-10-2003, 06:53 PM
well done, I might actualy use this, and just make the paypal system automaticly change this to liecened instead of it createing a new usergroup.
If i use this, ill give you free advanced membership to my comapies site .
( http://gamasoftware.com )
* clicks install, but nothing shows up in the post bit? Everything else works great
could a custom vbskin be the cause? I had the same problem with the warning level hack till I added a different variable to be called in the see link template .
DaFire
06-05-2003, 04:53 PM
It looks like the problem is "$licenseusergroup" is not defined in admin/funtions.php .. I also have the warning hack installed.. maybe this has a bug that makes it not working.
I'm not that familar with vb hacking but I'll try to find out.
TranceMaster
06-11-2003, 01:57 PM
finally got it fully working
amazing hack, thanks man :)
Shuriken-UK
06-11-2003, 04:57 PM
hahaha finally, I was wondering if this was out. Very very impressed man *install*
Yesterday at 10:57 AM TranceMaster said this in Post #64 (https://vborg.vbsupport.ru/showthread.php?postid=407536#post407536)
finally got it fully working
amazing hack, thanks man :)
what did you add to get this to show up in the postbit??
Braindg
06-30-2003, 04:47 PM
Fed up with this now :)
ive edited all the PHP files 3 times...
double, and triple checked all the tables, and the templates.. yet i still cant get the info displayed in postbit...
im going to kick myself, im sure as it will be glaringly obvious what?s at fault.. but ive been at it for a few days now.. and have become blind to it...
anyone know the work around for this?
Cheers
sick hack. thanks!
/me hits install
AuthorZone.Com
07-17-2003, 10:34 PM
Uhhhh it does not have the meber's area however...and the admin license assignment system to email users their license and customer ID like vBulletin has.
The way vBulletin Member's area works is it emails customer id and license numbers to new clients and customer id and license serve as the automatic login info to the members area and licensed members only forums...
This is a key missing feature. as it is, with this hack admins have alot of work to do.
AuthorZone.Com
07-18-2003, 07:50 PM
Found a BUG
http://www.phplords.com/bug.jpg
AuthorZone.Com
07-18-2003, 08:40 PM
Not working.
When an unlicensed user tried to see the forums for licensed users only what they get it:
There have been no posts in the last 30 days in this forum.
Instead of the "You are not allowed etc. etc"
http://www.phplords.com/forum/
Why do you have a usergroup for licensed members? This hack doesn't go by usergroups.
Braindg
09-03-2003, 03:50 PM
Has anyone got any idea how to resolve the missing text in postbit yet?
would be nice if there was a solution for it..
heres hoping
Me
Where can i alter who is licensed and who is not? I dont see it on the User Options.
Sorry my fault, Forgot to upload the edited admin files :x Nice Hack, Good Job.
I cant see the postbit either. Strange.
gmarik
11-04-2003, 06:43 PM
Fine, just fine. Could you integrate it with PhotoPost too?
Dave-G
07-21-2004, 01:59 PM
Has this been done for vb3 ?
SnakeInc
07-22-2004, 04:15 AM
Yea, that's what I was wondering too.
freeshares1
12-12-2004, 03:44 PM
has anyone tried this on vb3?
EnIgMa1234
07-02-2006, 03:09 PM
does this work in VB 3.5.4?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.