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)

Dismounted 01-12-2007 10:00 PM

Signature Only Shown Once
 
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. :)

Veer 01-13-2007 11:54 AM

Nice hack :)

tankaya61 01-13-2007 12:09 PM

thanks

TTG 01-13-2007 12:35 PM

Is there any difference between this simple template 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

Quote:

Originally Posted by TTG (Post 1157994)
Is there any difference between this simple template edit and your addition ?

Not really but I prefer this one since it's a product and got a couple of more features.

Quote:

Originally Posted by FunaGuy (Post 1158009)

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

Quote:

Originally Posted by TTG (Post 1157994)
Is there any difference between this simple template edit and your addition ?

Yes, this is user chosen, not forced.
Quote:

Originally Posted by FunaGuy (Post 1158009)

Don't use my edits, find:
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>

Quote:

Originally Posted by letsjoy (Post 1158371)
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

Quote:

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

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. ;)

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

Quote:

Originally Posted by TWTCommish (Post 1198043)
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.


All times are GMT. The time now is 06:19 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
  • Page Generation 0.01261 seconds
  • Memory Usage 1,837KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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