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
Details »»

Version: , by James Cridland James Cridland is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-04-2001 Last Update: Never Installs: 4
 
No support by the author.

One of our forum guides asked...

Quote:
How about a 'New Member' tier - maybe up to, say, 10-12 posts - where their user rights are restricted so that they cannot start new threads.

Looking through some of the forums, it seems that first-time posters that start new threads usually fall into several categories:
1. Start a new thread on a subject that's already running - obviously they haven't checked first, or are posting in the wrong forum anyway.
2. Have registered with a new name purely to start a thread slagging someone off, or similar 'problem' thread.
3. Self-promotion/spam.
Some mailing lists on Yahoo will 'moderate' new members' contributions. Their posts have to be approved by one of the moderators for a period of time - usually until we are satisfied they are OK. This stops the sign-on-and-spam brigade, while the 'lurkers' will never be aware anyway. (Want this for VB? Find the hack here)

This is obviously not feasible with our board - there's too much traffic and we aren't always around to check it immediately - so this might be an easier way of moderating new members.

The downside is that some troublemakers might work it out and post nonsense in a number of threads to get their posts up to the requisite level - although by then, with any luck, this would have drawn our attention to them, and appropriate action taken.
For those of you who wish to try this, my hack is below:

1. Edit newthread.php to add the code in bold...

Quote:
$permissions=getpermissions($forumid);
if (!$permissions[canview] or !$permissions[canpostnew]) {
show_nopermission();
}

if($bbuserinfo["posts"] < 10)
{
eval("standarderror(\"".gettemplate("error_forumne wbie")."\");");
exit;
}

2. Go to your control panel and choose "Templates: Add"
Template name: error_forumnewbie
Template set: your standard set (Default)
Template: "Thanks for trying to post a new message.<P>Until you've taken part in a few discussions, you can only reply, not post a new topic. Try searching for what you were going to post about, using the "Search" facility, and see if you can add your comment to something there."

3. Upload newthread.php

This will create a standard UBB error if you try to create a new topic and you've posted less than ten messages. (Change the "10" in the code snippet above to change the number of messages needed to be able to post new threads).

Improvements...

Want to turn this off for a particular forum? Look at the forum's URL in your browser to to discover its "forumid" number. It's the one right at the end of the URL.
Then change the "if" statement above to...
if($bbuserinfo["posts"] < 10 && $forumid<>11 && $forumid<>23)
This will let newbies to post new topics to my forum number 11 or forum number 23.

Want, also, to insist that this user has been a member for longer than two days?
Then change the "if" statement above to...
if(($bbuserinfo["posts"] < 10 || ($bbuserinfo["joindate"]+86400*2) > (time())) && forumid<>11 && forumid<>23)
The "86400 * 2" is the bit that mentions the days... change the second number to "1" to make the probation period only one day, or "5" to make it 5 days.

Hope you find this useful: see it in action at http://forums.mediauk.com/

Show Your Support

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

Comments
  #12  
Old 11-04-2001, 08:39 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by aldamon
Please update for 2.2.0 when possible. It might not even need to be updated......Thanks!
It doesn't need updating, by the looks of things, though I will certainly work to add the "if registered for less than 7 days" thing: that's a good idea.

A control panel to set these things would be nice, but I'm not really that clever.

(Later

Now updated (see the top message).
Note that the timescale and the number of posts both have to be met, so a user who posts 15 replies in one day still can't post a new topic. Presumably this is what you wanted... and it sounds a great idea.
Reply With Quote
  #13  
Old 11-09-2001, 08:44 PM
over over is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx nethng that saves manual changing peeps privlidges level is a god send
Reply With Quote
  #14  
Old 11-20-2001, 12:55 PM
aldamon aldamon is offline
 
Join Date: Oct 2001
Location: Durham, NC
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just found a BIG problem with this hack. Users who are not logged in get the forumnewbie error instead of the log in prompt.

Is there any way to exclude unregistered users from the forumnewbie error so they get the regular log in screen when trying to post?
Reply With Quote
  #15  
Old 11-20-2001, 01:26 PM
aldamon aldamon is offline
 
Join Date: Oct 2001
Location: Durham, NC
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed!

Just move the hacked code down a few lines. Put the code after this in newthread.php:

-------
$permissions=getpermissions($forumid);
if (!$permissions[canview] or !$permissions[canpostnew]) {
show_nopermission();
}
-------

This will let the correct error message to display for uncookied users. Damn, if someone hadn't emailed me complaining that they could not post unless they had 1 post already, when they really weren't logged in, I never would have caught this!
Reply With Quote
  #16  
Old 11-20-2001, 05:40 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic; thanks for that. I've altered the first message accordingly.
Reply With Quote
  #17  
Old 12-08-2001, 02:33 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works great nice work, but I was wondering if theres a way to have it enabled only in certain forums
Reply With Quote
  #18  
Old 12-08-2001, 02:56 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem Ive found the answer
Reply With Quote
  #19  
Old 12-08-2001, 03:38 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have noticed that it is possible to switch this off for particular forums, although it's a bit clunky. It would be good to add this to the control panel in some way, but I don't understand enough about that to do it.
Reply With Quote
  #20  
Old 12-08-2001, 06:36 PM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With the addition of some code on the https://vborg.vbsupport.ru/showthread.php?s=&threadid=14075]moderate a user[/url] hack, I've now removed this hack from my board; sticking users on auto moderation works better for some problems we're having with a user who won't go away.

I'll still keep maintaining this one, mind, but thought it's only fair to mention it!
Reply With Quote
  #21  
Old 03-06-2002, 03:09 AM
esoin esoin is offline
 
Join Date: Jan 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack still work with the newest version of VB? i
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 12:49 AM.


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.08136 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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_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
  • (2)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_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