The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Signatures.
Is there, or can someone create a mod that forces users to have a signature, as soon as they register? I couldnt care less if its "signature" or " ", as long as there is something automatically there.
I want this very badly, as it would solve the "no signature" problem in old posts. |
#2
|
||||
|
||||
Pretty tacky way, but I guess you could just replace:
postbit template: Code:
<if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> Code:
<if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> <else /> <!-- no sig --> <div> __________________<br /> </div> <!-- / no sig --> </if> |
#3
|
|||
|
|||
Correct, thats is what I want. Since im no wiz at this, I figured it would be possible to just completely force a signature (real signature, not a replacement, but thanks and kudos), so when they change it after posting it would be updated.
|
#4
|
||||
|
||||
Alright- I think I got most of what you need working here. Before you do anything, please please please make a backup of your database; your post table at the least.
First of all... In SHOWTHREAD, replace: Code:
<if condition="$bbuserinfo['signature']"> <div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div> </if> Code:
<input type="hidden" name="signature" value="1" id="cb_signature" /> Code:
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if> Code:
<input type="hidden" name="signature" value="1" id="cb_signature" /> Code:
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if> Code:
<input type="hidden" name="signature" value="1" id="cb_signature" /> Code:
<if condition="$bbuserinfo['signature']"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if> Code:
<input type="hidden" name="signature" value="1" id="cb_signature" /> All we're doing is replacing all 0's with 1's in the showsignature field in the post table. You can do that via "Execute SQL Query" of the adminCP. In Manual Query, enter this: Code:
UPDATE post SET showsignature='1' WHERE showsignature='0' Make sense? After that, you should be all good to go. They won't be able to select no signature anymore, and all posts to date will show signatures. =D Any questions? Let me know. Feel free to use my messengers as well if you need quicker help. |
#5
|
|||
|
|||
If you were a woman, I would take you out to eat.
I dont remember exactly what else came up when I searched the templates, but i think one was "userinfraction", and there was some other one also, so I went ahead and replaced it there also. [edit] it was "edit post". Ahh the irony... |
#6
|
||||
|
||||
Haha. Yeah. What you're replacing is basically the same thing everywhere. I just like being specific as that's how I like people talking to me. It's never my goal to make someone feel small. I'd just rather explain everything as best as I can the first time so they've understood what needs to be done.
Again, if you need anymore help, let me know. =D Glad it works for ya. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|