Simply enough, Impex isn't importing my avatars. I have the path specified to /<SMF root>/attachments/.
SMF2 to vB4 Avatars
Collapse
X
-
Sometimes you have to change the code for your specific import. My ImpEx installation has some changes to the SMF2 avatar code. Try my code.
Edit this file:
impex/systems/smf2/004.php
Replace this code:
Code:if ($sessionobject->get_session_var('get_avatars') AND $data['avatar'] != NULL) { if(strstr($data['avatar'],'http://')) { //Its a url $try->set_value('nonmandatory', 'avatar',trim($user['user_avatar'])); } else { // Its going to be in the images/avatars/ dir somewhere hopefully. $ava_path = $sessionobject->get_session_var('get_avatars_path'); if(strstr($data['avatar'], '-upload-')) { $text = substr($data['avatar'], 8); $try->set_value('nonmandatory', 'avatar',$ava_path . $text); } } }
Code:if ($sessionobject->get_session_var('get_avatars') AND $data['avatar'] != NULL) { if(strstr($data['avatar'],'http://')) { //Its a url $try->set_value('nonmandatory', 'avatar',trim($data['avatar'])); } else { // Its going to be in the images/avatars/ dir somewhere hopefully. $ava_path = $sessionobject->get_session_var('get_avatars_path'); if($data['avatar']) { $text = $data['avatar']; $try->set_value('nonmandatory', 'avatar',$ava_path . $text); } } }
Related Topics
Collapse
-
by DemOnstarWhat is happening with the avatars here of late? I see text that bleeds out of their allotted boxes and it looks messy. Is this some kind of protest by the people that held an avatar before?
-
Channel: Support Issues & Questions
-
Comment