vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Require 'X' Reputation To Access a Forum (https://vborg.vbsupport.ru/showthread.php?t=98981)

akanevsky 10-21-2005 10:00 PM

Require 'X' Reputation To Access a Forum
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| Require 'X' Reputation To Access a Forum
||
|| Author : Psionic Vision
|| Works on : vBulletin 3.5.2
|| Released : Dec 29, 2005
||
|| Time required to install: 20 seconds
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

This product creates a new setting in your forum options that enables you to restrict the forum access to users, whose reputation level is equal to or above the minimum that you specify.

STATISTICS

Products to Install: 1


VERSION HISTORY

1.0.1
[+] Fixed a bug which prevented getdaily from working properly.

1.0.0
First Release

INTRODUCTION

When using this product, you should enable "Show Private Forums" (otherwise inaccessible forums won't show up on the list) and "Show Lock Icons to Users" (otherwise inaccessible forums won't have a lock icon next to them). However, the settings of both of these options are up to you.

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Marco van Herwaarden 10-22-2005 05:14 AM

Why not just use a secondary usergroup to control forum access, and use a Promotion based on rep points?

Snake 10-22-2005 11:42 AM

Wow thanks.

akanevsky 10-22-2005 12:00 PM

MarcoH64

Because the more usergroups there are, the more confusing and hard to control it becomes. Trust me, I had like 8 additional usergroups on an older board, only for promotions. Now, if I want to change one basic permission for one group, I have to change it for all others, since they are all the same except forum access or whatever it is... With this hack, you do not need to promote users for reputation, you just edit a forum :) No hassle.

Bottom Line: IMHO, the promotions system was created for nothing, because it is better to create hack that would define the promoted setting rather than do it with usergroups.

Quote:

Wow thanks.
No problem, but you didn't click install. -.-

Marco van Herwaarden 10-22-2005 01:55 PM

Well everyone have their opinion, in mine it is better to have the 'burden' of more groups and use standard functionality, then to hack the software and face possible unexpected behaviour and upgrade problems.

akanevsky 10-22-2005 02:03 PM

Quote:

Well everyone have their opinion, in mine it is better to have the 'burden' of more groups and use standard functionality, then to hack the software and face possible unexpected behaviour and upgrade problems.
Well, maybe you shouldn't install any hacks at all - that will be the best way to avoid unexpected behavior ;)

euangel 10-22-2005 08:59 PM

Got this error when I tried to set a forum to require someone to have a rep of -5 or more.

Quote:

MySQL Error : Unknown column 'rep_required' in 'field list'
Error Number : 1054

akanevsky 10-22-2005 09:45 PM

Did you install the product xml?
If you did, you shouldn't have this problem.

euangel 10-22-2005 10:33 PM

I did...it also shows this as about 12 different plugins in my plugin manager after i installed the product. Is this normal?

akanevsky 10-22-2005 11:09 PM

Yes. Try reinstalling the product.

euangel 10-22-2005 11:19 PM

Uninstalled...reinstalled...same error

akanevsky 10-22-2005 11:43 PM

Well then you have problems with your board.

akanevsky 10-23-2005 01:24 AM

