News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

quote issue in aef(1.0.x) to smf(2.0.r4) conversion

Started by manishgfy, January 13, 2011, 01:09:32 PM

Previous topic - Next topic

manishgfy

well the conversion gave the error after step 25
but everything appears to be good except
this quote problem
i am getting like this
[quote poster=bobby_coolest date=1277649421]dfdsfdsfdfdsfdsfds
[/quote]

ThorstenE

this one is fixable via phpMyAdmin, just execute the following sql statement:
UPDATE smf_messages SET body = REPLACE(body, 'quote poster=', 'quote author=');

manishgfy

Quote from: TE on January 13, 2011, 01:55:03 PM
this one is fixable via phpMyAdmin, just execute the following sql statement:
UPDATE smf_messages SET body = REPLACE(body, 'quote poster=', 'quote author=');
thanks
well you solved the quote by but left the time/date

i tried to be smart and tried with these
UPDATE smf_messages SET body = REPLACE(body, 'date=', 'time=');

and

UPDATE smf_messages SET body = REPLACE(body, 'time=', 'date=');

it changed the tables but didn't solved the issue
do suggest regarding this

ThorstenE

ok, you could add a new quoting style to your subs.php, this should fix the issue..
in Sources/Subs.php find:

array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '([^<>]{1,192}?)'),
'link' => array('match' => '(?:board=\d+;)?((?:topic|threadid)=[\dmsg#\./]{1,40}(?:;start=[\dmsg#\./]{1,40})?|action=profile;u=\d+)'),
'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
),
'before' => '<div class="quoteheader"><div class="topslice_quote"><a href="' . $scripturl . '?{link}">' . $txt['quote_from'] . ': {author} ' . $txt['search_on'] . ' {date}</a></div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),


add after:
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '([^<>]{1,192}?)'),
'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
),
'before' => '<div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': {author} ' . $txt['search_on'] . ' {date}</div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),

Advertisement: