![]() |
nice work, thank you..
|
very cool, thanks for your efforts!
|
Wonderful mod!
Now, I'm trying to find a way to have this be displayed only if a signature is quite long. Any way to set a condition like "Signature Length > 500"? |
Yes and no... It would be fairly easy to count the characters in the plugin but with BBCode you could have 1000 characters in the signature but it only displays a short 100 of them as actual text.
You could filter out the BBCode but it is more difficult. Worse is that in my experience it's images which take up a lot of room, not so much text, and there is no way to check the size of the image each time it is loaded. There was a thread somewhere here on a mod or template edit that allowed for a max signature height in pixels, and anything longer than that it would show a scrollbar so it didn't take up the whole page. Here is the link actually: https://vborg.vbsupport.ru/showthrea...68#post2085268 |
Thanks Joe, I saw that mod the other day as well.
Would you be able to share the count to count the characters? I realize the BBCode can change what's displayed, but I'm still interested in how to do it. I don't allow graphics in the signatures, so that's not a problem. |
In a plugin on the postbit_display_complete hook the signature text (already converted to HTML) is stored in:
Code:
$post['signature'] PHP Code:
PHP Code:
Code:
<vb:if condition="$post[posts] < 10"> Code:
<vb:if condition="$post['bigsig']"> |
Awesome, thank you so much. I just edited the "postbit_display_complete" file (took a bit for a Newbie to find it), changed the code, and all is working perfectly!
|
All times are GMT. The time now is 08: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|