vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Need 3 Hacks (https://vborg.vbsupport.ru/showthread.php?t=54012)

ghroob 06-08-2003 09:08 AM

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:

all-the-vb 06-08-2003 09:32 AM

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.

ghroob 06-08-2003 10:03 AM

Thank you all-the-vb.

Best Regards :)

ghroob 06-08-2003 01:01 PM

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

squawell 06-08-2003 01:18 PM

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

PHP Code:

($foruminfo[forumid],array(x,x,x)) 

insert forumid to x.....

ghroob 06-08-2003 01:31 PM

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

all-the-vb 06-08-2003 06:51 PM

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

:)

gmarik 06-08-2003 07:21 PM

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.


All times are GMT. The time now is 01:53 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.01107 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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