vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Replacement Words In Posts [Mod] (https://vborg.vbsupport.ru/showthread.php?t=220856)

ctbo 08-14-2009 10:10 AM

Replacement Words In Posts [Mod]
 
Hi

Any coders out there fancy revamping the mod "Replacement Words In Posts" it was a realy popular mod and there are loads of requests for a version that works on 3.8.x

Just thought I would give it a shout out incase someone was able to get it working again.

Thanks.

Lynne 08-14-2009 02:19 PM

Why doesn't it work in 3.8? If I recall, it's just a str_replace which is basic php and should work with any version of vbulletin.

ctbo 08-16-2009 10:54 AM

Hi

I dont know why, it would appear no one has got it working since 3.7.x ?

Someone did a code change for earlier versions, but its been a dead mod for quite a while... weird as it was once very popular.

Lynne 08-16-2009 02:57 PM

Try this one - https://vborg.vbsupport.ru/showthrea...ht=Replacement

ctbo 08-27-2009 04:54 PM

Quote:

Originally Posted by Lynne (Post 1868553)

Hmm thanks Lynne.. that would kinda work but doesnt have all the features as this one: https://vborg.vbsupport.ru/showthread.php?p=1871134

Please I really wanted to be able to make it forum specific which I could have done with the above Mod in combination with another.

Thanks for the link anyway though!

Lynne 08-27-2009 05:09 PM

Quote:

Originally Posted by ctbo (Post 1875376)
Please I really wanted to be able to make it forum specific which I could have done with the above Mod in combination with another.

I don't know that specific code, but I can't imagine it would be hard to modify the plugin to do different words for different forums. Have you tried to just add some conditions into the plugin?

PHP Code:

if ($forumid == x){
$word = ...;
$link = ...;
} else if (
$forumid == y){
$word = ...;
$link = ...;
}
$this->post['message'] = ...; 



All times are GMT. The time now is 07:58 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.01182 seconds
  • Memory Usage 1,725KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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