How do i edit this?

.Abhishek

Addicted
Joined
May 16, 2011
Messages
912
Reaction score
0
FP$
1,698
Can anyone tell me how do i add this:

Code:
$db->sql_escape($row['username'])) . "', topic_time = " . (int) $row['post_time'];

into this:

Code:
$db->sql_escape($row['username'])) . "', topic_first_poster_avatar = '" . $db->sql_escape($row['user_avatar']) . "', topic_first_poster_avatar_type = " . (int) $row['user_avatar_type'] . ', topic_first_poster_avatar_width = ' . (int) $row['user_avatar_width'] . ', topic_first_poster_avatar_height = ' . (int) $row['user_avatar_height'];
 
Are you trying to install a mod for PHPBB?
If so tell us what it says for that like add in, before, after , ect
 
Code:
$db->sql_escape($row['username'])) . "', topic_time = " . (int) $row['post_time'];
$db->sql_escape($row['username'])) . "', topic_first_poster_avatar = '" . $db->sql_escape($row['user_avatar']) . "', topic_first_poster_avatar_type = " . (int) $row['user_avatar_type'] . ', topic_first_poster_avatar_width = ' . (int) $row['user_avatar_width'] . ', topic_first_poster_avatar_height = ' . (int) $row['user_avatar_height'];

I THINK you can just place it above like I did. But yea, if it's a mod it should tell you, before, after, etc.
 
well is it so easy to replace or place any code in a .mod scripts. Well i don't think so. It require some testing to check whether the code is bugless.
 
Just place it at the bottom and test it out, if it causes a prolem; you will know that you have done it wrongly. Just leave a comment with // and start.
 
Back
Top Bottom