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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2011, 12:02 AM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changed smilies, can old 'Text to Replace' still showing/redirect to new smilies?

i want to change some smilies 'Text to Replace'

for example

old 'Text to Replace' is :lol:

new 'Text to Replace' is :-)

can :lol: still be showing/redirect to new 'Text to Replace' :-) smilies some way?

too bad if old posts that still using 'Text to Replace' :lol: the smilies are not showing again
Reply With Quote
  #2  
Old 01-05-2011, 12:13 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you change the replacement text of a Smiley in the Smileys Manager, the old text will not work anymore, and all that will show in old posts is the text. If you don't want that, you can just upload the Smiley under a different file name, and use different text for it. However, the old Smiley will still show in the Smileys List whenever it's opened. You can push it down to the bottom or to another category, if you like.

You could also try using something like Word Replacement to always change the old :lol: to the new text.
Reply With Quote
  #3  
Old 01-05-2011, 02:10 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change your smiley settings then...

Just run an MySQL query on your post table...

Code:
update `PREFIX_post` set pagetext = replace (pagetext, ':lol:' , ':-)')
Obviously make sure you have a backup before you attempt manual changes on the database but it should be no problem.

Replace "PREFIX_" with whatever prefix you set in your config.php file, if any.
Reply With Quote
  #4  
Old 01-05-2011, 06:08 AM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Change your smiley settings then...

Just run an MySQL query on your post table...

Code:
update `PREFIX_post` set pagetext = replace (pagetext, ':lol:' , ':-)')
Obviously make sure you have a backup before you attempt manual changes on the database but it should be no problem.

Replace "PREFIX_" with whatever prefix you set in your config.php file, if any.
thank you for answering guys,


i already checked config.php, which one prefix that you mean actually

here is the config.php content

$config['Database']['tableprefix'] = '';


$config['Misc']['cookieprefix'] = 'bb';
Reply With Quote
  #5  
Old 01-05-2011, 10:57 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

table prefix, yours in blank so the query would be:

Code:
update `post` set pagetext = replace (pagetext, ':lol:' , ':-)')
How big is your posts table (how many posts do you have)? If it's a lot I would suggest turning off the forum just as an extra precaution before running the query.
Reply With Quote
  #6  
Old 10-16-2011, 08:34 PM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
table prefix, yours in blank so the query would be:

Code:
update `post` set pagetext = replace (pagetext, ':lol:' , ':-)')
How big is your posts table (how many posts do you have)? If it's a lot I would suggest turning off the forum just as an extra precaution before running the query.
thank you very much, this is works before for replacing old smilies to new smilies





i have similar problem now


my forum url is changed, from with www ( http://www.domain.com ), to without www ( http://domain.com )




i had try this

update `post` set pagetext = replace (pagetext, 'www.domain.com', 'domain.com')

or
update `post` set pagetext = replace (pagetext, 'http://www.domain.com', 'http://domain.com')




but its not works, its just says Affected Rows: 0 (3.0977s)


please help, how to change it in post table, there are a lot of them in post table
Reply With Quote
  #7  
Old 10-16-2011, 10:17 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I responded to your vb.com thread.
Reply With Quote
  #8  
Old 10-17-2011, 07:59 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open vbulletin option >> site name / url / contact details >> remove www from your 'forum url' and 'homepage url'.

Quote:
i had try this

update `post` set pagetext = replace (pagetext, 'www.domain.com', 'domain.com')

or
update `post` set pagetext = replace (pagetext, 'http://www.domain.com', 'http://domain.com')




but its not works, its just says Affected Rows: 0 (3.0977s)
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 09:13 PM.


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.06183 seconds
  • Memory Usage 2,235KB
  • 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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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