PDA

View Full Version : Show Thread Enhancements - Default Signature Per Usergroup


Michael Biddle
03-25-2007, 10:00 PM
Default Signature Per Usergroup
vBulletin Zone (http://www.vbulletinzone.com)
By: whitemike


Installation:
Import the Product
Do template editsThats it!

All known bugs should be fixed.

Michael Biddle
03-25-2007, 10:59 PM
Reserved for me

Milad
03-26-2007, 12:02 AM
I think but not sure, this can be done via hooks without any modification to the templates

electricoverrid
03-26-2007, 01:03 AM
Hi, Everytime I try and save I get this error

Fatal error: Using $this when not in object context in /****/****/****/****/admincp/usergroup.php(337) : eval()'d code on line 1

Thanks.

Atakan KOC
03-26-2007, 06:30 AM
Thanks....

Stereo123456
03-26-2007, 09:47 AM
omg thanks so much ive been looking for this for sooo long

Stereo123456
03-26-2007, 04:28 PM
is there anyway to make it so that it shows anyway. so that if they have a sig it will show up aswell as their personal sig. like make it permanent or anything

Michael Biddle
03-26-2007, 10:50 PM
Yes rather then using an if / else, just add it all in one.

Use this for template edit instead to have both show:

<!-- START: vbh_default_sig_per_usergroup mod code -->
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="( ($vbh_autosig_enabled==1) && ($vbh_autosig_text!='') && ($post['signature']=='') )">
<div>
__________________<br />
$vbh_autosig_text
</div>
</if>
<!-- END: vbh_default_sig_per_usergroup mod code -->

Stereo123456
03-27-2007, 02:52 PM
doesnt work :(

Michael Biddle
03-27-2007, 04:50 PM
Woops sorry try this:

<!-- START: vbh_default_sig_per_usergroup mod code -->
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="( ($vbh_autosig_enabled==1) && ($vbh_autosig_text!='') )">
<div>
__________________<br />
$vbh_autosig_text
</div>
</if>
<!-- END: vbh_default_sig_per_usergroup mod code -->

electricoverrid
03-27-2007, 06:20 PM
any way around this error?

bada_bing
03-27-2007, 07:02 PM
Ok I am a bit confused what would their default signature be? Can the admin enter google adsense code for signatures?

Stereo123456
03-27-2007, 09:02 PM
thanks man that worked :)

Michael Biddle
03-27-2007, 09:28 PM
any way around this error?

Download the latest version and see if it works. If not ill look into yours personally

Michael Biddle
03-27-2007, 09:29 PM
Ok I am a bit confused what would their default signature be? Can the admin enter google adsense code for signatures?

Right now I have it setup to use bbcode. what I have is like:

Join CarUtopia.net (http://www.carutopia.net/register) Today!

Join CarUtopia.net (http://www.carutopia.net/register) Today!

Michael Biddle
03-27-2007, 09:30 PM
thanks man that worked :)

Glad It worked out for ya :D

misticjeff
03-27-2007, 10:07 PM
OK, i give up.. what is it that this mod does??

electricoverrid
03-28-2007, 06:10 AM
Thanks whitemike, tried the new version but still getting the error, this would be nothing to do with Geek Article and Review System as I have this installed?

thanks again,
electric

Michael Biddle
03-28-2007, 08:45 PM
OK, i give up.. what is it that this mod does??

This will show a default signature based on usergroup. You can have bbcode in it. for instance if they do not have a signature, then you can make something like "Join XXX Forums Today!" and have it link to ./register.php

Thanks whitemike, tried the new version but still getting the error, this would be nothing to do with Geek Article and Review System as I have this installed?

thanks again,
electric

I will look into GARS as a friend has that, but really dont think that that should be interfearing with anything.

Cagonni
03-29-2007, 03:27 AM
MySQL Error : Table 'hitportal.usergroup' doesn't exist

i suppose the problem about prefix :)

<installcode><![CDATA[$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD `vbh_autosig_enabled` TINYINT( 1 ) NOT NULL , ADD `vbh_autosig_text` TEXT NOT NULL ;"); ]]></installcode>
<uninstallcode><![CDATA[$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup DROP `vbh_autosig_enabled`"); ]]></uninstallcode>

Michael Biddle
03-29-2007, 09:24 PM
Updated Thanks for the report

rikmartin
03-31-2007, 06:51 PM
I have used your adjustment code to show user and enforced signature together... however this now shows my usergroup signature when viewing PM's from other usergroups in the PM system?

any ideas?

Michael Biddle
03-31-2007, 06:53 PM
Well this is only in the template "postbit(_legacy) I am sure if you used it in the pm template, then you would find your answer. I will look into it.

rikmartin
03-31-2007, 06:57 PM
ok, cheers.. i haven't modified the PM template though, so i'm not sure how it knows to use it?

bigcurt
06-13-2007, 02:00 AM
I got a major error when I installed this hack - so I uninstalled:

Invalid SQL:
SELECT `usergroupid` FROM `user` WHERE `userid` = '9972';

MySQL Error : Table 'keyhuntc_backup.user' doesn't exist
Error Number : 1146

msalman
06-15-2007, 10:07 PM
there're quite a few problems with queries. The select queries don't have table perfix and that's why it give an error that field "user" doesn't exist. Also, when you un-install it doesn't drop the vbh_autosig_text column.

here's an update version

Michael Biddle
06-15-2007, 10:55 PM
Yea, sorry I thought I updated it on vbhackers but musta forgot here.

Michael Biddle
06-15-2007, 11:15 PM
Product Updated

Brembo
07-10-2007, 07:47 AM
I tried to save but not work..Stuck..What the problem..I use V3.67

Michael Biddle
07-18-2007, 06:34 AM
A little more info please. That doesnt help me help you.

Shazz
07-18-2007, 06:51 AM
The coding looks very professinal and clean
5 Star :)

Magnumutz
07-18-2007, 11:44 AM
Same as Shazz said.

Mother_Dee
10-16-2007, 01:21 AM
Hi, Everytime I try and save I get this error

Fatal error: Using $this when not in object context in /****/****/****/****/admincp/usergroup.php(337) : eval()'d code on line 1

Thanks.

Same error. =(

Michael Biddle
10-16-2007, 02:57 AM
I updated this, its working fine for me on a fresh 3.6.8 board. Please confirm, also please hit install :D

bebeko
12-26-2007, 02:31 PM
Fatal error: Call to a member function on a non-object in ............./public_html/includes/class_bbcode.php on line 213

tillcat5
03-25-2008, 10:28 PM
ive been looking for something like this. it installs easy and easy edit... my prob is when i go to put the default sig in and hit save it blanks out and wont save.. it also locks up my usergroup editing so i cant update.. any suggestions? im using 3.6.8

FENIX
04-30-2008, 08:41 AM
Not working with 3.7 - product installs and shows in usergroup manager, however when you click to save the signature, the screen goes blank and the changes aren't saved. This also creates a 500 (internal) error - where you can no longer open topics.

Anyone know of a fix?

Cheers

*waits to click install*

Ophelia
05-26-2008, 02:08 AM
Not working on our site either. That's really to bad.