Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 06-08-2003, 09:08 AM
ghroob ghroob is offline
 
Join Date: Dec 2001
Location: Moscow
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need 3 Hacks

Hello all Hackers
I :classic: need Three Hacks:

1 - send notification to the member by PM when delete or move his thread with a putting is a place for write reason and the choice of send PM or Not.
2 - hindered a member to post new thread or new post in one forum only after a passing the definitive number counted of his posts.
3 - hiding Threads or post about from the one member or group or guest.

Thank you :classic:
Reply With Quote
  #2  
Old 06-08-2003, 09:32 AM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 -

@ghroob

I have already made second hack

Open your newthread.php file.

find:

PHP Code:
//  $foruminfo=getforuminfo($forumid);
  
$message htmlspecialchars($message); // Without this, a </textarea> in the message breaks the form on preview
  
$subject htmlspecialchars($subject);
  
$bbcodeon=iif($foruminfo[allowbbcode],$ontext,$offtext);
  
$imgcodeon=iif($foruminfo[allowimages],$ontext,$offtext);
  
$htmlcodeon=iif($foruminfo[allowhtml],$ontext,$offtext);
  
$smilieson=iif($foruminfo[allowsmilies],$ontext,$offtext); 

RIGHT above it, add this:

PHP Code:
// by All-the-vb
$numperposts=40;
if(
in_array($foruminfo[forumid],array(2,3,8)) and $bbuserinfo[posts] <$numperposts){
  eval(
"standarderror(\"".gettemplate("error_posttoforum")."\");");
exit ;
}
// by All-the-vb 

Open your newreply.php file.

find:

PHP Code:
  eval("dooutput(\"".gettemplate("newreply")."\");");



RIGHT above it, add this:

PHP Code:
// by All-the-vb
$numperposts=40;
if(
in_array($foruminfo[forumid],array(2,3,8)) and $bbuserinfo[posts] <$numperposts){
  eval(
"standarderror(\"".gettemplate("error_posttoforum")."\");");
exit ;
}
// by All-the-vb 


==Add new template

name : error_posttoforum

Sorry, You need $numperposts posts to have insert new thread/post in this forum!


that's all

Good luck.
Reply With Quote
  #3  
Old 06-08-2003, 10:03 AM
ghroob ghroob is offline
 
Join Date: Dec 2001
Location: Moscow
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you all-the-vb.

Best Regards
Reply With Quote
  #4  
Old 06-08-2003, 01:01 PM
ghroob ghroob is offline
 
Join Date: Dec 2001
Location: Moscow
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all-the-vb

- is this hack work for all forums or only one ??
- how can i insert number forums that i need to close ?

thanx
Reply With Quote
  #5  
Old 06-08-2003, 01:18 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe this part u can change which forum u want to use?

PHP Code:
($foruminfo[forumid],array(x,x,x)) 
insert forumid to x.....
Reply With Quote
  #6  
Old 06-08-2003, 01:31 PM
ghroob ghroob is offline
 
Join Date: Dec 2001
Location: Moscow
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you squawell

I think so but I asked to explain for all users here
Any way this hack need more careful to be full Release

Best Regards
Reply With Quote
  #7  
Old 06-08-2003, 06:51 PM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:18 PM squawell said this in Post #5
maybe this part u can change which forum u want to use?

PHP Code:
($foruminfo[forumid],array(x,x,x)) 
insert forumid to x.....
Reply With Quote
  #8  
Old 06-08-2003, 07:21 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One request from me:
A counter scipt, that count in epic poems every 5, 10, 15, 20 line and shows at the left corner as imitating a real book.
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 02:51 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.05260 seconds
  • Memory Usage 2,243KB
  • 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
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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