vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   HTML in signatures - usergroup restricted. (https://vborg.vbsupport.ru/showthread.php?t=113068)

Paul M 04-14-2006 10:00 PM

HTML in signatures - usergroup restricted.
 
This modification is no longer available or supported.

This is a little custom hack originally written for Viruseater.

This hack allows you to turn on the use of HTML in signatures - and restrict it's use to a defined set of usergroups.

Unzip the xml file and import it into vbulletin via the product manager then turn on the option to allow html in signatures (in the vb options) and set the allowed usergroups - 5,6 & 7 are the defaults.


History:

v1.01 : First Private Release.
v1.02 : Minor changes, no update necessary.
v1.03 : First Public Release.
v1.04 : Fixed bug in postbit display.

Daniel 04-15-2006 02:38 AM

Very nice Paul. May use this in the future, thanks.

Snake 04-15-2006 05:21 PM

Thanks I've been waiting for this! :)

Barakat 04-16-2006 10:28 AM

installed .

Paul M 04-16-2006 01:18 PM

Quote:

Originally Posted by Barakat
installed .

Please click install then. :banana:

Code Monkey 04-16-2006 05:31 PM

This bit is interesting. Automatic install clicker?

Code:


- <installcode>
- <![CDATA[
$hackid = 113068;
$install = 'https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid='.$hackid;
echo '<center><img src="'.$install.'" hight="1" width="1" alt="Installing" /></center>';


  ]]>
  </installcode>
- <uninstallcode>
- <![CDATA[
$hackid = 113068;
$install = 'https://vborg.vbsupport.ru/vborg_miscactions.php?do=uninstallhack&threadid='.$hackid;
echo '<center><img src="'.$install.'" hight="1" width="1" alt="Un-Installing" /></center>';


  ]]>
  </uninstallcode>

Nice.

Paul M 04-16-2006 05:38 PM

Yes (and uninstall as well).

Not foolproof, but it should work in the majority of cases.

SaN-DeeP 04-16-2006 06:17 PM

thanks i have been waiting for something like this :)

akanevsky 04-16-2006 06:32 PM

heh, I like the automatic installer/uninstaller, I think I'ma use it in my hacks as well :)

EDIT: I don't think this will work properly in postbit. Maybe the postbit_display_start should be modified in the following way:

if (!defined('ALLOWHTML_SYSTEMSETTING', $vbulletin->options['allowhtml']);
if (!is_member_of($post,$groups))
{
$vbulletin->options['allowhtml'] = false;
}
else
{
$vbulletin->options['allowhtml'] = ALLOWHTML_SYSTEMSETTING;
}

Also, you might wanna consider re-enabling allowhtml after signature is displayed, to remove the potential possibilty of conflicts with hacks that use bbcode in custom fields etc.

nasser71 04-16-2006 06:51 PM

i have instaled the hack and the users can use the html in thear sig . i have chosed the admin group only in the group options

any ideas


All times are GMT. The time now is 09:01 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.01135 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)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
  • (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