vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Multiple Signatures Hack. (https://vborg.vbsupport.ru/showthread.php?t=59588)

rake 01-04-2004 02:49 PM

Is the signature editor still compatible with the editor inferface settings in vbulletin?
Nice hack. My members will like it. :)

FASherman 01-04-2004 08:22 PM

Quote:

Originally Posted by the_sisko
Make an input text field to give the sigs a title an display the titel instead of sig 1, sig2, ..., sigX

I agree. I'd rather pick signatures based on a description rather than a number. Instead of picking 1,2,3,4, etc, I'd rather pick between default, sports, politics, humorous.

Other than that, damned nice hack!

C.Birch 01-04-2004 09:25 PM

something i like to see is a drop down in user cp where a user can pick one to show if they dont pick. i know theres the use last edited bit but i mean let them use 1, 2 or 3 just incase they forget to pick.

because alot of my users are forgetting to pick and having no sign showing.

hwtan 01-05-2004 04:08 AM

Updated! Now support signature titles.

C.Birch, run this SQL command (assuming no table prefix):

PHP Code:

UPDATE userfield SET fieldX 'Last Edited Signature' WHERE fieldX=''

This will reset users with no default setting to use the last edited signature in their profile, which by default, is the first signature.

LeonHartHVA 01-08-2004 09:44 AM

I like this hack very much. Thanks hwtan

Boofo 01-08-2004 10:03 AM

Quote:

Originally Posted by hwtan
Updated! Now support signature titles.

C.Birch, run this SQL command (assuming no table prefix):

PHP Code:

UPDATE userfield SET fieldX 'Last Edited Signature' WHERE fieldX=''

This will reset users with no default setting to use the last edited signature in their profile, which by default, is the first signature.

Can we set this up to only allow certain usergroups or users to use it? I'd like to set it up so only the staff can use it (or the Admin).

Also, can we get a checkbox in the postbit to allow turning it off for that message (like it is now)? If it is checked, it will use whatever you have in the drop down showing or you can change it) and if the box is unchecked it will show no sig at all in that message.

gmarik 01-08-2004 05:28 PM

Nice and neede one - I give you thanks.

hwtan 01-08-2004 11:46 PM

Quote:

Originally Posted by Boofo
Can we set this up to only allow certain usergroups or users to use it? I'd like to set it up so only the staff can use it (or the Admin).

Also, can we get a checkbox in the postbit to allow turning it off for that message (like it is now)? If it is checked, it will use whatever you have in the drop down showing or you can change it) and if the box is unchecked it will show no sig at all in that message.

1. A simple way to do is would be to use template conditionals to determine if the user is belongs to a group allowed to use the multi-signatures hack and if not so display the unmodified version of the template.

Something like:
PHP Code:

<if condition="is_member_of($bbuserinfo[userid]$powerusergid))">
  ... 
modified version of the template follows
<else />
  .. 
original template 
</if> 

2. There's a 'No Signature' option in the combo box. When that option is selected, no signature will be shown for the particular message.

krash123 01-17-2004 12:49 AM

This could be fun, I'm gonna try it out tommorow.

gmarik 01-17-2004 06:23 AM

<a href="https://vborg.vbsupport.ru/member.php?u=34866" target="_blank">krash123</a> vbmenu_register("postmenu_463642", true); would be really interesting


All times are GMT. The time now is 06:59 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.01814 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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