vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changed smilies, can old 'Text to Replace' still showing/redirect to new smilies? (https://vborg.vbsupport.ru/showthread.php?t=256519)

basketmen 01-05-2011 12:02 AM

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

Digital Jedi 01-05-2011 12:13 AM

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.

BirdOPrey5 01-05-2011 02:10 AM

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.

basketmen 01-05-2011 06:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2144221)
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';

BirdOPrey5 01-05-2011 10:57 AM

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.

basketmen 10-16-2011 08:34 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2144362)
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

BirdOPrey5 10-16-2011 10:17 PM

I responded to your vb.com thread.

v123shine 10-17-2011 07:59 PM

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)



All times are GMT. The time now is 01:10 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.01201 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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