Log in

View Full Version : Approved Users???


vortech
10-23-2002, 04:59 PM
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..

Logician
10-24-2002, 11:12 AM
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:
updateuserforum($foruminfo['forumid']);

add:

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..

Chris M
10-24-2002, 12:10 PM
Thats very cool:)

Satan

Logician
10-24-2002, 01:54 PM
thx Chris..

Chris M
10-24-2002, 02:00 PM
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

Logician
10-24-2002, 02:18 PM
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..

NTLDR
10-24-2002, 02:21 PM
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.

vortech
10-24-2002, 02:28 PM
Where can i find the Advanced templates hack i did a search but want to make sure i get the right thing for this.

NTLDR
10-24-2002, 02:34 PM
Check logicians profile, you will find a link there ;)

Chris M
10-24-2002, 02:42 PM
@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

Logician
10-24-2002, 03:04 PM
have you ever checked how many 0 poster members in vb.org? ;)

Chris M
10-24-2002, 03:12 PM
Probably about 40%...

We could probably get into cooperation with vB.com or a Mod or what have you, to check which ones are liscenced...

Satan