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)

Gersfan 01-21-2008 07:29 AM

Hi Guys,

Has there been a fix yet for the lowercase problem on boards?

Thanks

Habsy 02-10-2008 11:41 PM

Doesn't work in 3.6.8

sdsvtdriver 02-15-2008 04:40 AM

I tried BallPnets changes and it doesn't work on my site.

3.6.8

vigape 03-18-2008 11:07 AM

I would use this mod to rewrite some words and make it url. Sample:
But when I put the bbcode replace, vbulletin shows the bbcode, not the url.

What can I do?

BarelyHangingOn 04-03-2008 11:43 PM

3.68 turned all of my text to lower case, otherwise it worked.

dennisuello 04-14-2008 02:16 PM

Quote:

Originally Posted by centralss (Post 1383363)
Doesn't work on 3.6.8 level 2 patch. Also wouldn't show anything linked to photobucket, which was strange. I had to uninstall it to show everything again.

Looks like it needs an update to 3.6.8!!!

Had the same issue on my forum, more than half of the photobucket images showed "Image removed" message instead. All I had in the Find and Replace boxes was "therockgods" and "kittenwar", respectively. I'm running 3.6.9.

forovideojuegos 04-30-2008 10:27 AM

Quote:

Originally Posted by ballpnet (Post 1425218)
Greetings,

I've changed the code within the plugin in order to get it to work at our forums. This works with 3.6.8 and I've not tested it on any of the other versions. If anyone else wants to make the same modifications they are more than welcome to do so, but please be advised that it'll be at your own discretion and I will not provide support or be held liable if anything goes wrong.

*Props goes to mah man Nate(nathanledet) for bringing this plugin to our attention.*

Things the modification fixes:
1)It does not lower case the entire message
2)It tries to uppercase the first letter of a word at the beginning of a sentence. Say for example you want to replace the uppercase word WIDGET with widget. If someone begins the sentence with this word, then it'll look awkward and incorrect when it gets lowercased. The code then corrects this by uppercasing the "w" and giving us a correct much better looking "Widget."

Find and replace the <phpcode> opening and closing tags with the following.

PHP Code:

<![CDATA[$array1 explode("|"$vbulletin->options['ah_word_replace_find']);

$array2 explode("|"$vbulletin->options['ah_word_replace_replace']);

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

$breadcrumb = array();

if(
count($array1) > 0) {

  for(
$j=0$j<count($array1); $j++) {
    
$breadcrumb[] = '/'.$array1[$j].'/i';
  }

  
$ah_text preg_replace($breadcrumb$array2$ah_text);

  
$separators = array('. ''? ''! ');
  
  for(
$i=0$i<count($separators); $i++) {

    
$var $separators[$i];
    
$sentences explode($var$ah_text);
    
$tmp_sentence '';
    
$k 0;
    foreach(
$sentences as $single_sentence) {
    
$tmp_sentence .= ucfirst($single_sentence);

     if (
$k<count($sentences)-1) {
          
$tmp_sentence .= $var;
        }
        
$k++;
    }
    
$ah_text $tmp_sentence;
  }
}

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


Wow! Works great!! Thank you!

yingzhou 06-30-2008 02:59 AM

it work with 3.6.8 but havent tried with 3.7.0. Any idea?

River_rush 07-05-2008 03:45 PM

I can confirm with that edit that it works on 3.7.2 having just installed and tested it.
Heres the Edited XML

yingzhou 07-06-2008 04:33 AM

thank, will try this edited xml!


All times are GMT. The time now is 06:48 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.01118 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_php_printable
  • (2)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