vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Easy Disable/Enable Signature per user (https://vborg.vbsupport.ru/showthread.php?t=102323)

hoangminh 12-05-2005 10:00 PM

Easy Disable/Enable Signature per user
 
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.

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:
Code:


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:
Code:

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

Replace with:
Code:

<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 to receive update of this hack when available
Enjoy.

EasyTarget 12-06-2005 04:47 AM

good idea, thanks.

eNforce 12-06-2005 09:04 AM

Simple yet useful, I like it

Flow Fusion 12-06-2005 11:21 AM

Cool!

Snake 12-06-2005 11:31 AM

Whoa this is great. I have been looking for something like this. Thanks bro.

AWI 12-08-2005 07:44 AM

Very useful thanks man

ludachris 01-18-2006 05:57 PM

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 01-18-2006 06:01 PM

Quote:

Originally Posted by ludachris
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 01-18-2006 06:05 PM

can this be use for usergroups?

ludachris 01-18-2006 06:40 PM

Quote:

Originally Posted by hoangminh
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.


All times are GMT. The time now is 03:11 AM.

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.01109 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (2)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
  • (10)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