PDA

View Full Version : HTML in signatures - usergroup restricted.


Paul M
04-14-2006, 10:00 PM
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
installed .Please click install then. :banana:

Code Monkey
04-16-2006, 05:31 PM
This bit is interesting. Automatic install clicker?



- <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

Paul M
04-16-2006, 07:39 PM
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, 08:34 PM
Thx Paul. Installed! :)

Nathan2006
05-29-2006, 10:05 PM
Thank you Paul :)

Install

Snake
06-29-2006, 10:16 PM
Thank you! I was looking for this! :)

furst
07-23-2006, 05: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, 06:28 AM
-edit- nvm fixed it works good mate +install thanks for this awesome mod.

furst
07-23-2006, 07: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:


<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=706572xxxx xx"></script>
<p /><!-- End: AdBrite -->

Paul M
07-23-2006, 10: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, 11: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, 12:10 PM
Can you actually use html ?

furst
07-23-2006, 03:17 PM
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, 04: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, 05:29 PM
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, 05: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, 05:50 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:
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, 08:13 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. Like it says in the instructions ;)

Snake
07-24-2006, 09:04 AM
Yeah my bad. :rolleyes:

I||usi0nz
07-31-2006, 03:56 PM
ah yes it works, thanks :)