![]() |
Add Signature in Non-Signatured Posts?
I noticed that if you post a post/thread (etc) without having a signature and then add a signature in your user cp and make a new post/thread (etc), the signature of course is there. If you look at one of your old post/thread (etc) that was posted before you added your signature, the signature has not been updated their. If you update your signature, the post/thread (etc) with the older signature will be updated but the post/thread (etc) that was made before the signature was made, will never be updated. Is there a mod/hack/ext. (etc) to enable adding signatures to posts that never had signatures?
|
There was by running an SQL query..I saw in another post....
|
In profile.php find this:
Code:
$userdata->set('signature', $signature); Code:
if(empty($vbulletin->userinfo['signature'])) |
Where do you edit this?
|
In your "profile.php" file, located in your forum's root directory. Download it from your FTP, perform the above edits, and then re-upload the file.
|
Thanks for your help.
I downloaded the php, modified it as stated, uploaded it back, refreshed old post with no sig, still no sig. The poster has a sig enabled/set. ?? |
The above edits will only work from this point forward. To show signatures retroactively, perform the following SQL Query:
[sql]UPDATE post SET showsignature = 1 WHERE showsignature = 0;[/sql] |
Just received:
"vBulletin Message You are not authorized to execute SQL queries" Any ideas? |
You can either execute the query through PHPMyAdmin or give yourself permission to execute queries through vBulletin by editing your includes/config.php file.
Search for the following in your includes/config.php file if you wish to do the latter: Code:
****** USERS WITH QUERY RUNNING PERMISSIONS ****** |
Thanks CyberAlien and Kirk, much appreciated, exactly what I needed too!
|
There's a hook now in the profile.php page right after
PHP Code:
Will the hook be good being that its AFTER the bit, not BEFORE it? If so, this would be the permanent fix - Visit your plugin manager, click add new plugin. Product - vbulletin Hook location - profile_updatesignature_complete title - update signatures code - PHP Code:
and remove the code from your profile.php (if you are reading this message, its probably not there anyway) Thoughts? |
You can prevent using the query if there is a hook that is after $signature is defined, but before that line.
|
The hook is directly after:
PHP Code:
You say we can prevent the query if the hook is there. The plugin has the query in it. Please clarify, sorry for any confusion. |
If you can insert code BEFORE that line - you can alter the code and prevent using the query.
|
All times are GMT. The time now is 01:20 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:
|