Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2002, 04:59 PM
vortech vortech is offline
 
Join Date: Feb 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Approved Users???

Not sure how to word this..

But for our support forum we need our users to put in there user name with us before we give them support. Kind of like VB does here.

Is there any hack or a way to do this very easy. I know how to add the Field for them to add there user name and no one else be able to see it but we can't see it ether unless we go login to the back end of VB. This just takes to much time..

Any help or ideas on the best way to do this would be great or even what the name of a hack that could do this would be great..
Reply With Quote
  #2  
Old 10-24-2002, 11:12 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by vortech
Is there any hack or a way to do this very easy. I know how to add the Field for them to add there user name and no one else be able to see it but we can't see it ether unless we go login to the back end of VB. This just takes to much time..
If I got your correct, here is the solution:

* Create a hidden, admin only editable userprofile field in Admin CP and note its id.
* When you want to give access to users for forum x, go and write something in that field of the user. (for other users it should be blank)
* Then you have 2 options:

1- If you want everybody to post to this support forum, but you want an easy way to discern people who should get support without going all the way to user options and check its username then use this method:
Install Advanced templates hack, then edit postbit template and add
[[($bbuserinfo[usergroupid]==6)]]
$post[fieldX]
[[/($bbuserinfo[usergroupid]==6)]]
to a relevant place (eg under user's posts)

Replace X with the field id of the profile field. This will display the content of this hidden field to the viewer if he is an Admin. So by checking the thread you'll easily notice if he is eligible for support or not.

2- You may want to restrict the new thread creation of this forum to these users only:

Edit newthread.php and apply this hack:

after:
PHP Code:
updateuserforum($foruminfo['forumid']); 
add:
PHP Code:
if (!$bbuserinfo[fieldX] AND $foruminfo['forumid']==Y)
{
show_nopermission();} 
This will make sure only these people can create a new thread in forum Y.

Whatever fits to you..
Reply With Quote
  #3  
Old 10-24-2002, 12:10 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats very cool

Satan
Reply With Quote
  #4  
Old 10-24-2002, 01:54 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx Chris..
Reply With Quote
  #5  
Old 10-24-2002, 02:00 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am going to contact Arunan about this

We could use this @ noXmedia.net...

Is there a way to make it so that the User can enter it upon Registration @ noXmedia, but not edit it afterwards?

We would use it, so that any Custom vBulletin hacks or Styles etc, are not going to unliscenced users...We could ask them to provide their vBulletin.com Community / vBulletin.org Community Forum username, to ensure that they get top-level support

Satan
Reply With Quote
  #6  
Old 10-24-2002, 02:18 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it is possible.. Just add a new form box to your registration form that writes the data it includes to fieldx in userprofile field. I'm sure both you and Arunan can handle such a small hack without my help.. ( I recall I give this hack recently in General Hacking Discussions forum either?)

However I dont know how you envision to check the validity of the username, new member entered. What if a user claims that he is "Logician" when he is registering? It's not hard for anyone to find usernames of vb.org, neither have you a method to check his word's validity..You can not also know if the vb.org username is a valid vb licence owner either. Everybody can open an account here..
Reply With Quote
  #7  
Old 10-24-2002, 02:21 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd suggest making a thread in the General Hacking Discussion forum where you get users to add there name to the thread to show they are licenced. Thats the best what IMO and is what TECK was planing to do/enquired about for when his site opens.
Reply With Quote
  #8  
Old 10-24-2002, 02:28 PM
vortech vortech is offline
 
Join Date: Feb 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where can i find the Advanced templates hack i did a search but want to make sure i get the right thing for this.
Reply With Quote
  #9  
Old 10-24-2002, 02:34 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check logicians profile, you will find a link there
Reply With Quote
  #10  
Old 10-24-2002, 02:42 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@NTLDR - That sounds like a cool idea

If that doesnt work, I am sure myself & Arunan can tell who is a valid user or not We know most of the obvious vB.org members, purely by their posting style and behaviour

Satan
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:59 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.05027 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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