To do this, edit the plugin 'Set Enabled/Disabled' and replace the whole plugin with:
PHP Code:
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
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 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."
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.
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?