PDA

View Full Version : Easy Disable/Enable Signature per user


hoangminh
06 Dec 2005, 04:29
Easy Disable/Enable Signature per user

I'm looking for this hack for long time but not found. So I decide to edit myself.

Now, I share with all of you.

NOTE: For 3.8.x version, see this post (http://www.vbulletin.org/forum/showthread.php?t=213069).

What this does ?

This hack mod will allow administrator enable/disable signature for each user.

Difficulty: Easy with 2 step.

Let's begin.

1. First, you need to create a new user profile as follow:

Profile Field type: Single-Selection Radio Buttons

Title: Enable Signature
Description: write whatever you like
Option - enter 2 values, each value seperated by Enter, notice the order of each:

Yes
No
Set Default : Yes
Order : (leave)
Required field: No
Field Editable by User: No (This option will only allow administrator to edit)
Private Field: Yes
Other field: No

Which page displays this option?: Option

Click Save, it will return to User profile field manager page

You will see new user profile field, view the name of it, for example in my board is: field17

Remember this

2. In postbit or postbit_legacy template,

Find:

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

<if condition="$post['field17']!='No'">
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
</if>Note: change $post['field17'] the fieldname as in your board

All done.

How to use this ?

If you want to disable signature for any user, just go to the User Profile in AdminCP and at the option: Enable Signature, select No

You like this hack? Click here (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=102323) to receive update of this hack when available
Enjoy.

EasyTarget
06 Dec 2005, 05:47
good idea, thanks.

eNforce
06 Dec 2005, 10:04
Simple yet useful, I like it

Flow Fusion
06 Dec 2005, 12:21
Cool!

Snake
06 Dec 2005, 12:31
Whoa this is great. I have been looking for something like this. Thanks bro.

AWI
08 Dec 2005, 08:44
Very useful thanks man

ludachris
18 Jan 2006, 18:57
I have a link in postbit that shows up for my moderators for quick access to edit a users' signature. It takes them to the page that you'd get when looking at a user profile in the modcp (Edit Signature):
/forums/modcp/user.php?do=editsig&u=userid

Any idea how you could get this hack to show up on that page? So a moderator could edit the sig AND change that profile field on the same page?

hoangminh
18 Jan 2006, 19:01
I have a link in postbit that shows up for my moderators for quick access to edit a users' signature. It takes them to the page that you'd get when looking at a user profile in the modcp (Edit Signature):
/forums/modcp/user.php?do=editsig&u=userid

Any idea how you could get this hack to show up on that page? So a moderator could edit the sig AND change that profile field on the same page?

To do this need to add some code to original php file. But now I dont have much time to do this. I think you should do it by your self if you have knowledge about php and SQL

redspider
18 Jan 2006, 19:05
can this be use for usergroups?

ludachris
18 Jan 2006, 19:40
To do this need to add some code to original php file. But now I dont have much time to do this. I think you should do it by your self if you have knowledge about php and SQL

I don't know if I could write the code myself - I would need some help.

Odysseus
24 Aug 2006, 21:48
Hm. It seems that this modification does not work with vB 3.6.0...

rjmjr69
27 Jan 2007, 09:18
Anything like this for 3.6.4

Seb@
26 Dec 2007, 03:24
yes please, if there could be a modification for 3.6.8 this would be splendid.

thanks.

hoangminh
07 May 2009, 11:11
Hi,
I've just updated to make it work on 3.8 at http://www.vbulletin.org/forum/showthread.php?p=1806275

s8glive
07 May 2009, 16:18
Hi,
I've just updated to make it work on 3.8 at http://www.vbulletin.org/forum/showthread.php?p=1806275

it does not work i tested it

lm3a.net
20 May 2009, 09:34
that's good

thanks

letsjoy
16 Aug 2011, 01:36
Please make plugin for vB 4.x...
Thanks