vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What am i doing wrong? (https://vborg.vbsupport.ru/showthread.php?t=60052)

MindTrix 01-11-2004 02:08 PM

I did that before, just forgot to post it here.

I had
PHP Code:

function fetch_censored_text($text,$forumid=1

This removed my error message. But i still cannot get the hack to work how i want it too.

I found inside

Functions_newpost.php this code

PHP Code:

// censor main message text
$post['message'] = fetch_censored_text($post['message']); 

and changed it too
PHP Code:

// censor main message text
$post['message'] = fetch_censored_text($post['message'],$forumid); 

but still no luck lol. I know im messing up somewhere (obviously)

Xenon 01-11-2004 02:10 PM

PHP Code:

$post['message'] = fetch_censored_text($post['message'],$forumid); 

should be
PHP Code:

$post['message'] = fetch_censored_text($post['message'],$threadinfo['forumid']); 

iirc

also don't use =1 use = -1 as the standart should be to censor ;)

MindTrix 01-11-2004 02:36 PM

hmmm ok did as you suggested Xenon and still no luck, this is starting to become a pickle now :)


All times are GMT. The time now is 12:24 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.01489 seconds
  • Memory Usage 1,721KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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