vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Admin Signatures Parsed for vB Variables: by Logician (https://vborg.vbsupport.ru/showthread.php?t=81895)

yinyang 07-12-2005 02:35 PM

can this be ported to vb3.5?

Kirk Y 07-20-2005 03:53 AM

Quote:

Originally Posted by Neutral Singh
Code:

Edit includes/functions_showthread.php
 
FIND
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']);
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
ADD BELOW:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                // Logician Hack : Admin signatures parsed for vb variables
                                if ($post['usergroupid']==6)
                                {
                                        @eval('$post[signature] = "' . addslashes($post['signature']) . '";');
                                        $post['signature'] = stripslashes($post['signature']);
                                }
                                // Logician Hack : Admin signatures parsed for vb variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

JUST BELOW THE ABOVE CODE, ADD:
Code:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                // Logician Hack : Admin signatures parsed for vb variables
                                if ($post['usergroupid']==2)
                                {
                                        @eval('$post[signature] = "' . addslashes($post['signature']) . '";');
                                        $post['signature'] = stripslashes($post['signature']);
                                }
                                // Logician Hack : Admin signatures parsed for vb variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

(Notice the change in above code --> if ($post['usergroupid']==2). You can do it for each usergroupid, separately. :)

Enjoy !!

Couldn't you just do "if ($post['usergroupid']==2 OR 6)"? I don't know exactly how the OR thing works, but I know it can be used in a fashion similar to that, atleast that way you wouldn't need to repeat the entire code addition. Oh and by the way, great hack!

sketch42 08-02-2005 10:46 AM

can this be done for posts??

sketch42 08-05-2005 05:01 AM

one request can we get it so when you preview your sig you can see it as it should be seen by the users?

sketch42 08-05-2005 06:26 PM

this
Hey $bbuserinfo[username] i see you havent been on since $bbuserinfo[lastactivity] , have you read the Rules Lately.


returns this... any ideas?
Hey sketch42 i see you havent been on since 1123269876 , have you read the Rules Lately.

ciocsy 08-05-2005 10:11 PM

thanks, it worked like a charm!

Neutral Singh 09-02-2005 09:07 AM

Quote:

Originally Posted by sketch42
one request can we get it so when you preview your sig you can see it as it should be seen by the users?

Imagine your member's name instead of yours and thats what your members would see in your signatures. ;)

MThornback 11-14-2005 10:16 PM

Is this going to be ported? *looks hopefully*

goodwillstacy 02-08-2006 04:42 PM

I would also love if this was ported. It really increased the number of donations I got.
stacy


All times are GMT. The time now is 07:57 AM.

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.02692 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (2)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
  • (9)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