vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Advanced Signature (https://vborg.vbsupport.ru/showthread.php?t=182394)

kaB00M 06-12-2008 10:00 PM

Advanced Signature
 
This modification is designed for use on forums where there is a large number of users or a board that has limited hosting re-sources. With this hack the signature can be limited to selected options so that valuable mySQL space is not used.

This hack uses the in-built profile field script provided by vBulletin with a small bit of code editing.

This hack can also be used for more than just a signature. You could also use this script on web-hosting forums ? Computer forums. If you want to make the input private to only a few people then add this code to the beginning of your code.

Code:

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>
With this code only members in the groups 1, 2 and 3 will be able to see the signature. This is good if you want to use this for a hosting forum so only technicians or admin members can see the details. Great if you want the user to input there password and cPanel username.

Gray Matter 06-13-2008 11:37 PM

Template conditionals should use $bbuserinfo, not $vbulletin->userinfo. :)

veenuisthebest 06-14-2008 02:23 AM

Quote:

Originally Posted by Gray Matter (Post 1548813)
Template conditionals should use $bbuserinfo, not $vbulletin->userinfo. :)

$vbulletin->userinfo is correct !! it works in template conditionals

Gray Matter 06-14-2008 08:02 PM

Find me one default vB template that uses $vbulletin->userinfo. ;)

kaB00M 06-14-2008 11:17 PM

This topic isint about that bit of code. It's about this small modification. The code can be changed but i have tested it and that bit of text works! :up:

BlizzardHQ 06-15-2008 12:03 AM

Quote:

Originally Posted by Gray Matter (Post 1548813)
Template conditionals should use $bbuserinfo, not $vbulletin->userinfo. :)

Who cares as long as it works.. gees.

SwollenCranium 10-02-2008 10:35 PM

Quote:

Originally Posted by Gray Matter (Post 1548813)
Template conditionals should use $bbuserinfo, not $vbulletin->userinfo. :)

Nerd
Quote:

Originally Posted by veenuisthebest (Post 1548878)
$vbulletin->userinfo is correct !! it works in template conditionals

Nerd
Quote:

Originally Posted by BlizzardHQ (Post 1549541)
Who cares as long as it works.. gees.

Werd !

abdobasha2004 10-11-2008 02:11 PM

thanx a lot about the code
about the file it is just a repeller for members
but disabling visitors to see signatures is gr8


All times are GMT. The time now is 02:42 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.01233 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (5)bbcode_quote_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