![]() |
Multiple Signatures Hack.
Allows user to have multiple signatures.
The user can choose which signature to use for a post or private message or have a signature randomly displayed with the post. Does not require additional queries for normal usage. ################################################## ## Templates to modify (6): modifysignature, editpost, newreply, newthread, showthread_quickreply, pm_newpm Files to modify (2): ./profile.php, ./includes/functions_showthread.php ################################################## ## # Revision History: ################################################## ## 04 Jan 2004, 0400hrs (GMT+8) Initial Beta Release (for vB3 RC1) 04 Jan 2004, 0500hrs (GMT+8) Fixed: When editing signature with WYSIWYG editor, changing the selected signature does not update the WYSIWYG with the signature. 04 Jan 2004, 1200hrs (GMT+8) Fixed: Miscellanous typo in this document. Fixed: Empty signature shown in post/PM after user removed signature. Fixed: Disallow user from selecting an empty signature. Fixed: Removed hardcoded 'No' with $vbphrase[no]. Changed:Editing a post that has a empty signature now automatically remove the signature. New: Now remember user's last edited signature. 04 Jan 2004, 1630hrs (GMT+8) Fixed: Signature showing up only once per thread. New: Random Signatures. New: User may choose the default signature type (random/last edited) for new posts and private messages. 05 Jan 2004, 1400hrs (GMT+8) Changed:Order of installation to allow updates of default values. Changed:Loop instead of if/else statements for new default signature. Changed:Use $vbphrase[none] instead of $vbphrase[no]. Changed:Use of $vbphrase[sigopt_*] for template conditionals to allow changes to be made to the option titles without having to re-edit the templates. New: Use of signature titles instead of numbers. 06 Jan 2004, 1130hrs (GMT+8) Fixed: More typos: $vbphrase[signopt_none] to $vbphrase[sigopt_none] 'Random Signature' in pm_newpm to $vbphrase[sigopt_random] Changed:Renamed $vbphrase[none] --> $vbphrase[sig_none] Changed:Renamed $vbphrase[sigrand] --> $vbphrase[sig_random] Changed:User Profile Options to use a dropdown box Changed:Comments to delimits code changes in changed php files. New: Signature editor open with last edited signature. New: Phrase $vbphrase[sigopt_first] New: Now with option to allow user to use his/her first signature as the default signature. New: Tested with vB3 RC2 |
thanks for the hack :D I might use it not sure yet
|
Is this because someone asked for it? I saw a thread thats all.
Nice work mate ill be sure to install this soon as it is very handy. Congratulations and thanks. |
Nice *install
|
very nice...could you modify this some more though, and make a random sig option?
|
Wow this looks great :)!
|
Nice Hack, I think I will install this!
|
Thanks for the comments :)
MindTrix: Yes, this was written because people asked for it in the Modification requests forum. idwf: Modification in what way? Random sig is not practical at the moment. |
Couldn't you just have an option which says Random and use the MySQL rand function?
|
useing quick reply now sign shows rest works fine even if theres a few $'s missing in the install log ;)
|
I'd like a random sig option too.
|
Not sure if you realize it, but there is typo in your instructions
This: ################################################## ##################### # # AdminCP: Under Style & Template, Search In Template, Search for text: cp_signature, Search In Title Only: No ################################################## ##################### shouldn't it be cb_signature? Thre me off for a while untill i changed it Paratek smacks the *install* My Users are loving this...Nice Hack |
nice! i was looking for this :p
thanks for making it man! [high]* MGM clicks install [/high] MGM out |
C.Birch, Paratek: sorry for the mistakes. Yeap, it's cb_signature. Fixed the missing '$'.
Now supports random signatures :) For those whom installed this, please feedback if you encounter any problem. Will do a full release if no major bugs are reported. |
Maybe in the drop down to pick the sig you could have the fist so many characters show up so we can chnage to another sig if we want to. It can still stay random, just gives us an idea of what sig will display. Does that make any sense? ;)
|
Quote:
|
updated all working great here
|
Looking good. :)
*Installs |
Make an input text field to give the sigs a title an display the titel instead of sig 1, sig2, ..., sigX
|
How would you do that, sir? ;)
|
Is the signature editor still compatible with the editor inferface settings in vbulletin?
Nice hack. My members will like it. :) |
Quote:
Other than that, damned nice hack! |
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. |
Updated! Now support signature titles.
C.Birch, run this SQL command (assuming no table prefix): PHP Code:
|
I like this hack very much. Thanks hwtan
|
Quote:
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. |
Nice and neede one - I give you thanks.
|
Quote:
Something like: PHP Code:
|
This could be fun, I'm gonna try it out tommorow.
|
<a href="https://vborg.vbsupport.ru/member.php?u=34866" target="_blank">krash123</a> vbmenu_register("postmenu_463642", true); would be really interesting
|
FIXED NOW nevermind but this mods instuctions are too unclear to follow they need rewriting out like the thing about the "N" and the insert fields with N in then and the only thing seperating them is .....
|
will add when the hacks out of beta and when i have my forum on Vb gold
|
Quote:
Sorry I'm not smart enough to figure this out without your help. :ermm: |
i'd love to use this hack, but in the txt file i have (most recent on, downloaded today) the final phrase is missing a var name and it wont let me add it without a var name, if anyone has this installed on rc4, would you care to share with me how you got it up and running?
|
0k i install it
just want to know how can i get 2+ signatures? |
ya what's the vartitle for the last phrase??
|
when u'll have final release :)
|
Quote:
How can I fix it |
can someone answer my question?
|
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']); |
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|