PDA

View Full Version : Word Replacement


Bulent Tekcan
10-27-2016, 06:14 AM
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
https://vborg.vbsupport.ru/showthread.php?t=257368


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.

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:
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:
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):
UPDATE post SET pagetext = replace( pagetext, 'Sent from my', '' );

Perhaps this:
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!