![]() |
Replace certain phrase throughout DB??
Is it possible to replace a :smile: phrase throughout a DB with : ) (without the space obviously)????? I need to know because I imported posts from another (non VB) message board and all the emoticon "calls" are different than what I would like them to be. Is there any way I can replace all these in like 20,000 posts lol???
Also, this was a post only import, so all the usernames come up as userid=0. Are these names actually saved to any place that I could possibly individually add userid's to them? I'm guessing the answer is no for both of these, but maybe somebody else has done this before? If anyone can offer any suffestions I'd appreciate it. THANKS! :classic: |
first: replace hack was coded by the sisko :) (search for it :))
second: well, you can write a small script, which get's all usernames out of the posts and creates a user entry in the database, this ist possible :) |
THANKS! I didn't think either of these were possible. As least the first one was. :) That was the easiest hack I have installed to date lol. :) Thanks for pointing that out for me.
|
:)
you're welcome :) the second: create a file called createusers.php PHP Code:
|
oohh.. !! thought you said it wasn't possible :) cool. looks scary, *backs up db first* ;) i trust you man, but just in case. i'll let you know how it goes :)
|
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT userid WHERE username='Array' mysql error: You have an error in your SQL syntax near 'WHERE username='Array'' at line 1 mysql error number: 1064 hmmm, don't mean to bug you but what does this mean?? thanks again. :) seems like nothing bad happened but it wouldn't let me run that file I just made... |
yeah, sorry, my fault :)
use this: PHP Code:
|
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT userid WHERE username='Dark Master' mysql error: You have an error in your SQL syntax near 'WHERE username='Dark Master'' at line 1 mysql error number: 1064 any ideas? if this is going to be too much trouble please let me know. :) i'll understand. |
lol, silly me, have forgotten from which table it should take the userid ^^
i've updated my post above :) |
Database error in vBulletin 2.2.9:
Invalid SQL: UPDATE post SET userid= WHERE userid=0 AND username=Dark Master mysql error: You have an error in your SQL syntax near 'WHERE userid=0 AND username=Dark Master' at line 1 mysql error number: 1064 :) wahoo! lol hmmm, this looks sort of like the last one I got. any ideas?? thanks. |
All times are GMT. The time now is 08:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|