vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Replacement Words In Posts (https://vborg.vbsupport.ru/showthread.php?t=149118)

rtl2 07-04-2007 12:03 AM

hi
can This hack will replace any word in the Signature:confused: or any place

4x4 Mecca 07-04-2007 12:41 AM

didn't work at all in 3.6.4 and changed all text to lowercase. I'll watch this for a fix.

soniceffect 07-10-2007 05:36 PM

Would also love a fix for this .... Is an excellent hack

EDIT:- Really wanted this so thought I would have a play myself...

PLEASE NOTE YOU MUST BE USING PHP5 FOR THIS FIX


FIXES THE DROPPING OF CAPS
Edit the plugin "word replacements"

Replace
PHP Code:

$ah_message $this->post['message'];
$ah_text strtolower($ah_message); 

with
PHP Code:

$ah_text $this->post['message']; 

replace
PHP Code:

$ah_text str_replace(strtolower($array1[$x]), $array2[$x], $ah_text); 

with
PHP Code:

$ah_text str_ireplace($array1[$x], $array2[$x], $ah_text); 


4x4 Mecca 07-10-2007 06:22 PM

Can you code one for php4? I know it's probably just a few strings, I'm just not a coder, so I don't know them

soniceffect 07-10-2007 07:48 PM

A learnin coder myself, but will have a look for ya m8

4x4 Mecca 07-10-2007 11:16 PM

Thanks! I have to use php4 because of some image upload problems I had with php5... sucks, but o well. I'll watch for an update.

soniceffect 07-11-2007 07:29 AM

try changing
PHP Code:

str_replace 

for

PHP Code:

preg_replace 

But please note I've not tested this

nautiqeman 07-20-2007 01:39 AM

This doesn't work at all for me.

ABMAC 07-23-2007 05:45 PM

Quote:

Originally Posted by soniceffect (Post 1287753)
Would also love a fix for this .... Is an excellent hack

EDIT:- Really wanted this so thought I would have a play myself...

PLEASE NOTE YOU MUST BE USING PHP5 FOR THIS FIX


FIXES THE DROPPING OF CAPS
Edit the plugin "word replacements"

I tried these edits and my PM system stopped working. I'll keep checking back, though. This is the feature I miss most from Ikonboard.

spamgirl 07-28-2007 02:31 AM

It's not working for me in 3.6.5

In fact, when I installed it the Censorship Options showed up... but the words I entered weren't censored on the board. On top of that all [img] tags stopped working entirely.


All times are GMT. The time now is 01:42 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.01645 seconds
  • Memory Usage 1,750KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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