View Full Version : Show Thread Enhancements - Signature Only Shown Once
Dismounted
01-12-2007, 10:00 PM
Signature Only Shown Once
Description:
This mod only shows a signature once per page if user sets option to yes. Option is in User CP -> Edit Oprions.
Request:
Requested By Snake via PM.
Installation:
All the installation information is in the package.
Changes:
1 Plugin
3 Phrases
Change Log:
13/01/2007 - Version 1.0
- Initial Release
Dismounted
01-13-2007, 08:30 AM
/me Reserves
Snake
01-13-2007, 10:38 AM
Holy Jesus! Dismounted, I really don't know what to say. You have filled up my 2 mod requests within just a few minutes. Man you're really something. Thank you very much! :D
projectego
01-13-2007, 10:46 AM
Thanks, Dismounted. :)
tankaya61
01-13-2007, 12:09 PM
thanks
Is there any difference between this simple template (https://vborg.vbsupport.ru/showthread.php?t=99127) edit and your addition ?
FunaGuy
01-13-2007, 01:07 PM
It is not working with https://vborg.vbsupport.ru/showthread.php?t=135493
KURTZ
01-13-2007, 01:11 PM
interesting, maybe i use this hack only if you build some features like the Admin can force an usergroup to post their sign only once through ACP ...
Snake
01-13-2007, 01:43 PM
Is there any difference between this simple template (https://vborg.vbsupport.ru/showthread.php?t=99127) edit and your addition ? Not really but I prefer this one since it's a product and got a couple of more features.
It is not working with https://vborg.vbsupport.ru/showthread.php?t=135493 Exactly so you need to find out which hack that's causing the issue or better yet, just contact about authors.
Robru
01-13-2007, 02:20 PM
Shows this hack the signature on the first or the last post? Or can we choose for it...
letsjoy
01-13-2007, 09:28 PM
not working for me
Dismounted
01-14-2007, 02:41 AM
Is there any difference between this simple template (https://vborg.vbsupport.ru/showthread.php?t=99127) edit and your addition ?
Yes, this is user chosen, not forced.
It is not working with https://vborg.vbsupport.ru/showthread.php?t=135493
Don't use my edits, find:
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
<else />
$scr_nosig
</if>
Replace With:
<if condition="$post['signature']">
<if condition="$firstsig == 0">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<else />
$scr_nosig
</if>
not working for me
Did you apply edits to postbit and postbit_leagcy?
grecostimpy
01-15-2007, 05:49 PM
Awesome! My members were asking for this just this week! Installed!
Added note to anyone else before they say it is not working:
If someone replies using "Quick Reply", their signature will show up a second time until the page is refreshed.
Snake
01-16-2007, 07:11 AM
Yeah I have just noticed that as well. Could it be a bug?
Dismounted
01-16-2007, 07:22 AM
No, it is not a bug. It's just the way vBulletin processes things. I'll try find a solution though.
Gbml2u
01-17-2007, 05:13 AM
I cant adjust the settings although i hack like what you show. Please help me, thanks!
https://vborg.vbsupport.ru/
Dismounted
01-17-2007, 06:57 AM
Errr, what's wrong? Read the ReadMe file.....
rjmjr69
01-27-2007, 07:54 AM
WOW man I've been wanting something like this for a long time. I think every forum should have this. Some forums I visit have members with sig's that are out of control. Video's playing extra large pictures. I feel bad for dial up users which there are many still out there. Well thanks for a great mod.
Oh one thing is there any way possible to set this as the default or even only option for new members as well as present members?
If not can this be an added feature in the next release or something?
Dismounted
01-28-2007, 03:23 AM
Oh one thing is there any way possible to set this as the default or even only option for new members as well as present members?
To do this, edit the plugin 'Set Enabled/Disabled' and replace the whole plugin with:
global $vbulletin, $sig_shown;
$field = 'field' . $vbulletin->options['signature_only_shown_once_field'];
if (!isset($sig_shown[$post['userid']]) OR $vbulletin->userinfo[$field] != 'Yes')
{
$firstsig = 0;
if ($post['signature'])
{
if ($vbulletin->userinfo[$field] == 'Yes' OR $vbulletin->userinfo[$field] == '')
{
$sig_shown[$post['userid']] = 1;
}
}
}
else
{
$firstsig = 1;
}
Then edit the custom field and put 'Yes' as the top option.
rjmjr69
01-28-2007, 07:20 AM
To do this, edit the plugin 'Set Enabled/Disabled' and replace the whole plugin with:
global $vbulletin, $sig_shown;
$field = 'field' . $vbulletin->options['signature_only_shown_once_field'];
if (!isset($sig_shown[$post['userid']]) OR $vbulletin->userinfo[$field] != 'Yes')
{
$firstsig = 0;
if ($post['signature'])
{
if ($vbulletin->userinfo[$field] == 'Yes' OR $vbulletin->userinfo[$field] == '')
{
$sig_shown[$post['userid']] = 1;
}
}
}
else
{
$firstsig = 1;
}
Then edit the custom field and put 'Yes' as the top option.
Thank you so very much. That was easy enough. What if I remove the answer NO will that keep them from Selecting NO?
Well I tried it and it worked. So I guess that if you install with this modification then you can set it so the members can only select yes and this way keep them from displaying the sig in each reply. I know there is a add on to do this but I rather have the control like this incase I decide to allow some to use it
Dismounted
01-28-2007, 07:23 AM
Yes.
Merriweather
02-03-2007, 03:19 AM
Forgive me for not understanding, but how do I know what the Field ID should be?
Thanks!
Nevermind, I left it blank and it works fine.
Dismounted
02-03-2007, 11:42 PM
Field ID is specified when you create your custom field, it should list it's field id after you create it.
Tralala
02-17-2007, 03:25 PM
Some forums I visit have members with sig's that are out of control. Video's playing extra large pictures. I feel bad for dial up users which there are many still out there.
Just FYI, if a poster (with a video or large picture sig) has many posts on a page, it wouldn't be any slower for a dial-up user to download the page than if that same poster only had one post on the page. It's not like the page has to download the same exact thing every time. It downloads it once, and just displays it multiple times.
(IE: if I presented an HTML page showing one single image 20 times, it doesn't download 20 copies of that file for a reader, and the page doesn't take 20 times longer to download. It downloads that image once, the web browser is simply told to display it 20 times.)
I still like this (user-configurable) signature option, however, because it can make the page easier to read and cuts down on the sig clutter you are talking about. But it won't speed up downloading time for dial-up users, per se. It may speed up browser window rendering speed. But not downloading time.
Just wanted to make that clear.
That said, I have switched over from the Zachariah's mod (https://vborg.vbsupport.ru/showthread.php?t=99127) over to this (user-configurable) one. I like giving my users the choice, and I (personally) like the cleaner display afforded by "one sig per page."
Thanks for sharing, Dismounted!
Tralala
02-17-2007, 03:28 PM
Field ID is specified when you create your custom field, it should list it's field id after you create it.
This confused me a bit too... the ReadMe.htm simply says "Adjust the settings to meet your needs." For a future version you may want to elaborate in the install instructions.
Would like to see this work with UserGroup Permissions (ie: which groups can and cannot change the preference.) As well as an AdminCP way to easily/quickly toggle the default selection.
Thanks again!
/clicks "installed"
stomph
02-18-2007, 07:59 PM
I have a german speaking forum and thus the options in UserCP are 'Ja' and 'Nein' for 'Yes' and 'No'...
I had to replace 'Yes' with 'Ja' in the plugin 'Set Enabled/Disabled' and now it works :)
Thanks for the hack!
Tralala
02-23-2007, 03:38 AM
I'd love to give users the ability to prevent the display of individual signatures, like say, signatures that annoy them. Give them a panel in UserCP to enter the usernames of signatures to block.
This way insistent members can go crazy with their sig, include graphics in their sig (within whatever sig limits are in place on the forum) and annoyed users could individually block any sigs they want if they get annoyed. And everybody wins.
Is that within the scope of this hack as a feature idea?
Or should I request something like this elsewhere?
Dismounted
02-23-2007, 05:03 AM
I might do something like that if I get some time.
Snake
02-23-2007, 05:08 PM
I think it would be the best to make a new hack for that. ;)
Tralala
02-23-2007, 08:13 PM
For sure. But certainly would be appreciated.... I know lots and lots of sites who'd install and love something like that immediately!
TWTCommish
03-05-2007, 01:25 AM
Installed. Everything shows up as expected, except that my choice on the User Options page simply isn't saved. Anyone else having this problem?
Dismounted
03-05-2007, 03:52 AM
That would be a vBulletin problem, as this hack doesn't handle saving the option.
TWTCommish
03-05-2007, 06:59 AM
I don't think I explained myself very well; it doesn't appear to do either. It doesn't "save" the option they've made, nor does it achieve the desired effect.
That aside, though, why exactly wouldn't it save the option? Other user profile fields save. I don't see why this would be different.
Dismounted
03-06-2007, 05:08 AM
I have no idea, it'd probably be better to post into vBulletin.com's forum.
TWTCommish
03-06-2007, 11:57 PM
They don't offer support for hacks.
Thanks anyway. I would've liked to have used this, but it seems I can't.
Dismounted
03-07-2007, 04:57 AM
It isn't support for a hack, it's support for their own software as you are having a problem saving a profile field.
TWTCommish
03-07-2007, 02:47 PM
All my profile fields save fine, except the one added via this hack. While I suppose it is technically possible that the problem is with their own software, then, that's one remarkable coincidence.
Snake
03-07-2007, 04:18 PM
Then you have done something wrong and I'm sure of it. Go through the installation one more time and see your mistakes.
Tralala
03-07-2007, 04:19 PM
All my profile fields save fine, except the one added via this hack. While I suppose it is technically possible that the problem is with their own software, then, that's one remarkable coincidence.
And yet, this same add-on works fine for many, many other users (myself included.) I'll follow Snake's response and suggest you either installed it incorrectly, or have some other hack that's conflicting with it.
da420
03-07-2007, 05:01 PM
All my profile fields save fine, except the one added via this hack. While I suppose it is technically possible that the problem is with their own software, then, that's one remarkable coincidence.
This hack doesn't add a profile field. You add it via the software manually so it would be nothing wrong with this hack, but with the vBulletin software itself, or another hack that seems to be conflicting with your custom profile fields.
BTW, I have this installed, and it works wonderfully. Thanks!
TWTCommish
03-08-2007, 07:24 PM
Wow, what ridiculous hostility. I just ran through the installation again, and the exact same problem occurs; the option does not save, nor has it produced any effect on my threads.
I'm using the original profile.php, too, and have double-checked everything.
Look, I don't know why it's not working, and apparently, neither do any of you. If your response to my pointing my problems out is to get touchy and defensive, then it's probably wise that I look elsewhere. Thanks anyway.
Bounce
03-11-2007, 02:09 AM
Nice idea, can it be usergroup set where admins and maybe say VIP members will have there sigs showing in all of the posts ? But "normal" users will not
Not uploaded zip yet , just enquiring :D
Dismounted
03-11-2007, 02:46 AM
Yes, it is possible by adding an extra conditional to the plugin.
Bounce
03-13-2007, 12:21 AM
Yes, it is possible by adding an extra conditional to the plugin.
which is lol :up: :D
Black Hole
04-06-2007, 06:31 PM
I've loaded this hack, but it only works for members who manually choose the YES option.
Is there a way within the Admin CP to adjust this setting for all current members?
I have not loaded the template hack that was posted elsewhere....I'd rather use this plugin if possible.
Thanks,
Matt.
Tralala
04-06-2007, 06:32 PM
I've loaded this hack, but it only works for members who manually choose the YES option.
Is there a way within the Admin CP to adjust this setting for all current members?
I have not loaded the template hack that was posted elsewhere....I'd rather use this plugin if possible.
Thanks,
Matt.
Scroll up to post #21.
Black Hole
04-06-2007, 07:00 PM
Thanks...
I did edit that code earlier, but while troubleshooting I found another error after that.
I edited the code from post 21 again, and now it's working. :D
THANKS GUYS!!!!!
Tralala
04-06-2007, 07:08 PM
Thanks...
I did edit that code earlier, but while troubleshooting I found another error after that.
I edited the code from post 21 again, and now it's working. :D
THANKS GUYS!!!!!
Did you have to make changes to make it work, or was it just "trying a 2nd time" that did it?
If you had to make an edit, please share it here to help other installers.
Black Hole
04-16-2007, 01:52 PM
Did you have to make changes to make it work, or was it just "trying a 2nd time" that did it?
If you had to make an edit, please share it here to help other installers.
I think just trying a 2nd time...
ALTHOUGH, this hack works for me, but not for other users. :confused:
If I log in as one of my moderators or super mods, they see each and every signature, although when I'm logged in as myself, I only see the first sig.
Any ideas about that one???:confused:
Tralala
04-16-2007, 02:02 PM
Silly question, but for the other users, have they/you set the "Sigs only shown once" option (in User CP -> Edit Options) to "yes?"
Black Hole
04-17-2007, 01:09 AM
Silly question, but for the other users, have they/you set the "Sigs only shown once" option (in User CP -> Edit Options) to "yes?"
Yes....I made this change.
Everything works fine with my log in, but it doesn't work with other usergroups. :confused:
Masala4india
04-22-2007, 12:36 PM
I cant adjust the settings although i hack like what you show. Please help me, thanks!
https://vborg.vbsupport.ru/
same error i m getting. please help me and please tell me code i have to use.
Find:
<if condition="$post['signature'] AND $firstsig == 0">
Replace With:
<if condition="$post['signature']">
or
HTML Code:
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
<else />
$scr_nosig
</if>Replace With:
HTML Code:
<if condition="$post['signature']">
<if condition="$firstsig == 0">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<else />
$scr_nosig
</if>
Dismounted
04-22-2007, 12:54 PM
same error i m getting. please help me and please tell me code i have to use.
Find:
<if condition="$post['signature'] AND $firstsig == 0">
Replace With:
<if condition="$post['signature']">
or
HTML Code:
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
<else />
$scr_nosig
</if>Replace With:
HTML Code:
<if condition="$post['signature']">
<if condition="$firstsig == 0">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<else />
$scr_nosig
</if>
Use the instructions in the Readme...
As for the option, just input the field number of the field that you created. It's not really that hard.
Masala4india
04-23-2007, 12:17 PM
Thanks. i will try again..
02TrueBlu
04-26-2007, 05:26 PM
http://img207.imageshack.us/img207/7048/untitleddu0.jpg
i got this same picture and its not working
Dismounted
04-27-2007, 06:12 AM
You have to enter the NUMBER of the field.
grandma2
06-25-2007, 03:06 AM
Maybe just a simple error. Be sure to put the Field ID in the options box. You possibly have the display order # instead. {{ I did }}
Kinneas
09-13-2007, 09:47 AM
Excellent mod.
*Installs*
letsjoy
12-04-2007, 07:50 PM
working fine for logined members but not for guests how to enable it for guests ?
Dismounted
12-09-2007, 02:12 PM
This modification is for members to choose an option, guests can't choose anything, therefore it will not work for guests.
shrooki
12-11-2007, 02:52 AM
I'm an admin and i see every single signature, even though i selected it to "yes". Is this normal?
Very simple to install dismounted! Thanks!
Dark_Sirius
12-11-2007, 06:06 AM
Holy hell. That is the cleanest looking install guide I have EVER seen. Great addon btw. :D
Dismounted
12-13-2007, 05:03 AM
I'm an admin and i see every single signature, even though i selected it to "yes". Is this normal?
Very simple to install dismounted! Thanks!
You will see the signature of a user's first post in that thread. All posts after a single user's first will not show the signature.
Holy hell. That is the cleanest looking install guide I have EVER seen. Great addon btw. :D
You should see my updated ReadMe in a few of my other mods.
kaptanblack
12-13-2007, 11:44 AM
Thanks
larrydavidow
01-06-2008, 04:48 AM
This mod also didn't work for me until I selected "No" and then "Yes" again in my profile.
Catziggy
01-06-2008, 02:25 PM
^^^ Same with me.
Is there something we can do to initialise it straight away.
letsjoy
01-06-2008, 09:08 PM
how to enable it for guests ?
Thanks
Dismounted
01-07-2008, 07:42 AM
^^^ Same with me.
Is there something we can do to initialise it straight away.
It should start as "No".
how to enable it for guests ?
Thanks
You can't as they don't have their own control panel.
Big Boss
01-23-2008, 12:10 PM
Thanks! Always been a fan of this mod.
sheknows_com
02-22-2008, 08:42 PM
When I doulble click on it in the vBulletin options, it ONLY lets me choose what Field ID to associate it with, no other options?
Any suggestions?
Dismounted
02-23-2008, 11:07 AM
Have you read the ReadMe?
rnixon
03-01-2008, 09:04 AM
My users asked for this, thanks for making it easy to oblige.
We all like having a choice about these things, cheers for writing it that way.
CHPMustang
05-08-2008, 06:28 PM
Dismounted,you going to update this great mod to work with 3.7 eventually?
Dismounted
05-10-2008, 05:15 AM
Eventually, yes.
CHPMustang
05-10-2008, 09:32 PM
Eventually, yes.
Excellent deal! I'll stay tuned! :cool:
mrahul
05-15-2008, 09:46 AM
releases for 3.7.x ?
Dismounted
05-17-2008, 06:54 AM
Have you tried to see if it works on 3.7?
mrahul
05-26-2008, 06:47 AM
I have not yet tried but I don't want complications so just making a future confirmation
letsjoy
06-15-2008, 08:48 PM
It,ll work as optimization if it works for guests
students_forum
10-13-2008, 10:07 PM
I can verify that it works very nicely on 3.7.3 :)
realmr
10-20-2008, 08:17 AM
doesn't work on 3.7.3 patch1
Jaxel
11-10-2008, 11:12 PM
I prefer to use checkboxes for this option. instead of a dropdown menu... works in v3.7.4 with the following code:
global $vbulletin, $sig_shown;
$field = 'field' . $vbulletin->options['signature_only_shown_once_field'];
if (!isset($sig_shown[$post['userid']]) OR !($vbulletin->userinfo[$field]))
{
$firstsig = 0;
if ($post['signature'] AND ($vbulletin->userinfo[$field]))
{
$sig_shown[$post['userid']] = 1;
}
}
else
{
$firstsig = 1;
}
edytwinky
01-05-2009, 01:51 PM
Any confirmation if it works on 3.7.4?
edytwinky
01-05-2009, 10:38 PM
Just confirmed that it does not work with 3.7.4
Dismounted
01-06-2009, 02:43 AM
The user up there (post #83), said that it worked on 3.7.3, so there should be no reason why it wouldn't work on 3.7.4. Are you sure you're installing it properly?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.