Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2016, 06:14 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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(
'',
''
);
Reply With Quote
  #2  
Old 10-27-2016, 06:29 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=257368" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=257368</a>
Reply With Quote
  #3  
Old 10-27-2016, 06:34 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post

Thanks,but this is not my answer. And also these one not work on 4.2.3 version
Reply With Quote
  #4  
Old 10-27-2016, 09:04 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-27-2016, 09:47 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested this mode before posting but not work on 4.2.3. It is not replace any Tapatalk signature
Reply With Quote
  #6  
Old 10-27-2016, 05:36 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
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:07 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.03944 seconds
  • Memory Usage 2,210KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete