Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 04-11-2003, 10:39 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing :smilie to ---> :smilie:

Hello there.

When I moved from ezboard to VB me and my members where used to this format of the smilies :

:cry

instead of the default one of VB... which is

: cry : (without the gaps)


So I had changed it... to be like the ezboard one.

I would like to change it back as the :smilies: format is safer - otherwise the way I have it now results to some simple texts to be converted to smilies

So after I change it - I would also like to apply the changes to the old posts, to convert alla the :smilie ones to :smilie:

Anyone who knows which query I should run?

maybe something like this?

Code:
UPDATE post SET pagetext=REPLACE(pagetext,':banana',': banana :')
(without the gaps between : and banana.... for every smilie I have...) ?

thanx in advance
Reply With Quote
  #2  
Old 04-11-2003, 10:49 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[sql]
UPDATE post SET pagetext = REPLACE(pagetext, ":banana:", ":banana");
[/sql]
Reply With Quote
  #3  
Old 04-11-2003, 11:19 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx
Reply With Quote
  #4  
Old 04-13-2003, 03:02 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This change gave another idea.....

Back at the ezboard forum some nicknames were different than the ones the members have at VB.

For example a member there was called "polo242" but now in the VB he has the username : "polo"

After the transfer, the accounts were not imported, as we all know this cannot be done...

So my guess is that these old usernames are not in the "user" table right?

So what are they? Were they transfered just as simple text?

(all these old name have the "guest" status under them, now).

And where exactly are these old usernames stored?

What I wanna do is to try - with a query - to change these names to what they are now (e.g. headhunter1 --> headhunter), although I do know that they will *not* have real profiles or be linked in any way with the new usernames.

any ideas?
Reply With Quote
  #5  
Old 04-13-2003, 03:04 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ezboard import is done via a vB staff member because AFAIK they can't access the database, only the final HTML of pages and members.

What specifically do you want to do? Have only alphabetic usernames instead of alphanumeric?
Reply With Quote
  #6  
Old 04-13-2003, 03:14 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok here it goes, I will try my best to explain
I will need two posts - sorry for that.

lets take for example one user who's username at the ezboard was Headhunter17

after the transfer was completed, his account (of course) was not imported.

So, on the VB board his old posts show him as Headhunter17, and his profile leads to nowhere....

see attachment :
Attached Images
File Type: jpg ezboardusernames.jpg (9.2 KB, 0 views)
Reply With Quote
  #7  
Old 04-13-2003, 03:18 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On the new board he registered as Headhunter (without the 17) - see attachment

I want to run a query so that all the Headhunter17 names will be changed to Headhunter...

Problem is I do not know where the old usernames are stored at the new board.... as I'm sure they are not stored at the "user" table (or whatever it is the one that stores normally the usernames on VB database).

I hope I helped a little bit more
Attached Images
File Type: jpg vbusernames.jpg (11.2 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04307 seconds
  • Memory Usage 2,236KB
  • Queries Executed 14 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete