Set Proportal as homepage but I don't see images
#1 27-05-2012 
Hi, I have set Proportal as homepage of my site but I do not see the images of top posters (avatars), print post ecc and even other pictures on the portal, they gives an address wrong image..

(sorry in advance for my bad English!)

Thank you very much
(This post was last modified: 15-10-2014 01:53 PM by noiredeb.)

0
#2 27-05-2012 
Hi, I have looked at your page (it is really nice - good work) and I see that the images link is incorrect. I will look into it and get back to you.
The site don't jive? PRESS F5 Flower

0
#3 27-05-2012 
Ok, I see the issue. Your avatars are in site/forum/images/avatar but the pro_Portal block is pointing to site/images.

You may need to edit the pro_Portal block. How confident are you with php?
The site don't jive? PRESS F5 Flower

0
#4 27-05-2012 
Thank you, I have fixed send.gif and printable.gif (I have edited from <img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif"> to <img src="/forum/images/nesil/printable.gif"> directly) but now I don't find file with avatars (top posters) on portal :\

0
#5 27-05-2012 
It is block_topposters.php inside the portal/blocks folder on your ftp.

You will need to edit the php file.

this code is where the issue is:

Code:
$topposters .= "<tr>
<td class=\"{$tpaltbg}\" width=\"50\" align=\"center\"><img src=\"".$user['avatar']."\" alt=\"\" {$block_avatar_width_height} border=\"0\" /></td>
<td class=\"{$tpaltbg}\"><a href=\"{$mybb->settings['bburl']}/{$profilelink}\">{$username}</a><br />{$postnum}</td></tr>";
$tpaltbg = alt_trow();

untested, but this may fix it:

Change this line
Code:
<img src=\"".$user['avatar']."\" alt=\"\" {$block_avatar_width_height} border=\"0\" />

to

Code:
<img src="\forum\".$user['avatar']."\" alt=\"\" {$block_avatar_width_height} border=\"0\" />

Untested.
The site don't jive? PRESS F5 Flower

0
#6 27-05-2012 
I did an edit on the replacement code.
The site don't jive? PRESS F5 Flower

0
#7 27-05-2012 
Nothing, there is an error Sad

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /forum/portal/blocks/block_topposters.php on line 36

Parse error: syntax error, unexpected T_STRING in /forum/portal/blocks/block_topposters.php on line 36

Resolved with

<img src=\"/forum/".$user['avatar']."\" alt=\"\" {$block_avatar_width_height} border=\"0\" />

now only avatar on usercp
(This post was last modified: 15-10-2014 01:54 PM by noiredeb.)

0
#8 27-05-2012 
Ok, so we will have to escape it....

Revert it for now (put it back like it was).

I have to go out now, but I will look at it later tonight.
The site don't jive? PRESS F5 Flower

0
#9 27-05-2012 
Now works also avatar of user cp Big Grin thank you very much for the help!

0
#10 28-05-2012 
Excellent - good work on fixing that yourself and sorry about the shaky code. For others looking to use the proportal as a home page then this is the "fix" for the broken avatars that may result:

Code:
<img src=\"/forum/".$user['avatar']."\" alt=\"\" {$block_avatar_width_height} border=\"0\" />
The site don't jive? PRESS F5 Flower

0


Sorry, that is a members only option