vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Signature Only Shown Once (https://vborg.vbsupport.ru/showthread.php?t=136364)

rjmjr69 01-28-2007 07:20 AM

Quote:

Originally Posted by Dismounted (Post 1168748)
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

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

Quote:

Originally Posted by rjmjr69 (Post 1168225)
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."

Thanks for sharing, Dismounted!

Tralala 02-17-2007 03:28 PM

Quote:

Originally Posted by Dismounted (Post 1174006)
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. ;)


All times are GMT. The time now is 11:03 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
  • Page Generation 0.01196 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete