The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Default Sigs
Hi Guys,
Is there a way to display default signatures on posts, if a user hasn't set one? Thanks Steven |
#2
|
||||
|
||||
On the hook postbit_display_complete, you could add some PHP Code as a Plugin to test for the existence of a signature, and if it's absent, then put in your code.
For example, PHP Code:
Basically,
On this page,
Save and Reload. Now, in another tab/window, open up a thread with someone who has no signature. Go back to your AdminCP (should still be on the Plugin you created since you saved and reloaded WITHOUT activating it). Now go ahead and choose "Yes" to activate it, then reload your thread, look, and if it works, great! If not, you come back here and say, "DAMN IT, SARTECK, YOU'RE A NINCOMPOOP FOR GIVING ME FALSE INSTRUCTIONS." And then we'll take it from there. EDIT: P.S., setting the Plugin to "No" for it's activity is good if it doesn't work, too, so no one gets errors. |
#3
|
|||
|
|||
Hi Sarteck, looks like a easy solution. But what if I need an auto-signature to be assigned to all members of particular usergroup? Is there a similar easy solution?
|
#4
|
|||
|
|||
DAMN IT, SARTECK, YOU'RE A NINCOMPOOP FOR GIVING ME FALSE INSTRUCTIONS.
And I had thought of a really good plugin name, to say thank you - but I'll tell you it, once/if we get it working :P Thanks for helping btw. |
#5
|
||||
|
||||
@kaype, there is indeed.
You can test for the user belonging to a specific usergroup by adding a little bit to the IF block, like so. :> PHP Code:
@Evertonized, I made a booboo in my code. (Forgive me, it was before I went to bed. XD) There should only be a SINGLE equal sign for assignment. I had you putting, $this->post['signature'] == 'THIS IS A DEFAULT SIGGY!'; It should be, $this->post['signature'] = 'THIS IS A DEFAULT SIGGY!'; |
#6
|
|||
|
|||
Gr8, thanks !
But guess I don't need the below code as I want to force the signature for all users in that group. Code:
else { $this->post['signature'] = 'THIS IS A DEFAULT SIGGY!'; } Also is there a way to set/force this on registration to a certain group? Like all users registering from X location will go into X group and they will will have a preset signature. |
#7
|
||||
|
||||
@kaype, if you want to force the same signature for all users in a group, a slightly different method should be used:
PHP Code:
Forcing it on registration to a certain group is possible, too, but it would require some different methods. It also depends on if you want users to be able to change their signature at a later date. (The method above will not allow them to change their signature while they are a member of that group. Well, more accurately, they can make all the changes they want, but that sig you set will always be what shows up.) |
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
Well, I gotta know what it is you want. XP
You want, upon registration, for users to be placed into a group other than Registered Users? And you want this group to be forced to wear a certain signature? And you want this group to not be able to change their Sigs? Do you want anyone to be ABLE to change their sigs? Does your Administrative staff have to manually move users out of the group in order for them to use sigs normally? |
#10
|
|||||
|
|||||
Quote:
Quote:
Quote:
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|