anantgupta
Active Member
Hello,
I am trying to fix this mod so that it is compatible with smf 1.1.12
http://custom.simplemachines.org/mods/index.php?mod=1138
I am weak in database.
i searched and found that $smcFunc doesnt work with smf 1.1.12
Can you rewrite this function so that it works with smf 1.1.12 also ??
I am trying to fix this mod so that it is compatible with smf 1.1.12
http://custom.simplemachines.org/mods/index.php?mod=1138
I am weak in database.
i searched and found that $smcFunc doesnt work with smf 1.1.12
Can you rewrite this function so that it works with smf 1.1.12 also ??
Code:
function MetaTagsGenerateTeaser ($id_msg)
{
global $smcFunc;
$request = $smcFunc['db_query']('', '
SELECT body
FROM {db_prefix}messages
WHERE id_msg = {int:id_msg}',
array(
'id_msg' => $id_msg
));
list ($teaser) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);