vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   My first hack. :p (https://vborg.vbsupport.ru/showthread.php?t=30233)

10-12-2001 10:00 PM

Well, I do not know if this has been done before, but oh well.

This hack was made using vBulletin 2.0.3. I have no idea if it works with earlier versions.

Download the index.php (index.php3) file and make a backup of it.

Look for the line that says.
PHP Code:

$forumbits=makeforumbit(intval($forumid), 1$permissions); 

Now add this right below it.
PHP Code:

$uaec='';
 if(
$bbuserinfo[usergroupid]==3) {
      eval(
"standarderror(\"".gettemplate("forumhome_uaec")."\");");
    } 

It should be right above this line.
PHP Code:

$unregwelcomemessage='';
if (
$bbuserinfo['userid']==0) {
  eval(
"\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");


Now make a template called forumhome_uaec. And put any message you want in it. Use $username so it will post that persons name. :p

Now upload the index.php file.

This is just some stupid little thing that makes it so the Users Awaiting E-Mail Conformation or whatever it's called not able to view the forum until they activate their account. They can still view everything else, just not the main forum. Not what I was trying to make, but it'll do for now. :p.

jrwap 10-13-2001 12:38 AM

Hey, this is very cool and seems to work well.

Thanks,

-JRW

ubje 10-13-2001 02:49 PM

looks kewl m8

Neo 10-13-2001 07:48 PM

:D good job. nice hack


All times are GMT. The time now is 01:37 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.01006 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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