vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Word Replacement (https://vborg.vbsupport.ru/showthread.php?t=323708)

Bulent Tekcan 10-27-2016 06:14 AM

Word Replacement
 
Hello

How can I replace for example Sent from my İphone using Tapatalk but İphone always change different models. I hate this signature in my forum. I want to disable it.

I made a plugin in postbit_display_complete but I didn't find xxx replacement Sent from my xxxx using Tapatalk

This plugin delete Sent from my when I put this code. But I need full replacement. Anyone any idea ?

$word = array(
'Sent from my',
''
);

$link = array(
'',
''
);

cellarius 10-27-2016 06:29 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=257368" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=257368</a>

Bulent Tekcan 10-27-2016 06:34 AM

Quote:

Originally Posted by cellarius (Post 2577331)


Thanks,but this is not my answer. And also these one not work on 4.2.3 version

cellarius 10-27-2016 09:04 AM

How is that "not your answer"? Of course, it's my answer to your question, and the addon seems to do exactly what you want. If you want something else, you need to explain better.

Quote:

This works for VB 3.7, 3.8, 4.0.x, 4.1.x and 4.2.x versions of vBulletin.
BirdOPrey5 normally knows what he's doing (and writing). If it does not work for you, again, you need to explain and post in the thread of that addon.

No one will write new code for you if an addon already exists that does what you want.

Bulent Tekcan 10-27-2016 09:47 AM

I tested this mode before posting but not work on 4.2.3. It is not replace any Tapatalk signature

TheLastSuperman 10-27-2016 05:36 PM

Actually you could just run a query, quite a few different variations of said query to just remove this "word or phrase". I'm not sure but if I recall correctly Joe's mod prevents it from time of install forward (maybe that would explain why it didn't work like you assumed it would OR I could be assuming wrong here lol).

This would replace the text in your main forum i.e. the one with ID #1:
Code:

UPDATE post
LEFT JOIN thread ON post.threadid = thread.threadid
LEFT JOIN forum ON thread.forumid = forum.forumid
SET pagetext = replace( pagetext, 'Sent from my', '' )
WHERE forum.forumid = 1;

^ So you could remove per forum.

This query here could remove per threadid:
Code:

UPDATE post SET pagetext = replace( pagetext, 'Sent from my', '' ) WHERE post.threadid = '123456';
I've used the top two queries they work just fine if you key in the correct forumid or threadid if doing single threads etc.

I suppose though you could do a very broad query such as (untested):
Code:

UPDATE post SET pagetext = replace( pagetext, 'Sent from my', '' );
Perhaps this:
Code:

UPDATE post SET pagetext = replace( pagetext, 'Sent from my iPhone', '' );
Be sure to run a database backup before attempting any queries if you're unfamiliar with how they work and/or what they can in-turn do!


All times are GMT. The time now is 09:53 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.00952 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
  • (4)bbcode_code_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