vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Post Replacements (https://vborg.vbsupport.ru/showthread.php?t=125307)

Snatch 08-31-2006 05:52 AM

Here the Same, it doesen´t works.

GreeTz
Snatch

Stoebi 08-31-2006 06:22 AM

Hi,

replace $vbulletin with $this->registry in the plugin Replacments (Hook postbit_display_complete) (2 times).

Code:

//$post[message]
if ($this->registry->options['post_replacements_enabled'] == '1') {
        $replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
        foreach ($replacments_array_mine as $post_replace) {
                $post_explode_rple = explode("===", $post_replace);
                $post['message'] = str_replace($post_explode_rple['0'], $post_explode_rple['1'], $post['message']);
        }
}

It works fantastic. I've clicked install. :)



Kind Regards,

Stoebi

Nachtfalke 08-31-2006 08:15 AM

Now that are good news, Stoebi! So I will try this one out

DrewM 08-31-2006 09:17 AM

Quote:

Originally Posted by Stoebi
Hi,

replace $vbulletin with $this->registry in the plugin Replacments (Hook postbit_display_complete) (2 times).

Code:

//$post[message]
if ($this->registry->options['post_replacements_enabled'] == '1') {
        $replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
        foreach ($replacments_array_mine as $post_replace) {
                $post_explode_rple = explode("===", $post_replace);
                $post['message'] = str_replace($post_explode_rple['0'], $post_explode_rple['1'], $post['message']);
        }
}

It works fantastic. I've clicked install. :)



Kind Regards,

Stoebi

thank you will upade the hack.

C_P 08-31-2006 02:42 PM

NOW it works!
I used the following code and works perfectly:
Code:

vB===<a href="http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a

See here:
http://www.cpfools.com/forum/showthread.php?t=5901
Clicked install!
Thank you!

outlaw621 08-31-2006 03:53 PM

Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

C_P 08-31-2006 04:02 PM

Quote:

Originally Posted by outlaw621
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

EXCELLENT request! I agree, add me to this request as well.

SnickersTK 08-31-2006 04:03 PM

Quote:

Originally Posted by outlaw621
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

thirding this request

voteforbird 08-31-2006 09:02 PM

Thanks.

DrewM 09-01-2006 10:32 AM

Quote:

Originally Posted by outlaw621
Working now with the updated code. Thank you. I have a feature request if possible. Can you make the text replacement case insensitive? For example, typing test or Test would be able to have the replacement text applied instead of having to setup several of the same replacements to compensate for case.

I will try to do this in the next week you should see it soon.

EDIT: Currently it is case insensitive.


All times are GMT. The time now is 12:49 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.01287 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
  • (3)bbcode_code_printable
  • (4)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