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 09: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 01:38 AM

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

Snake 04-15-2006 04:21 PM

Thanks I've been waiting for this! :)

Barakat 04-16-2006 09:28 AM

installed .

Paul M 04-16-2006 12:18 PM

Quote:

Originally Posted by Barakat
installed .

Please click install then. :banana:

Code Monkey 04-16-2006 04: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 04:38 PM

Yes (and uninstall as well).

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

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

thanks i have been waiting for something like this :)

akanevsky 04-16-2006 05: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 05: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

Paul M 04-16-2006 06:39 PM

Quote:

Originally Posted by Psionic Vision
EDIT: I don't think this will work properly in postbit.

You're right, I can't believe I didn't see that when testing it :cross-eyed:

New version uploaded.

I'm not really sure what you mean by the second bit - but html in sigs is normally a global setting, so any clashes with custom BB code would happen anyway if it were turned on. :cool:

Logikos 04-19-2006 07:34 PM

Thx Paul. Installed! :)

Nathan2006 05-29-2006 09:05 PM

Thank you Paul :)

Install

Snake 06-29-2006 09:16 PM

Thank you! I was looking for this! :)

furst 07-23-2006 04:35 AM

For some reason after I installed this and allowed only usergroup 6 to use it, the sigs of that usergroup do not show up at all - html or not. I'm on 3.5.4. Do you know how I can fix this?

s3xt0y 07-23-2006 05:28 AM

-edit- nvm fixed it works good mate +install thanks for this awesome mod.

furst 07-23-2006 06:32 AM

Hmm.. it just appeared all of a sudden for some reason.

New problem though:
I am putting adbrite ads in my sig, and for some reason when I reply through the quickreply I sometimes get taken to a white screen with nothing there except for the ads. The message still gets posted, but I'd still like to fix this. I'm not sure if any of the users ever get taken to this horrifying white screen - so far it hasn't happened to me. The address stays correct but it's just this white page that keeps on loading.

Am I doing something wrong?


Here is the code that I'm pasting into the sig field:

HTML Code:

<center><!-- Begin: AdBrite -->
<style type="text/css">
.adHeadline {font: bold 8pt Arial; text-decoration: underline; color: blue;}
.adText {font: normal 8pt Arial; text-decoration: none; color: black;}
</style>
<script type="text/javascript" src="http://4.adbrite.com/mb/text_group.php?sid=117889&amp;col=5&amp;br=1&amp;dk=706572xxxxxx"></script>
<p /><!-- End: AdBrite -->


Paul M 07-23-2006 09:40 AM

No idea, but all this does is allow you to put that html in your sig, it cannot affect posting.

Snake 07-23-2006 10:56 AM

Paul, I have installed this mod but it doesn't seem to work correctly. At the very bottom where the posting/signature rules are, it says the HTML code is currently off. Any idea where I did wrong?

Paul M 07-23-2006 11:10 AM

Can you actually use html ?

furst 07-23-2006 02:17 PM

Quote:

Originally Posted by Paul M
No idea, but all this does is allow you to put that html in your sig, it cannot affect posting.

It happens almost every time and it only occurs with the sig that has the html in it. Is there nothing at all you could tell me? :(

Paul M 07-23-2006 03:34 PM

There is a very good reason that html is generally banned from posts and signatures - it breaks things.

My html knowledge is very basic, so no, I have no idea why the html you are using would do that. :cool:

Snake 07-23-2006 04:29 PM

Quote:

Originally Posted by Paul M
Can you actually use html ?

Nope I can't use any HTML. It even says that the HTML code is disabled.

What's the problem I wonder?

Snake 07-23-2006 04:32 PM

Nevermind, Paul. It seems the hack is 100% functionable. Inorder to use this hack, I had to turn the "Allow HTML in Signatures" feature to on just the one above yours. It works now! :)

Thanks anyway...

furst 07-23-2006 04:50 PM

Quote:

Originally Posted by Paul M
There is a very good reason that html is generally banned from posts and signatures - it breaks things.

My html knowledge is very basic, so no, I have no idea why the html you are using would do that. :cool:

Hmm, well if I keep sig display off it doesn't happen anymore. That's good enough for me. I can still use this. Thanks.

Paul M 07-23-2006 07:13 PM

Quote:

Originally Posted by Dark Blade
Nevermind, Paul. It seems the hack is 100% functionable. Inorder to use this hack, I had to turn the "Allow HTML in Signatures" feature to on just the one above yours.

Like it says in the instructions ;)

Snake 07-24-2006 08:04 AM

Yeah my bad. :rolleyes:

I||usi0nz 07-31-2006 02:56 PM

ah yes it works, thanks :)


All times are GMT. The time now is 07:48 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.01654 seconds
  • Memory Usage 1,773KB
  • 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_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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