[04/02/07] Minimum posts before voting

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
1
50%
Very Good
1
50%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 2

MarkTheDaemon
Former Team Member
Posts: 2771
Joined: Thu Oct 20, 2005 2:42 am
Location: United Kingdom
Name: Mark Barnes

Post by MarkTheDaemon »

MOD Updated to version 1.0.2a
See first post for Download Link
mariocaz
Registered User
Posts: 87
Joined: Tue Jun 07, 2005 6:49 am
Location: Mexico, D.F.
Contact:

Post by mariocaz »

Hi guys,

Happy New Year 2007!! :P 8) :)

I see a new version of this great Mod, so what I have to do to update the last version 1.0.0 to this new one 1.0.2a ?
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Hello,

Here you are:

Open:

Code: Select all

posting.php
Find:

Code: Select all

if ( $userdata['user_posts'] < $vote_posts && $userdata['user_level'] != (MOD || ADMIN) )
Replace with:

Code: Select all

if ( $userdata['user_posts'] < $vote_posts && $userdata['user_level'] == USER )
It's actually the same code, but like this it's more logical :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
mariocaz
Registered User
Posts: 87
Joined: Tue Jun 07, 2005 6:49 am
Location: Mexico, D.F.
Contact:

Post by mariocaz »

Thank you my friend, a little modification. :wink:
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Post by diabolic.bg »

Excellent mod! I have installed it in 7 templates and all 7 working perfectly.
Thanks eviL<3!
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Glad it's working :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28654
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Post by Paul »

MOD Updated to version 1.0.3
See first post for Download Link
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Thanks, MOD team!

Code: Select all

##   2006-12-27 - Version 1.0.3
##      - Removed backticks from SQL
##      - Changed the first FIND action
##      - Reduced value of the <input>'s maxlength attribute
##      - All changes suggested by the MOD team, thanks
##      - How about MODx?
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Lektor
Registered User
Posts: 46
Joined: Tue Sep 19, 2006 9:27 pm

Post by Lektor »

MOD Description: Users need to have enough posts before they can Vote in a poll. This is useful if you don't want people registering accounts just for this. This MOD is based on a request by kber.

What about the users who have a few messages but they've registered enough time ago.
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Post by diabolic.bg »

How can I update previous version 1.0.2a?

Thanks!
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Lektor, at the moment it's only based on the post count.

diabolic.bg, here you are:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
		<td class="row2"><input class="post" type="text" maxlength="255" size="3" name="vote_min_posts" value="{VOTE_MIN_POSTS}" /></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
		<td class="row2"><input class="post" type="text" maxlength="10" size="3" name="vote_min_posts" value="{VOTE_MIN_POSTS}" /></td>
:D
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Post by diabolic.bg »

Thanks eviL<3! Very easy - changed only one digit... :D
rojna
Registered User
Posts: 27
Joined: Thu Mar 01, 2007 4:59 am

Post by rojna »

Hi eviL<3, I installed your mod on my phpbb but I cant find in the admin where I can select the min. posts :?

Code: Select all

SQL
INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('vote_min_posts', '10');
I dident do anything with this part, does it go anyware ?? I dont have a phpbb_config file :?:


I dont know anything about programing so any help will be great :D
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
Bicalho
Registered User
Posts: 10
Joined: Mon Apr 02, 2007 9:36 pm

Re:

Post by Bicalho »

Lektor wrote:
MOD Description: Users need to have enough posts before they can Vote in a poll. This is useful if you don't want people registering accounts just for this. This MOD is based on a request by kber.

What about the users who have a few messages but they've registered enough time ago.


Thats what I really need! Is there a MOD that does this? I looked for the hole site... :cry: Is it possibible to modify this MOD to achieve this purpose?
Post Reply

Return to “[2.0.x] MOD Database Releases”