MyBB Community Forums

Full Version: Portal problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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?
No solution yet?
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.
Sure

www.gwnorge.org.

The problem lies with the portal, not the forum. As you can see, me avatar doesnt show up, because the path is wrong. The path the portal tries to use is www.gwnorge.com/uploads/avatars/myavatar.png The correct path is www.gwnorge.com/forum/uploads/avatars/myavatar.png. The sae goes for attachments

EDIT: After doing som thinking, I found the $avatar bit in portal.php, but I cant say I understood much of it.
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.
Pages: 1 2