vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   signature always on, always off, etc. (https://vborg.vbsupport.ru/showthread.php?t=27602)

Gutspiller 09-07-2001 06:52 PM

My users want the ability to turn their sigs on or off in their user CP. I search pretty thoroughly and I couldn't find anything that actually gave the poster the option, I only found "hacks" that did it globally, but not for each user.

I was then thinking it might be cool if it was possible to make it so that it only showed each persons sig, once per thread.

Can anybody help me with this? This would be a really cool feature. If I somehow missed it in my search through these forums, please post a link to it.

any help on this is appreciated.

Thanks!

Mike Sullivan 09-07-2001 07:48 PM

If you have a sig entered, the box will be checked; otherwise it won't.

To change that behavior (and add the once a thread thing), you'll need to post a request in the hacks forum.... or I'll just move it there now.

Gutspiller 09-07-2001 07:59 PM

Thanks Smithers.

BTW, one must wonder why you pick the one gay character in the show. :D ;)

Mike Sullivan 09-07-2001 08:31 PM

That definitely wasn't the reason why. :p

Admin 09-08-2001 06:42 AM

Ok this works, but didn't test it enough to see if there are any bugs.

In newreply.php, replace
PHP Code:

    if ($bbuserinfo[signature]!="") {
      
$signaturechecked="CHECKED";
    } 

with
PHP Code:

    if ($bbuserinfo[signature]!="" and !$DB_site->query_first("SELECT postid FROM post WHERE userid='$bbuserinfo[userid]' AND threadid='$threadid' AND showsignature='1'")) {
      
$signaturechecked="CHECKED";
    } 


Gutspiller 09-09-2001 01:31 AM

seems to work so far. If I have any probs I will let you know. :) Nice job.

KuraFire 09-26-2001 09:03 AM

I implemented it as well (on the Couch) and it works like an absolute charm! Awesome job, well done!

[high]* 1337Devil = very happy about this hack, for many of his members are too lazy to turn their siggy off :)[/high]

Admin 09-26-2001 09:07 AM

Thank you for your thank you's. :)


All times are GMT. The time now is 10:59 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.01054 seconds
  • Memory Usage 1,721KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete