Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Licensed Users System 1.01 Details »»
Licensed Users System 1.01
Version: 1.00, by N9ne N9ne is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-22-2003 Last Update: Never Installs: 37
 
No support by the author.

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.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-25-2003, 08:05 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem will be in the following then:

PHP Code:
------------------------------------------------------------------------------------>>
INSERT INTO settinggroup (settinggroupid,title,displayorderVALUES (NULL,'Licensed Users Options','62');
------------------------------------------------------------------------------------>>

------------------------------------------------------------------------------------>>
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (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,description,optioncode,displayorderVALUES (NULL,62,'Text for licensed member?','licensedtext','Licensed','You may use HTML.','','2');
------------------------------------------------------------------------------------>>

------------------------------------------------------------------------------------>>
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (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.
Reply With Quote
  #43  
Old 03-28-2003, 08:57 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....
Reply With Quote
  #44  
Old 03-28-2003, 05:16 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:57 AM squawell said this in Post #42
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?
Reply With Quote
  #45  
Old 03-28-2003, 08:31 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:16 AM N9ne said this in Post #43



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~
Reply With Quote
  #46  
Old 03-28-2003, 08:35 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #47  
Old 03-28-2003, 09:30 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:35 AM N9ne said this in Post #45
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!!
Reply With Quote
  #48  
Old 03-29-2003, 04:55 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #49  
Old 03-30-2003, 12:13 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:55 AM N9ne said this in Post #47
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:
Reply With Quote
  #50  
Old 03-30-2003, 12:19 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
} else {
  
$pminfo='';

Below it, add:

PHP Code:
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.
Reply With Quote
  #51  
Old 03-30-2003, 02:25 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-23-03 at 11:18 AM Da_GoTTi said this in Post #11
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??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05091 seconds
  • Memory Usage 2,326KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete