vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Default Signature Per Usergroup (https://vborg.vbsupport.ru/showthread.php?t=143158)

Michael Biddle 03-25-2007 10:00 PM

Default Signature Per Usergroup
 
Default Signature Per Usergroup
vBulletin Zone
By: whitemike

Installation:
  1. Import the Product
  2. Do template edits
Thats 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

Code:

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:

Code:

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

Code:

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

Quote:

Originally Posted by electricoverrid (Post 1213790)
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

Quote:

Originally Posted by bada_bing (Post 1213829)
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:

PHP Code:

Join [url=http://www.carutopia.net/register]CarUtopia.net[/url] Today! 

Join CarUtopia.net Today!

Michael Biddle 03-27-2007 09:30 PM

Quote:

Originally Posted by Stereo123456 (Post 1213965)
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

Quote:

Originally Posted by misticjeff (Post 1214030)
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

Quote:

Originally Posted by electricoverrid (Post 1214266)
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 :)

Code:

                        <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

Quote:

Originally Posted by electricoverrid (Post 1212325)
Hi, Everytime I try and save I get this error

Code:

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.


All times are GMT. The time now is 07:57 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.01336 seconds
  • Memory Usage 1,790KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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