Im trying to change portal.php to index.php when i do this my news post on the page don't display the avatar of the poster or if their is an attachment it doesn't display either can someone please help...
I have the same problem.
The problem is caused because the portal links to /uploads/avatars instead of /pathwhereforumis/uploads/avatars.
I tried editing the portal_announcement, but the only reference I could find was $avatar, and no path to the image in the portal_announcement.
yea im having avatar and if their is an attachment in the post it doesn't show either can someone please help us?
I think nobody understand your problem. If you write more details, i'll try to help.
Erm. I don't understand. May we have a link to your board.
Open index.php(with old name, portal.php), go to line 401 and
Find: $avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"$announcement[avatar]\" alt=\"0\" {$avatar_width_height} /></td>";
Replace: $avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"http://www.gwnorge.org/forum/$announcement[avatar]\" alt=\"0\" {$avatar_width_height} /></td>";
Save and try again. You can change there how you want.
Also another* way, After line 380,
Add: $announcement['avatar'] = $mybb->settings['bburl'].substr($announcement['avatar'], 1);
Don't do both of these solutions together. Choose one of these please.
Ah, I tried solution number 1, but I removed the \ at the beginning. Thanks alot mate <3
What about if you put an attachment in the news on the portal it doesn't show up either.