Try running the following query:
[sql]ALTER TABLE {pfx}forum ADD rep_required TINYINT(10) DEFAULT '0' NOT NULL[/sql]
(don't forget to replace {pfx} with your forum prefix.)

euangel 10-23-2005 01:41 AM

Still get the same error after running the query. I double checked and the field is in fact present in the forum table.

james19 11-01-2005 07:34 AM

Nice. install
Thank you!

akanevsky 11-01-2005 05:49 PM

Quote:

Originally Posted by euangel
Still get the same error after running the query. I double checked and the field is in fact present in the forum table.

Then it is probably conflicting with another hack. I can't help you in such case. All I can suggest is removing all other hacks you have installed and seeing whether you still have the problem.

rb290 11-06-2005 12:13 AM

thanks!

rb290 11-06-2005 12:22 AM

any number I put it ends up saving it as 127 :confused:

akanevsky 11-19-2005 02:40 PM

Make sure you followed all the steps correctly.

LockeAG 11-30-2005 02:02 AM

I find some kind of bug..

When I install the product , GETNEW stop working...

What could be the problem??

bye

akanevsky 11-30-2005 12:06 PM

Hmm... There doesn't seem to be such problem on my board. What's your vB version?

LockeAG 12-01-2005 04:00 PM

Quote:

Originally Posted by Psionic Vision
Hmm... There doesn't seem to be such problem on my board. What's your vB version?

Hi ...thanks for the answer

well the ver. I use is the 3.5.1

and I try to re-installl the plug-in and its the same... How Come? its really wear.... and I haven't found any clue about why this is happening.

LockeAG 12-10-2005 05:16 PM

Now I have 3.5.2 and the problem persist...

the problem is that search.php?do=getnew stop working...

Hope can give me a hand.

akanevsky 12-10-2005 05:47 PM

It works for me and everybody else... Must be something with your board.

Smiry Kin's 12-17-2005 05:46 PM

VERY usfull

Smiry Kin's 12-20-2005 01:39 AM

Very nice, but 127 seems to be the MAX you can put into the system..

im on 3.5.2

Smiry Kin's 12-20-2005 01:57 AM

dude make a system like this for required post, make it just like this, with the same way you alter it etc etc..

HeRCuL70 12-21-2005 08:05 AM

Quote:

Originally Posted by LockeAG
Now I have 3.5.2 and the problem persist...

the problem is that search.php?do=getnew stop working...

Hope can give me a hand.

I have the same problem too. I'm also using 3.5.2.

How can i fix it?

akanevsky 12-21-2005 05:42 PM

I am going to verify the problem on 3.5.2 and get back to ya'll.

Mathiau 12-21-2005 07:20 PM

^^^ you do some awsome work m8!! will certainly like to try this one out tonight possibly!

HeRCuL70 12-27-2005 07:46 PM

Quote:

Originally Posted by LockeAG
Now I have 3.5.2 and the problem persist...

the problem is that search.php?do=getnew stop working...

Hope can give me a hand.

Anyone knows how can i fix that? I have the same problem and i need too install this hack immediately. but i cant use it cause of this problem.

HeRCuL70 12-29-2005 09:16 AM

Code:

The area you requested requires 127 reputation points. Unfortunately, at the moment you only possess 25. You may not continue.
i cant set the reputation points over 127 too. How can i also fix it.

HeRCuL70 12-29-2005 10:08 AM

Quote:

Originally Posted by HeRCuL70
I have the same problem too. I'm also using 3.5.2.

How can i fix it?

İ fixed it by disabling search_start plugin. Now it works well and no problem for me.

HeRCuL70 12-29-2005 10:32 AM

Quote:

Originally Posted by HeRCuL70
Code:

The area you requested requires 127 reputation points. Unfortunately, at the moment you only possess 25. You may not continue.
i cant set the reputation points over 127 too. How can i also fix it.

ok. I have fixed it by changing "rep_required" in "forum" table, using phpmyadmin. I changed its type to INT(11). Now i havent any problem.

And thanks a lot to Psionic Vision for this hack. i need it too much.

akanevsky 12-29-2005 11:00 AM

Hack updated, problem fixed.
Overwrite the XML :)

LockeAG 12-29-2005 05:11 PM

Quote:

Originally Posted by Psionic Vision
Hack updated, problem fixed.
Overwrite the XML :)

THNAKS MAN!

LockeAG 12-30-2005 10:18 PM

Hey Hi Panic Vision.. you will hate me.. but I have an other problem..

When I put the number of Rep that the user most have for access a forum, it only stay for a coumple of hours and then it reset and stay in zero and I most configure it again.

May be I can help you in graphics or something like that jejeje..

thanks..

HeRCuL70 01-10-2006 09:44 AM

Psionic Vision, hello

I need some chages for your hack. If i use like you do it. My members add good messages but when they access that forums, they stop doing it. Therefore i need an option to limit for a specific restriction according to time.

For example : (every members must gain more reputation to access that forum for limited time.) 250 reputaions point for 1 week. After one week these member cant access this/these forum(s). They will need new 250 reputations to be able to access there again. He/She's old reputations wont count to access these forum parts any more.

So, they must always do good things if they want to access these forums. These changes will force them much more than before, isnt it? Because, if i use like now they do nothing after accessing these forums gaining the reputaion limits.

Sorry for my bad english. I hope you understand what i want to explain.

Thank you.

VTXCafe.com 05-02-2006 01:19 AM

Quote:

Originally Posted by LockeAG
When I put the number of Rep that the user most have for access a forum, it only stay for a coumple of hours and then it reset and stay in zero and I most configure it again...

Same here, it works for a little while and then everyone can see it and the rep is set back to zero.

akanevsky 05-02-2006 04:32 PM

Quote:

Originally Posted by VTXCafe.com
Same here, it works for a little while and then everyone can see it and the rep is set back to zero.

That does not happen on my installation ...


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01305 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete