Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2008, 11:38 AM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Censor replacing words with other words, not ***

I'd like a mod for 3.7 that could replace some words with others. Like the censor, but instead of giving ****, writing another word.

There's already one but for 3.6
https://vborg.vbsupport.ru/showthread.php?t=149118

Thank you
Reply With Quote
  #2  
Old 11-05-2008, 02:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very often the mods for 3.5 and 3.6 will work for 3.7. So, I suggest you try the mod on your test board. Or, read the thread and see if others have posted if it works in 3.7.
Reply With Quote
  #3  
Old 11-06-2008, 02:51 PM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've already done it, and that's why I posted here this message, because there are many users who have uninstalled it because it doesn't work anymore with 3.7
But thanks for the suggestion
Reply With Quote
  #4  
Old 11-06-2008, 03:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wrote a real simple plugin for my site for word replacement. I just put the words into an array, the replacements into an array (they are all links for the moderators to use) and then do a simple str_ireplace. It works on 3.6 and 3.7. I would think that is the way most of the modifications for word replacement would work. I have heard that they don't work if doing a word replacement and then putting the word in the replacement also - like replace google with a link to google (www.google.com)
Reply With Quote
  #5  
Old 11-07-2008, 12:31 AM
speakeasy media speakeasy media is offline
 
Join Date: Jan 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about something for those of us with a bit less computer skill?
Reply With Quote
  #6  
Old 11-07-2008, 02:23 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I was really saying was that if all the plugin is doing is a string replace, then there is no reason for it not to work on 3.7. If the problem you are having has to do with replacing words like google with a link to google (www.google.com), then that isn't just a 3.7 thing, but a problem with any version that uses string replace.

Which modification did you install? And what isn't working anymore? And did you post in the thread about it already?
Reply With Quote
  #7  
Old 11-10-2008, 11:30 AM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found out that in page 7 of that mod there's a code modification that makes it work perfectly

https://vborg.vbsupport.ru/showpost....8&postcount=98

Now my question is: A way to make it also work for titles, not only posts?
What should I change or add there?
Reply With Quote
  #8  
Old 11-10-2008, 02:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may want to just ask that in the thread and see if anyone knows what the code is for doing this to titles.

If you want both posts and titles, have you considered just using the Replacement Variables?
Reply With Quote
  #9  
Old 11-10-2008, 09:19 PM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't really know how to use replacement variables in this case...
I shouldn't replace anything but add...shouldn't I?
I don't really know...I'm not much into PHP and codes, I only touch them and change some thigns I think that might work, but I don't really know how it goes...

For example in this case I know that what I want to change has to do with this
PHP Code:
$ah_text $this->post['message']; 
but I don't know what to do with the code, repeat it again but changing that "message" for "title", adding only some code somewhere...tsk...

I think it's time to start learning PHP so I can know what I'm doing :S
Reply With Quote
  #10  
Old 11-10-2008, 09:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm talking about the Replacement Variables that come with vB. In Styles & Templates > Replacement Variable Manager you may add a new Replacement Variable for your style and you just put in the Text to Find and the Replacement Text and it will do that for the whole site (as compared to just the post text).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:48 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.04856 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete