Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Signature Only Shown Once Details »»
Signature Only Shown Once
Version: 1.0, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 01-12-2007 Last Update: Never Installs: 143
Uses Plugins Template Edits
 
No support by the author.

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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-28-2007, 07:20 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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
Reply With Quote
  #23  
Old 01-28-2007, 07:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.
Reply With Quote
  #24  
Old 02-03-2007, 03:19 AM
Merriweather Merriweather is offline
 
Join Date: Nov 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 02-03-2007, 11:42 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Field ID is specified when you create your custom field, it should list it's field id after you create it.
Reply With Quote
  #26  
Old 02-17-2007, 03:25 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rjmjr69 View Post
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!
Reply With Quote
  #27  
Old 02-17-2007, 03:28 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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"
Reply With Quote
  #28  
Old 02-18-2007, 07:59 PM
stomph stomph is offline
 
Join Date: Dec 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #29  
Old 02-23-2007, 03:38 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #30  
Old 02-23-2007, 05:03 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might do something like that if I get some time.
Reply With Quote
  #31  
Old 02-23-2007, 05:08 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it would be the best to make a new hack for that.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04863 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete