Welcome, Guest. Please Login or Register.
May 02, 2024, 11:49:41 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Converters  |  Yet Another PHPBB2 --> YabbSE 1.5 Request « previous next »
Pages: 1 ... 3 4 [5] Reply Ignore Print
Author Topic: Yet Another PHPBB2 --> YabbSE 1.5 Request  (Read 16920 times)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Yet Another Phpbb2 --> YabbSE 1.5 Request
« Reply #60 on: May 15, 2003, 11:23:57 PM »
Reply with quote

Never read a book on PHP or MySQL.

# Update the messages table.
UPDATE {$db_prefix}messages
# Change the posterIP variable.  Seperate it with .'s.
SET posterIP=CONCAT_WS('.',
 # First number.  Two bytes, hex.
 CONV(SUBSTRING(posterIP, 1, 2), 16, 10),
 # Second number.  Two bytes, hex.
 CONV(SUBSTRING(posterIP, 3, 2), 16, 10),
 # Third number.  Two bytes, hex.
 CONV(SUBSTRING(posterIP, 5, 2), 16, 10),
 # Last number.... two bytes, hex.
 CONV(SUBSTRING(posterIP, 7, 2), 16, 10)
);

CONV converts between bases... base 16 (hex) to base 10 (decimal), in this case.  SUBSTRING fetches a part of the string.  CONCAT_WS puts a string together with a seperator.  So, CONCAT_WS(' ', 'a', 'b', 'c') would be 'a b c'.  It's like join().

-[Unknown]
Logged
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:Yet Another Phpbb2 --> YabbSE 1.5 Request
« Reply #61 on: May 15, 2003, 11:42:39 PM »
Reply with quote

ok, that does make sense now, thanks :D

but, where did you learn all this? :o
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Yet Another Phpbb2 --> YabbSE 1.5 Request
« Reply #62 on: June 01, 2003, 05:52:19 AM »
Reply with quote

Please use this converter instead, it has been completely rewritten.

http://www.yabbse.org/community/index.php?board=132;action=display;threadid=23492

-[Unknown]
Logged
Pages: 1 ... 3 4 [5] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  Yet Another PHPBB2 --> YabbSE 1.5 Request « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.028 seconds with 19 queries.