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)

weaver 05-27-2004 06:48 PM

Looks like a nice one but I'll wait til it's out of Beta. I think it's a great idea for a hack. :)

Sanity 07-31-2004 12:26 PM

I got a parse error in functions_showthread. This piece of code:

Sry, didnt see the posting above :nervous:

Sanity 07-31-2004 12:57 PM

My fault, all errors fixed.

weaver 08-02-2004 02:03 PM

great hack :)

weaver 08-02-2004 02:12 PM

Quote:

Originally Posted by Sulaiti
Fix :nervous:

Phrase Type: User tool (global)
Varname:
Text: Signature Title

will be :

Phrase Type: User tool (global)
Varname: signature_title
Text: Signature Title


for vBulletin Version 3.0.1

find :

/includes/functions_showthread.php


$post['signature'] = parse_bbcode($post['signature' . $post[showsignature], 'nonforum', $vboptions['allowsmilies']);


Change to :

$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);

Thanks very much! Maybe the install instructions should be updated to reflect this? It would have saved me a lot of stress! :)

Reeve of shinra 08-03-2004 03:52 AM

For anyone using this custom usergroups:

Did you also wrap the edit from hwtan around the replacents for:

PHP Code:

<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label


Berethorn 10-11-2004 12:30 AM

*Installed* After some hassle. The instructions could be a bit clearer, but the hack is very good.

Things that would be great: The ability to only allow admin or other user groups to use the random sig, or choose their sig. I can see this being abused. If people change large images and stuff, it will confuse things easily. It's much better if the only thing that is randomized is a simple text quote. :)

Talisman 10-11-2004 03:23 AM

What a nice hack.. thks! I'd like to install this on my test board, but I need a little help adding some conditionals to the code.

1 - If member is in the admin or mod usergroups, they get to use multiple sigs. That's a nice touch.

2 - If you have contributing members in some "premium" usergroup, they should have this, too. That's a useful perk to offer people who've actually donated money to support your site.

3 - Members of an age-restricted/adult-only usergroup with access to private areas could use an alternate sig inside "naughty" forums.... but those sigs wouldn't be appropriate in the more public forums where they would be seen by all the other members.

How would I set random/selectable conditions based on usergroup ID -- AND -- restrict certain (adult oriented) sigs according to specified forum IDs?

integra99 10-12-2004 04:48 AM

I installed this hack, but edited it to my needs. I have it set to select from 3 signature (1,2,3), removed the 'N' signature (not sure what that is). Also, the random function would not work for me whatever I tried to do.

integra99 10-13-2004 06:24 PM

Any idea how to integrate this with the AdminCP so I don't have to use phpMyAdmin everytime I have to change someones signature?


All times are GMT. The time now is 11:48 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.03605 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
  • (1)bbcode_php_printable
  • (1)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