vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Allow sigs after 100 post

kayla
08-26-2006, 09:20 AM
Hi,

I want to allow members to use their sigs but I want to keep spammers out.
Where or how in the admincp can you allow signatures after 50 post for example. I would like to set a limit so a member can not display their sig until they have made 50 post.

tia

WoodiE55
09-05-2006, 06:44 AM
Hi,

I want to allow members to use their sigs but I want to keep spammers out.
Where or how in the admincp can you allow signatures after 50 post for example. I would like to set a limit so a member can not display their sig until they have made 50 post.

tia

If I'm not mistaken in 3.6 you can control this on a per usergroup setting. You could also create another usergroup then use user promotions so once a member reaches 100 posts he'll then ben promoted to the new usergroup that allows sigs.

Big Dan
09-05-2006, 07:29 AM
Yup, the only way to do it as far as I know is with user groups. :)

Gadabout
09-11-2006, 03:24 PM
The easiest way would be to change the template to not show the sig. The user can still put one in, but it wont be shown in your postbit/memberinfo until the 100 post criteria is met.

Open your postbit template and find

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

Replace with

<if condition="$post['signature'] AND $post['posts'] >= 100">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

It will still display in their member profile page member.php. If you want to remove it from there too, edit the member template....

search for

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>

Replace with

<if condition="$show['signature'] AND $userinfo['posts'] >= 100">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>

Should work no problems

Peggy
09-11-2006, 03:40 PM
that doesn't look easier to me...

Gadabout
09-11-2006, 03:57 PM
The problem with usergroups especially on a large board is members don't generally know that promotions aren't instantaneous so you invariably end up with posts like "I've reached 100 posts, where's my signature?" By changing two conditions, you've eliminated the overhead of promotions for a very minor permission set, and changes to the users signature are immediate as soon as they've met the criteria.

A little extra coding now can often payoff large in saved server performance.

Peggy
09-11-2006, 04:04 PM
ah haaa

Noppid
09-11-2006, 05:08 PM
Nice code, Gadabout. Thanks


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum