Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-17-2002, 07:18 PM
Tok Muda's Avatar
Tok Muda Tok Muda is offline
 
Join Date: Jul 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Only Admin/Mod can have signature

ive looked everywhere on this board to find it and I cant
does anyone know where i can get a hack that only allow
admin/mod to use it.

thanks.. :nervous:
Reply With Quote
  #2  
Old 08-17-2002, 11:37 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

easiest way:

open admin/functions.php
find:
PHP Code:
if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];
            }
        } else {
            
$post[signature] = "";
        } 
and replace with this:
PHP Code:
if (($post[usergroupid]==or $post[usergroupid]==or $post[usergroupid]==7) and $post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];
            }
        } else {
            
$post[signature] = "";
        } 
Reply With Quote
  #3  
Old 08-18-2002, 12:14 AM
Tok Muda's Avatar
Tok Muda Tok Muda is offline
 
Join Date: Jul 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey it works.. thanks Xenon i have a few questions tho'

1.how about a feature in usergroup "Can use Signature - Yes No"
can this be done?

2.does this feature will be in VB3?

thanks...
Reply With Quote
  #4  
Old 08-18-2002, 12:20 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. yes, search through the requestforum, i have answered such a request in the last two weeks as i know

2. perhaps, i think so.
Reply With Quote
  #5  
Old 08-18-2002, 01:06 AM
Tok Muda's Avatar
Tok Muda Tok Muda is offline
 
Join Date: Jul 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry xenon, i cant find it. i searched the request & full release forum, would you help me?

this maybe stupid.. again, i tried to change only admin can
use signature with the code above, but it gave me an error.
how about only admin can have signature? :cross-eyed:
Reply With Quote
  #6  
Old 08-18-2002, 02:04 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its under the "Requests" Forum.
Reply With Quote
  #7  
Old 08-18-2002, 01:10 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

only admin you have to remove " or $post[usergroupid]==5 or $post[usergroupid]==7"


https://vborg.vbsupport.ru/showthrea...ight=Signature
Reply With Quote
  #8  
Old 08-18-2002, 02:52 PM
Tok Muda's Avatar
Tok Muda Tok Muda is offline
 
Join Date: Jul 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have removed the code above as you told me
but instead i got these error

Code:
Parse error: parse error, unexpected '{' in /home/bincang/public_html/forum/admin/functions.php on line 483
are there any different modifications Xenon?

*thanks for the link..
Reply With Quote
  #9  
Old 08-20-2002, 08:48 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

count all ( and ) perhaps you have accidently deleted one
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04671 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete