vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Find replace text (https://vborg.vbsupport.ru/showthread.php?t=279226)

ni_hao 02-27-2012 03:50 PM

Find replace text
 
Using v3.8.7. Is there a mod which allow to find a replace text in a forum message?

explanation:
I announce in a forum message files for several platforms. The release numbers of the files are always the same, f.i.: file_v1234_sh4.gz, file_v1234_i386.gz, file_v1234_win7.gz, etc.
Everytime when a new release is available I have to change everywhere v1234 manually.
My question is if there is a mod which allows admin and mods to find text in a forummessage and replace it. In the example above something as: find _v1234 replace with _v1235

BirdOPrey5 02-28-2012 01:27 PM

Not really a mod but if you install "impex" there is an impex tool called "cleaner.php" that will do find and replace throughout all posts on your forum.

You have to manually edit the php file to set it up but it's a lot easier than manually changing dozens or hundreds of posts.

If it's just a handful of posts probably quicker to just do it manually though.

Anyone interested in making this mod can look to cleaner.php for code that will do it.


All times are GMT. The time now is 12:10 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.01023 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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